/* =============================================================
   OS PROPERTIES — design system
   Anchors: Einar Mattsson (boutique type-forward), Stena
   Fastigheter (humanized scale), Newsec (info architecture).
   Logo-aligned navy/slate palette. Schibsted Grotesk display.
   ============================================================= */

@import url('../assets/fonts/fonts.css');

/* ── 1. TOKENS ─────────────────────────────────────────────── */
:root {
  /* Color — pulled from logo navy + cool neutrals */
  --bg:           #FFFFFF;
  --bg-soft:      #F6F7F9;
  --bg-warm:      #F4F2EE;        /* warm contrast surface */

  --ink:          #0E1521;        /* near-black with cool tilt */
  --ink-soft:     #4A5363;
  --ink-mute:     #646C78;        /* AA-safe ≥4.5:1 on white & soft surfaces */
  --ink-faint:    #C2C8D1;

  --rule:         #E5E8EC;
  --rule-soft:    #EFF2F5;
  --field-border: #767E8B;        /* ≥3:1 non-text contrast for form controls */
  /* alias so any stray var(--accent) resolves to navy instead of nothing */
  --accent:       #243140;

  --navy:         #243140;        /* logo navy */
  --navy-deep:    #161E2A;
  --navy-soft:    #EEF1F5;
  --navy-tint:    rgba(36, 49, 64, 0.06);

  /* "Urgent" now maps to navy — brand-cohesive, no red anywhere */
  --urgent:       #243140;
  --urgent-deep:  #161E2A;
  --urgent-soft:  #EEF1F5;

  --gold:         #243140;        /* (retired — no gold; kept as navy alias) */

  /* Type */
  --display: 'Schibsted Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', system-ui, sans-serif;

  /* Type scale — tighter, editorial */
  --t-meta:    0.75rem;             /* 12 */
  --t-small:   0.875rem;            /* 14 */
  --t-body:    1rem;                /* 16 */
  --t-lead:    1.125rem;            /* 18 */
  --t-h4:      1.125rem;            /* 18 */
  --t-h3:      1.375rem;            /* 22 */
  --t-h2:      clamp(1.75rem, 3vw, 2.5rem);
  --t-h1:      clamp(2.5rem, 5.5vw, 4.5rem);
  --t-display: clamp(3.25rem, 9.5vw, 7.5rem);

  /* Space */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;
  --s-9: 12rem;

  /* Layout */
  --max: 1320px;
  --gutter: 1.25rem;

  /* Motion */
  --t-fast: 200ms;
  --t-base: 320ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px)  { :root { --gutter: 2rem; } }
@media (min-width: 1280px) { :root { --gutter: 3rem; } }

/* ── 2. RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

/* When navigating to a hash anchor, leave breathing room for the fixed header */
:target { scroll-margin-top: 110px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11' on, 'ss03' on, 'kern' on;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: var(--t-h1);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
h2 { font-size: var(--t-h2); letter-spacing: -0.024em; line-height: 1.08; }
h3 { font-size: var(--t-h3); letter-spacing: -0.018em; }
h4 { font-size: var(--t-h4); font-weight: 600; letter-spacing: -0.01em; }

p { color: var(--ink); max-width: 64ch; text-wrap: pretty; }

a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--navy); }
a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }

::selection { background: var(--navy); color: var(--bg); }

@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;
  }
  /* fully stop infinite loops (pulse, ken-burns, marquee) — no rapid flashing */
  .jour-pill .dot, .sticky-jour .dot, .live-status.is-open .dot,
  .hero-bleed-img, .scroll-cue-line::after { animation: none !important; }
}

/* ── 3. LAYOUT ─────────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell-wide { max-width: 1560px; margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-loose { padding-block: clamp(5rem, 10vw, 9rem); }

.section-soft  { background: var(--bg-soft); }
.section-warm  { background: var(--bg-warm); }
.section-navy  { background: var(--navy); color: var(--bg); }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 { color: var(--bg); }

/* ── 4. UTILITY ────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--t-meta);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.eyebrow-line::before {
  content: '';
  display: inline-block;
  width: 1.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.lede {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  font-weight: 400;
}

.meta {
  font-size: var(--t-meta);
  color: var(--ink-mute);
  letter-spacing: 0.01em;
}

.text-center { text-align: center; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.rule { border: 0; height: 1px; background: var(--rule); width: 100%; }

/* Photography grading — applied to all editorial photos for consistency */
.graded {
  filter: saturate(0.92) contrast(1.02);
}

/* ── 5. ANIMATION ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Architectural clip reveal — image draws in from top */
.reveal-clip {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1200ms var(--ease-out);
}
.reveal-clip.in { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  .reveal-clip { clip-path: inset(0 0 0 0); transition: none; }
}
.delay-1 { transition-delay: 60ms; }
.delay-2 { transition-delay: 130ms; }
.delay-3 { transition-delay: 200ms; }
.delay-4 { transition-delay: 270ms; }
.delay-5 { transition-delay: 340ms; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(76, 200, 125, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(76, 200, 125, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 200, 125, 0); }
}

/* Header & sticky-jour entrance — subtle on first paint */
@keyframes head-enter {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes jour-enter {
  from { opacity: 0; transform: translateY(20px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.site-head { animation: head-enter 480ms var(--ease-out) both; }
.sticky-jour { animation: jour-enter 600ms var(--ease-out) 800ms both; }
@media (prefers-reduced-motion: reduce) {
  .site-head, .sticky-jour { animation: none !important; }
}

/* Eyebrow hairline — animates in when revealed */
.reveal .eyebrow-line::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 720ms var(--ease-out) 200ms;
}
.reveal.in .eyebrow-line::before {
  transform: scaleX(1);
}

/* Stat counter — thin underline draws in after number lands */
.stat .num {
  position: relative;
  padding-bottom: 0.5rem;
}
.stat .num::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 720ms var(--ease-out) 800ms;
}
.reveal.in .stat .num::after,
.stat.reveal.in .num::after {
  transform: scaleX(1);
}

/* ── 6. HEADER ─────────────────────────────────────────────── */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.15) blur(14px);
  -webkit-backdrop-filter: saturate(1.15) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.site-head.scrolled {
  border-bottom-color: var(--rule);
  background: rgba(255, 255, 255, 0.96);
}

.head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  height: 80px;
}
@media (min-width: 1024px) { .head-row { height: 92px; } }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  white-space: nowrap;
}
.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}
@media (min-width: 1024px) { .brand-logo { height: 60px; } }

/* Hide redundant "OS Properties" text — the logo already carries the wordmark */
.brand-text { display: none !important; }

.nav {
  display: none;
  gap: 1.875rem;
  align-items: center;
}
@media (min-width: 1024px) { .nav { display: flex; } }

.nav a {
  font-family: var(--sans);
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 0.5rem 0;
  letter-spacing: -0.005em;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left center;
  animation: nav-active-in 420ms var(--ease-out) 560ms forwards;
}
@keyframes nav-active-in {
  to { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .nav a[aria-current="page"]::after { transform: scaleX(1); animation: none; }
}

.head-end {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.jour-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem 0.5rem 0.75rem;
  background: var(--navy);
  color: var(--bg);
  font-family: var(--sans);
  font-size: var(--t-small);
  font-weight: 500;
  border-radius: 999px;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  letter-spacing: -0.005em;
}
.jour-pill:hover { background: var(--navy-deep); color: var(--bg); transform: translateY(-1px); }
.jour-pill .dot {
  width: 6px; height: 6px;
  background: #6BC97D;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.menu-btn {
  display: flex; flex-direction: column; gap: 5px;
  width: 26px; height: 22px;
  background: none; border: 0; cursor: pointer;
  justify-content: center;
  z-index: 200;
}
@media (min-width: 1024px) { .menu-btn { display: none; } }
.menu-btn span {
  display: block; width: 100%; height: 1.5px;
  background: var(--ink);
  transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile pane */
.mobile-pane {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 80;
  transform: translateY(-100%);
  transition: transform 380ms var(--ease-out);
  display: flex; flex-direction: column;
  padding: 6rem var(--gutter) 2rem;
  overflow-y: auto;
}
.mobile-pane.open { transform: translateY(0); }
.mobile-pane > .brand { margin-bottom: 1.5rem; }
.mobile-nav {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}
.mobile-nav a {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.mobile-foot {
  margin-top: auto;
  padding-top: 2rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}

/* Sticky mobile jour */
.sticky-jour {
  position: fixed;
  bottom: 1.25rem; right: 1.25rem;
  z-index: 70;
  background: var(--urgent);
  color: var(--bg);
  padding: 0.75rem 1.125rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: var(--t-small);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.5rem;
  box-shadow: 0 8px 22px -4px rgba(36, 49, 64, 0.42);
  letter-spacing: -0.005em;
}
.sticky-jour:hover { color: var(--bg); background: var(--urgent-deep); }
.sticky-jour .dot {
  width: 6px; height: 6px;
  background: var(--bg); border-radius: 50%;
}
@media (min-width: 1024px) { .sticky-jour { display: none; } }

/* ── 7. BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.375rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--t-small);
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn:hover { background: #000; color: var(--bg); transform: translateY(-1px); }
.btn .arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-faint);
}
.btn-secondary:hover { background: var(--bg-soft); border-color: var(--ink); color: var(--ink); }

.btn-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--bg);
}
.btn-navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--bg); }

.btn-urgent {
  background: var(--urgent);
  border-color: var(--urgent);
  color: var(--bg);
}
.btn-urgent:hover { background: var(--urgent-deep); border-color: var(--urgent-deep); color: var(--bg); }

.btn-lg { padding: 0.875rem 1.625rem; font-size: var(--t-body); }

/* Underline link — editorial style */
.link-u {
  display: inline-flex;
  align-items: baseline;
  gap: 0.375rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  font-weight: 500;
  font-size: var(--t-small);
}
.link-u .arrow { transition: transform var(--t-fast) var(--ease); display: inline-block; }
.link-u:hover .arrow { transform: translateX(3px); }

/* ── 8. HERO — full-bleed cinematic with text overlay ────── */
.hero-bleed {
  position: relative;
  height: 100vh;
  min-height: 580px;
  max-height: 920px;
  height: 100svh;
  overflow: hidden;
  margin-top: -80px;
  background: var(--ink);
}
@media (min-width: 1024px) { .hero-bleed { margin-top: -92px; min-height: 680px; } }

.hero-bleed-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.06) brightness(0.92);
  transform: scale(1.02);
  opacity: 0;
  transition: opacity 1400ms var(--ease-out);
  animation: ken-burns 28s ease-in-out 1.4s infinite alternate;
  will-change: transform;
}
.hero-bleed.loaded .hero-bleed-img { opacity: 1; }

@keyframes ken-burns {
  from { transform: scale(1.02) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1.2%, -0.8%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bleed-img { animation: none; transform: scale(1); }
}

.hero-bleed::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(14, 21, 33, 0.55) 0%,
      rgba(14, 21, 33, 0.10) 28%,
      rgba(14, 21, 33, 0.10) 55%,
      rgba(14, 21, 33, 0.78) 100%);
  pointer-events: none;
}

.hero-bleed-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem var(--gutter) 2.5rem;
  max-width: var(--max);
  margin-inline: auto;
  width: 100%;
}
@media (min-width: 1024px) {
  .hero-bleed-content { padding: 9rem var(--gutter) 4rem; }
}

.hero-bleed .eyebrow {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.5rem;
  display: inline-block;
}
.hero-bleed .eyebrow::before { background: rgba(255,255,255,0.6); }

.hero-bleed h1 {
  color: var(--bg);
  font-size: clamp(3.25rem, 11vw, 9rem);
  font-weight: 600;
  letter-spacing: -0.046em;
  line-height: 0.92;
  margin-bottom: 1.75rem;
  max-width: 15ch;
  text-wrap: balance;
}
.hero-bleed .lede {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  max-width: 48ch;
  margin-bottom: 2.25rem;
  line-height: 1.55;
}

.hero-bleed-cta { display: flex; gap: 0.625rem; flex-wrap: wrap; align-items: center; }
.hero-bleed-cta .btn {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.hero-bleed-cta .btn:hover { background: var(--bg-soft); color: var(--ink); }
.hero-bleed-cta .btn-secondary {
  background: transparent;
  color: var(--bg);
  border-color: rgba(255, 255, 255, 0.4);
}
.hero-bleed-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--bg);
  color: var(--bg);
}

/* Word-by-word headline reveal */
.hero-bleed h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  white-space: nowrap;
  margin-right: 0.22em;
}
.hero-bleed.loaded h1 .word { opacity: 1; transform: translateY(0); }
.hero-bleed.loaded h1 .word:nth-child(1) { transition-delay: 240ms; }
.hero-bleed.loaded h1 .word:nth-child(2) { transition-delay: 360ms; }
.hero-bleed.loaded h1 .word:nth-child(3) { transition-delay: 480ms; }

.hero-bleed .eyebrow,
.hero-bleed .lede,
.hero-bleed-cta {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.hero-bleed.loaded .eyebrow { opacity: 1; transform: translateY(0); transition-delay: 120ms; }
.hero-bleed.loaded .lede { opacity: 1; transform: translateY(0); transition-delay: 720ms; }
.hero-bleed.loaded .hero-bleed-cta { opacity: 1; transform: translateY(0); transition-delay: 840ms; }

@media (prefers-reduced-motion: reduce) {
  .hero-bleed .eyebrow,
  .hero-bleed h1 .word,
  .hero-bleed .lede,
  .hero-bleed-cta { opacity: 1; transform: none; transition: none; }
}

/* Bottom corners — credit + scroll indicator */
.hero-bleed-foot {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 0 var(--gutter) 1.5rem;
  pointer-events: none;
}
.hero-bleed-credit {
  font-family: var(--sans);
  font-size: var(--t-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}
.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: var(--t-meta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}
.scroll-cue-line {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--bg);
  animation: scroll-trail 2s ease-in-out infinite;
}
@keyframes scroll-trail {
  0%   { top: -50%; }
  100% { top: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue-line::after { animation: none; }
}

/* Header transparent over hero, solid on scroll */
.site-head.over-dark,
.site-head.over-dark.scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.site-head.over-dark .brand,
.site-head.over-dark .menu-btn span { color: var(--bg); }
.site-head.over-dark .nav a { color: rgba(255, 255, 255, 0.85); }
.site-head.over-dark .nav a:hover,
.site-head.over-dark .nav a[aria-current="page"] { color: var(--bg); }
.site-head.over-dark .brand-logo { filter: brightness(0) invert(1); }
.site-head.over-dark .menu-btn span { background: var(--bg); }
.site-head.over-dark .brand-text { color: var(--bg); }
.site-head.over-dark .nav a[aria-current="page"]::after { background: var(--bg); }
/* Smooth transition when entering/leaving over-dark */
.site-head, .site-head .brand, .site-head .nav a, .site-head .brand-logo {
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), filter var(--t-fast) var(--ease), border-bottom-color var(--t-fast) var(--ease);
}

/* Old hero (kept for interior pages) */
.hero {
  padding-top: 6.5rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 1024px) { .hero { padding-top: 9rem; padding-bottom: 6rem; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; align-items: stretch; }
  .hero-grid > .hero-text { display: flex; flex-direction: column; justify-content: center; padding-block: 1rem; }
}

.hero-text {}
.hero h1 {
  font-size: var(--t-display);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.94;
  margin-bottom: 2rem;
  max-width: 13ch;
}
.hero .lede {
  margin-bottom: 2rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  max-width: 44ch;
}
.hero-cta { display: flex; gap: 0.625rem; flex-wrap: wrap; }

/* Below-hero trust strip — quiet, hairline-separated row */
.trust-strip {
  border-bottom: 1px solid var(--rule);
  padding-block: 1.25rem;
  background: var(--bg);
}
.trust-strip-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: var(--t-meta);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.trust-strip-row > * { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust-strip-row svg { color: var(--navy); flex-shrink: 0; }
.trust-strip-row .sep {
  width: 1px;
  height: 14px;
  background: var(--rule);
  display: inline-block;
}
.trust-strip-row .meta-end {
  margin-left: auto;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.hero-image {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}
@media (min-width: 1024px) {
  .hero-image { aspect-ratio: auto; height: 70vh; max-height: 640px; min-height: 480px; }
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 1.4s var(--ease);
}
.hero-image:hover img { transform: scale(1.02); }
.hero-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(14, 21, 33, 0.18) 100%);
  pointer-events: none;
}

.hero-credit {
  position: absolute;
  bottom: 1rem; left: 1rem;
  font-family: var(--sans);
  font-size: var(--t-meta);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  z-index: 2;
  font-weight: 500;
}

/* ── 9. SECTION HEAD ───────────────────────────────────────── */
.section-head {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  max-width: 56rem;
}
.section-head .eyebrow { display: inline-block; margin-bottom: 0.875rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head .lede { color: var(--ink-soft); }

.section-head-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 1024px) {
  .section-head-row { grid-template-columns: 1fr 1fr; align-items: end; gap: 4rem; }
}

/* ── 10. SERVICES — newsec-anchored card pattern ───────────── */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px)  { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.service-card:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(36, 49, 64, 0.18);
  color: inherit;
}
.service-card:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 12px;
}
.service-card .photo {
  aspect-ratio: 5/4;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}
.service-card .photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 800ms var(--ease);
}
.service-card:hover .photo img { transform: scale(1.04); }
.service-card .body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-card .num {
  font-family: var(--sans);
  font-size: var(--t-meta);
  color: var(--navy);
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 0.625rem;
  text-transform: uppercase;
}
.service-card h3 { margin-bottom: 0.625rem; font-weight: 500; }
.service-card .body p {
  color: var(--ink-soft);
  font-size: var(--t-small);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}
.service-card .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--navy);
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px solid var(--rule);
  letter-spacing: -0.005em;
}
.service-card .link-arrow .arrow {
  transition: transform var(--t-fast) var(--ease);
  display: inline-block;
}
.service-card:hover .link-arrow .arrow { transform: translateX(4px); }
.service-card ul {
  border-top: 1px solid var(--rule);
  padding-top: 0.875rem;
}
.service-card ul li {
  font-size: var(--t-small);
  color: var(--ink-soft);
  padding: 0.375rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  letter-spacing: -0.005em;
}
.service-card ul li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--navy);
  border-radius: 50%;
  margin-top: 0.55em;
  flex-shrink: 0;
}

/* ── 11. STATS — stena-anchored scale-numbers ──────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1rem;
  padding-block: clamp(3rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

.stat .num {
  font-family: var(--display);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 0.625rem;
  display: block;
}
.stat .label {
  font-family: var(--sans);
  font-size: var(--t-small);
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  max-width: 22ch;
}

/* ── 12. PROCESS ───────────────────────────────────────────── */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  counter-reset: step;
}
@media (min-width: 768px) { .process { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

.step {
  counter-increment: step;
  position: relative;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ink);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-size: var(--t-meta);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--navy);
  display: block;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.5rem; font-weight: 500; }
.step p { color: var(--ink-soft); font-size: var(--t-small); line-height: 1.6; }

/* ── 13. TESTIMONIAL ───────────────────────────────────────── */
.testimonial {
  max-width: 60rem;
  margin-inline: auto;
}
.testimonial blockquote {
  font-family: var(--display);
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin-bottom: 2rem;
  text-wrap: balance;
}

/* Feature variant — single large quote, anchored to a horizontal rule */
.testimonial-feature {
  max-width: 880px;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  text-align: left;
}
.testimonial-feature .eyebrow-line {
  display: inline-block;
  margin-bottom: 1.5rem;
}
.testimonial-feature blockquote {
  font-family: var(--display);
  font-size: clamp(1.625rem, 3.4vw, 2.875rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin-bottom: 2.5rem;
  text-wrap: balance;
}
.testimonial-feature blockquote::before { content: '“'; display: inline; }
.testimonial-feature blockquote::after  { content: '”'; display: inline; }
.testimonial-feature .testimonial-attrib {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.testimonial-feature .testimonial-attrib .who { font-weight: 500; font-size: var(--t-small); }
.testimonial-feature .testimonial-attrib .what { font-size: var(--t-meta); color: var(--ink-mute); margin-top: 2px; }
.testimonial blockquote::before { content: '“'; display: inline; }
.testimonial blockquote::after  { content: '”'; display: inline; }
.testimonial-attrib {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.testimonial-attrib .who { font-weight: 500; font-size: var(--t-small); letter-spacing: -0.005em; }
.testimonial-attrib .what { font-size: var(--t-meta); color: var(--ink-mute); margin-top: 2px; }

/* ── 14. CTA BAND ──────────────────────────────────────────── */
.cta-band {
  background: var(--navy);
  color: var(--bg);
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 90% 10%, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band > .shell { position: relative; z-index: 2; }
.cta-band h2 { color: var(--bg); margin-bottom: 1rem; max-width: 22ch; }
.cta-band .lede { color: rgba(255, 255, 255, 0.78); margin-bottom: 2rem; max-width: 50ch; }
.cta-band .btn {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--ink);
}
.cta-band .btn:hover { background: var(--bg-soft); color: var(--ink); }

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
}
@media (min-width: 1024px) {
  .cta-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; }
}

/* ── 15. CONTACT ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.contact-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.contact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding-block: 1.375rem;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 640px) {
  .contact-row { grid-template-columns: 0.4fr 1fr; gap: 1.5rem; align-items: baseline; }
}
.contact-row .label {
  font-family: var(--sans);
  font-size: var(--t-meta);
  color: var(--ink-mute);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.contact-row .value {
  font-family: var(--display);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 500;
  color: var(--ink);
  display: inline-block;
  letter-spacing: -0.018em;
}
.contact-row a.value:hover { color: var(--navy); }
.contact-row .value-meta {
  display: block;
  font-family: var(--sans);
  font-size: var(--t-meta);
  color: var(--ink-mute);
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: -0.005em;
}

/* ── 16. FORM ──────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.375rem;
}
@media (min-width: 640px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--sans);
  font-size: var(--t-meta);
  font-weight: 500;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.field label .req { color: var(--urgent); margin-left: 2px; }
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--field-border);
  border-radius: 8px;
  padding: 0.75rem 0.875rem;
  font-family: var(--sans);
  font-size: var(--t-small);
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%234A5363' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2rem;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 0;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--navy-tint);
}
.field .err {
  font-size: var(--t-meta);
  color: var(--urgent);
  min-height: 1rem;
  letter-spacing: -0.005em;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.success-msg {
  display: none;
  margin-top: 1.5rem;
  padding: 1.375rem 1.5rem;
  background: var(--navy-soft);
  border-left: 3px solid var(--navy);
  border-radius: 4px;
}
.success-msg.show { display: block; }
.success-msg h4 { margin-bottom: 0.25rem; }
.success-msg p { color: var(--ink-soft); font-size: var(--t-small); }

/* ── 17. PAGE HEAD ─────────────────────────────────────────── */
.page-head {
  padding: 7rem 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 1024px) { .page-head { padding-top: 9rem; } }

.breadcrumb {
  font-family: var(--sans);
  font-size: var(--t-meta);
  color: var(--ink-mute);
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .current { color: var(--ink); font-weight: 500; }

.page-head h1 {
  max-width: 22ch;
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.page-head .lede { max-width: 56ch; }

/* ── 18. FAULT CARDS ───────────────────────────────────────── */
.fault-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .fault-grid { grid-template-columns: 1fr 1fr; } }

.fault-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.875rem;
}
.fault-card.acute { border-color: var(--urgent); background: var(--urgent-soft); }
.fault-card .badge {
  font-family: var(--sans);
  font-size: var(--t-meta);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1rem;
  display: inline-block;
}
.fault-card.acute .badge { color: var(--urgent-deep); }
.fault-card h3 { margin-bottom: 0.5rem; font-weight: 500; }
.fault-card.acute h3 { color: var(--urgent-deep); }
.fault-card > p { color: var(--ink-soft); font-size: var(--t-small); margin-bottom: 1.25rem; flex: 1; line-height: 1.6; }
.fault-card .big-phone {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.625rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--urgent-deep);
  margin-bottom: 0.25rem;
}
.fault-card .meta { margin-bottom: 1.25rem; }
.fault-card .btn { width: 100%; }

/* ── 19. INFO BANNER ───────────────────────────────────────── */
.info-banner {
  display: flex;
  gap: 0.875rem;
  padding: 1.25rem 1.375rem;
  background: var(--navy-soft);
  border-left: 3px solid var(--navy);
  border-radius: 4px;
  margin-bottom: 2.5rem;
}
.info-banner.warn { background: var(--urgent-soft); border-left-color: var(--urgent); }
.info-banner svg { flex-shrink: 0; color: var(--navy); margin-top: 2px; }
.info-banner.warn svg { color: var(--urgent-deep); }
.info-banner h4 { margin-bottom: 0.25rem; font-weight: 600; }
.info-banner p { color: var(--ink-soft); font-size: var(--t-small); line-height: 1.55; }
.info-banner a { color: var(--navy); border-bottom: 1px solid currentColor; font-weight: 500; }
.info-banner.warn a { color: var(--urgent-deep); }

/* ── 20. FAQ ───────────────────────────────────────────────── */
.faq { max-width: 60rem; }
.faq-item { border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-trigger {
  width: 100%;
  background: none;
  border: 0;
  padding: 1.375rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  letter-spacing: -0.015em;
}
.faq-trigger::-webkit-details-marker { display: none; }
.faq-trigger:hover { color: var(--navy); }
.faq-icon {
  font-size: 1.25rem;
  font-weight: 300;
  transition: transform var(--t-base) var(--ease);
  margin-left: 1rem;
  color: var(--ink-soft);
  font-family: var(--sans);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); color: var(--navy); }

/* FAQ smooth open/close — overrides native details snap */
.faq-content {
  color: var(--ink-soft);
  font-size: var(--t-small);
  max-width: 64ch;
  line-height: 1.6;
  overflow: hidden;
}
.faq-item:not([open]) .faq-content {
  max-height: 0;
  padding-bottom: 0;
  opacity: 0;
}
.faq-item[open] .faq-content {
  max-height: 800px;
  padding-bottom: 1.375rem;
  opacity: 1;
}
.faq-content { transition: max-height 360ms var(--ease), opacity 240ms var(--ease), padding-bottom 320ms var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .faq-content { transition: none; }
}

/* ── 21. TEAM ──────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px)  { .team-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (min-width: 1280px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

.member {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.625rem;
}
.member .photo {
  aspect-ratio: 1;
  background: var(--bg-soft);
  border-radius: 8px;
  margin-bottom: 1.375rem;
  overflow: hidden;
  position: relative;
}
.member .photo::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 35% 35%, var(--bg-soft) 0%, var(--rule-soft) 100%);
}
.member h3 { margin-bottom: 0.25rem; font-weight: 500; }
.member .role {
  font-family: var(--sans);
  font-size: var(--t-meta);
  color: var(--ink-mute);
  margin-bottom: 1rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.member p { color: var(--ink-soft); font-size: var(--t-small); margin-bottom: 1rem; line-height: 1.6; }
.member .links {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.member .links a {
  font-size: var(--t-small);
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.member .links a:hover { color: var(--navy); }

/* ── 22. VALUES ────────────────────────────────────────────── */
.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .values { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.value {
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}
.value h3 { margin-bottom: 0.625rem; font-weight: 500; }
.value .num {
  display: block;
  font-family: var(--sans);
  font-size: var(--t-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 1rem;
}
.value p { color: var(--ink-soft); font-size: var(--t-small); line-height: 1.6; }

/* ── 23. MAP ───────────────────────────────────────────────── */
.map {
  aspect-ratio: 16/10;
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  height: 100%;
  color: var(--ink-soft);
  font-size: var(--t-small);
  transition: background var(--t-fast) var(--ease);
}
.map-placeholder:hover { background: var(--bg-warm); }

/* ── 24. PORTFOLIO RIBBON ──────────────────────────────────── */
.portfolio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) { .portfolio { grid-template-columns: repeat(3, 1fr); } }
.portfolio-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-soft);
}
.portfolio-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
  transition: transform 1s var(--ease);
}
.portfolio-card:hover img { transform: scale(1.04); }
.portfolio-card .info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 21, 33, 0.85) 100%);
  color: var(--bg);
}
.portfolio-card .info .tag {
  font-family: var(--sans);
  font-size: var(--t-meta);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.25rem;
  display: block;
}
.portfolio-card .info h3 { color: var(--bg); font-size: 1.25rem; }

/* ── 25. FOOTER ────────────────────────────────────────────── */
.foot {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding: clamp(3rem, 5vw, 4.5rem) 0 1.5rem;
}
.foot-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .foot-row { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; } }

.foot h4 {
  font-family: var(--sans);
  font-size: var(--t-meta);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: 1rem;
}
.foot ul li { padding: 0.3rem 0; }
.foot ul li a {
  font-size: var(--t-small);
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.foot ul li a:hover { color: var(--ink); }

.foot-brand .footer-logo {
  height: 64px;
  width: auto;
  display: block;
  margin-bottom: 1.25rem;
}
/* Hide footer wordmark — logo carries the brand */
.foot-brand .wordmark { display: none; }
.foot-brand p {
  font-size: var(--t-small);
  color: var(--ink-soft);
  max-width: 36ch;
  margin-top: 0.875rem;
  line-height: 1.55;
}

.colophon {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: var(--t-meta);
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}
@media (min-width: 768px) {
  .colophon { grid-template-columns: 1fr auto; align-items: center; }
}
.colophon .right { text-align: right; }
.colophon a:hover { color: var(--ink); }

/* ── 25b. SERVICE DETAIL (tjanster page) ──────────────────── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 1024px) {
  .service-detail {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}
.service-detail:last-of-type { border-bottom: 0; }

.service-detail.urgent .eyebrow,
.service-detail.urgent h2 { color: var(--urgent-deep); }

.service-detail .big-phone-link {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--urgent-deep);
  margin: 1.5rem 0 1.25rem;
  border-bottom: 1px solid currentColor;
  display: inline-block;
}

.service-detail-aside {
  background: var(--urgent-soft);
  border-radius: 12px;
  padding: 1.75rem;
}
.service-detail-aside h4 { color: var(--urgent-deep); margin-bottom: 0.875rem; font-weight: 600; }

/* Bullet list — replaces all inline-styled ULs */
.bullet-list { display: grid; gap: 0.25rem; padding: 0; border: 0; }
.bullet-list.cols-2 { grid-template-columns: 1fr; column-gap: 1.5rem; }
@media (min-width: 520px) { .bullet-list.cols-2 { grid-template-columns: 1fr 1fr; } }

.bullet-list li {
  font-family: var(--sans);
  font-size: var(--t-small);
  color: var(--ink-soft);
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  letter-spacing: -0.005em;
  line-height: 1.55;
  border-bottom: 1px solid var(--rule-soft);
}
.bullet-list li:last-child { border-bottom: 0; }
.bullet-list li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--navy);
  border-radius: 50%;
  margin-top: 0.65em;
  flex-shrink: 0;
}
.bullet-list.urgent li::before { background: var(--urgent); }

/* ── 25b. PARTNERS (real logos) ──────────────────────────── */
.partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px)  { .partners-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
@media (min-width: 1024px) { .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; } }

.partner-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.partner-card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -18px rgba(36, 49, 64, 0.22);
}
.partner-card img {
  max-height: 76px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.15);
  opacity: 0.92;
  transition: filter var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
}
.partner-card:hover img {
  filter: grayscale(0);
  opacity: 1;
}
.partner-card .partner-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}
.partner-card .partner-meta .role {
  font-family: var(--sans);
  font-size: var(--t-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

/* ── 26. PROOF RIBBON (BRF / partner names) ──────────────── */
.proof {
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.proof-eyebrow {
  display: block;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--ink-mute);
}
.proof-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  align-items: center;
  justify-items: center;
}
@media (min-width: 768px)  { .proof-row { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .proof-row { grid-template-columns: repeat(4, 1fr); gap: 2rem 3rem; } }

.proof-item {
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  text-align: center;
  padding: 0.5rem 0.625rem;
  white-space: nowrap;
  opacity: 1;
  transition: color var(--t-fast) var(--ease);
}
.proof-item:hover { color: var(--ink); }

/* ── 27. MONOGRAM AVATAR (placeholder for real photo) ─────── */
.member .photo.monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  position: relative;
}
.member .photo.monogram::after { display: none; }
.member .photo.monogram .initials {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--bg);
  line-height: 1;
}

/* ── 27b. ETABLERAD STAMP — signature seal ────────────────── */
.stamp {
  position: absolute;
  z-index: 3;
  width: 110px;
  height: 110px;
  color: var(--bg);
  pointer-events: none;
  mix-blend-mode: normal;
}
@media (min-width: 1024px) { .stamp { width: 130px; height: 130px; } }

.stamp.on-light { color: var(--navy); }

.stamp svg {
  width: 100%; height: 100%;
  animation: stamp-spin 60s linear infinite;
  transform-origin: 50% 50%;
}
@media (prefers-reduced-motion: reduce) { .stamp svg { animation: none; } }
@keyframes stamp-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Hero stamp — bottom-right of hero image */
.hero-image .stamp {
  bottom: 1.25rem;
  right: 1.25rem;
}

/* Footer stamp variant — smaller, monochrome navy */
.foot .stamp {
  position: relative;
  width: 64px;
  height: 64px;
  color: var(--ink-mute);
  display: inline-block;
  margin-top: 1.5rem;
  bottom: auto; right: auto;
  transition: color var(--t-base) var(--ease);
}
.foot .stamp:hover { color: var(--navy); }

/* ── 27b2. SECTION DIVIDER — hairline + dot ──────────────── */
.divider-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 320px;
  margin: clamp(2rem, 4vw, 3.5rem) auto;
  padding-inline: var(--gutter);
}
.divider-mark::before, .divider-mark::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.divider-mark .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--navy);
  margin-inline: 0.875rem;
  flex-shrink: 0;
}

/* ── 27b3. PROOF ITEM — animated hover underline ─────────── */
.proof-item {
  position: relative;
  display: inline-block;
}
.proof-item::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.25rem;
  width: 70%;
  height: 1px;
  background: var(--navy);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 480ms var(--ease-out);
}
.proof-item:hover::after { transform: translateX(-50%) scaleX(1); }

/* ── 27b4. VIEW TRANSITIONS (cross-page fades) ───────────── */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 240ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
::view-transition-old(root) {
  animation-name: vt-fade-out;
}
::view-transition-new(root) {
  animation-name: vt-fade-in;
}
@keyframes vt-fade-out {
  to { opacity: 0; transform: translateY(-4px); }
}
@keyframes vt-fade-in {
  from { opacity: 0; transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

/* ── 27c. LIVE STATUS INDICATOR ──────────────────────────── */
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--sans);
  font-size: var(--t-small);
  color: var(--ink);
  letter-spacing: -0.005em;
}
.live-status .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-faint);
  flex-shrink: 0;
}
.live-status.is-open .dot {
  background: #4CC87D;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(76, 200, 125, 0.5);
}
.live-status .label { font-weight: 500; }
.live-status .clock { color: var(--ink-mute); margin-left: 0.25rem; font-variant-numeric: tabular-nums; }

/* ── 27d. COORDINATES (heritage detail) ──────────────────── */
.coords {
  font-family: var(--sans);
  font-size: var(--t-meta);
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

/* Refined photography grade — slightly cooler Nordic tilt */
.graded, .hero-image img, .service-card .photo img, .portfolio-card img {
  filter: saturate(0.88) contrast(1.04);
}

/* ── 28. ADDRESS BLOCK ────────────────────────────────────── */
.address-line {
  font-family: var(--sans);
  font-size: var(--t-small);
  color: var(--ink-soft);
  line-height: 1.6;
}
.address-line strong { color: var(--ink); font-weight: 500; }

/* ── 29. HELPERS ──────────────────────────────────────────── */
.split-2 { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .split-2 { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split-21 { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .split-21 { grid-template-columns: 2fr 1fr; gap: 4rem; } }

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mt-6 { margin-top: 4rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

@media print {
  .sticky-jour, .site-head { display: none !important; }
}

/* Skip-to-content link (a11y) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--ink); color: var(--bg);
  padding: 0.75rem 1.25rem;
  font-family: var(--sans); font-size: var(--t-small); font-weight: 500;
}
.skip-link:focus { left: 1rem; top: 1rem; outline: 2px solid var(--navy); outline-offset: 2px; }
main { display: block; }

/* =============================================================
   DEEP REFINEMENT LAYER — craft pass
   Intro curtain · filmic hero · signature stats · editorial
   service index · metallic-warm accents · micro-typography
   ============================================================= */

:root {
  /* (was champagne/gold) — now navy/neutral, no gold anywhere */
  --champagne:    #243140;
  --champagne-dim: rgba(36, 49, 64, 0.22);
  --ink-2:        #0A0F18;   /* deepest ground for signature band */
}

/* ── INTRO CURTAIN ────────────────────────────────────────── */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  transition: transform 900ms cubic-bezier(0.76, 0, 0.24, 1) 150ms;
  will-change: transform;
}
.curtain.lift { transform: translateY(-101%); }
.curtain[hidden] { display: none; }

.curtain-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.curtain-mark img {
  height: 84px;
  width: auto;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  animation: curtain-logo 800ms var(--ease-out) 100ms forwards;
}
.curtain-rule {
  width: 0;
  height: 1px;
  background: var(--navy);
  animation: curtain-rule 700ms var(--ease-out) 600ms forwards;
}
.curtain-word {
  font-family: var(--sans);
  font-size: var(--t-meta);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  opacity: 0;
  animation: curtain-word 600ms var(--ease-out) 750ms forwards;
  padding-left: 0.32em;
}
@keyframes curtain-logo {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes curtain-rule {
  to { width: 132px; }
}
@keyframes curtain-word {
  to { opacity: 1; }
}

/* ── HERO — filmic depth + legibility ─────────────────────── */
/* Top vignette so transparent-nav text stays legible on any photo */
.hero-bleed::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 220px;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 15, 24, 0.55) 0%, rgba(10, 15, 24, 0) 100%);
  pointer-events: none;
}
/* Fine film grain — barely-there, adds analog depth (no image dependency) */
.hero-bleed .grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)' opacity='0.55'/></svg>");
  background-size: 160px 160px;
}
@media (prefers-reduced-motion: no-preference) {
  /* Scroll-linked drift handled in JS via --hero-shift */
  .hero-bleed-content { will-change: transform, opacity; }
}
/* hairline accent under the eyebrow line — muted white on the dark hero */
.hero-bleed .eyebrow-line::before { background: rgba(255, 255, 255, 0.65); opacity: 1; }

/* Hero CTA — primary gets a subtle sheen on hover */
.hero-bleed-cta .btn { position: relative; overflow: hidden; }
.hero-bleed-cta .btn::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg);
  transition: left 700ms var(--ease-out);
}
.hero-bleed-cta .btn:hover::after { left: 140%; }
@media (prefers-reduced-motion: reduce) {
  .hero-bleed-cta .btn::after { display: none; }
}

/* ── SIGNATURE STATS BAND (replaces flat word-stats) ──────── */
.signature {
  background:
    radial-gradient(120% 140% at 82% 8%, rgba(36,49,64,0.85) 0%, transparent 55%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.signature::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.03;
  mix-blend-mode: screen;
  pointer-events: none;
}
.signature-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 768px)  { .signature-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .signature-inner { grid-template-columns: repeat(4, 1fr); } }

.sig-item {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
@media (min-width: 1024px) {
  .sig-item {
    padding: 3.25rem 2rem 3.25rem 0;
    border-top: 0;
    border-left: 1px solid rgba(255,255,255,0.12);
    padding-left: 2rem;
  }
  .sig-item:first-child { border-left: 0; padding-left: 0; }
}
.sig-item .k {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.5rem, 4.2vw, 3.75rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--bg);
  font-feature-settings: 'tnum' on, 'lnum' on;
}
.sig-item .k .unit { color: rgba(255, 255, 255, 0.5); }
.sig-item .v {
  font-family: var(--sans);
  font-size: var(--t-small);
  line-height: 1.45;
  color: rgba(255,255,255,0.62);
  letter-spacing: -0.005em;
}
.sig-item .tick {
  width: 22px; height: 1px; background: rgba(255, 255, 255, 0.45);
  transform: scaleX(0); transform-origin: left;
  transition: transform 700ms var(--ease-out) 200ms;
}
.signature.in .sig-item .tick { transform: scaleX(1); }

/* ── EDITORIAL SERVICE INDEX (replaces card grid) ─────────── */
.svc-index { border-top: 1px solid var(--rule); }
.svc-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0.75rem 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: color var(--t-base) var(--ease);
}
@media (min-width: 768px) {
  .svc-row {
    grid-template-columns: 5.5rem 7rem 1fr auto;
    gap: 2.5rem;
    padding: 2rem 0;
  }
}
/* sweeping fill from left on hover */
.svc-row::before {
  content: '';
  position: absolute;
  left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1);
  top: 0; bottom: 0;
  background: var(--bg-soft);
  opacity: 0;
  transform: scaleX(0.97);
  transform-origin: left center;
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  z-index: 0;
  border-radius: 8px;
}
.svc-row:hover::before { opacity: 1; transform: scaleX(1); }
.svc-row > * { position: relative; z-index: 1; }

.svc-row .idx {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--t-meta);
  letter-spacing: 0.14em;
  color: var(--champagne);
  align-self: start;
  padding-top: 0.4rem;
}
.svc-row .svc-thumb {
  display: none;
  width: 7rem; height: 5rem;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-soft);
}
@media (min-width: 768px) { .svc-row .svc-thumb { display: block; } }
.svc-row .svc-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.86) contrast(1.05);
  transform: scale(1.01);
  transition: transform 900ms var(--ease-out), filter var(--t-base) var(--ease);
}
.svc-row:hover .svc-thumb img { transform: scale(1.09); filter: saturate(1) contrast(1.05); }

.svc-row .svc-main h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
  transition: transform var(--t-base) var(--ease);
}
.svc-row .svc-main p {
  font-size: var(--t-small);
  color: var(--ink-soft);
  max-width: 52ch;
}
@media (min-width: 768px) {
  .svc-row:hover .svc-main h3 { transform: translateX(6px); }
}
.svc-row .svc-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--rule);
  color: var(--navy);
  flex-shrink: 0;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease), border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.svc-row .svc-go svg { width: 18px; height: 18px; transition: transform var(--t-base) var(--ease); }
.svc-row:hover .svc-go {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--bg);
}
.svc-row:hover .svc-go svg { transform: translate(2px, -2px); }
.svc-row:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 8px; }

/* ── PARTNER — GES graceful fallback ──────────────────────── */
.partner-card .partner-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.partner-card .partner-fallback .name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1;
}
.partner-card .partner-fallback .full {
  font-family: var(--sans);
  font-size: var(--t-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
/* When a real <img> exists it sits above the fallback; hide fallback if image loads */
.partner-card img.loaded ~ .partner-fallback { display: none; }

/* Tonal plates so each logo sits on its native ground */
.partner-card.is-dark {
  background: var(--ink-2);
  border-color: rgba(255, 255, 255, 0.10);
}
.partner-card.is-dark:hover {
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.6);
}
/* silver-on-black logo: screen blend drops the black, keeps the metal */
.partner-card.is-dark img {
  mix-blend-mode: screen;
  filter: none;
  opacity: 1;
}
.partner-card.is-dark .role { color: rgba(255, 255, 255, 0.55); }
.partner-card.is-light { background: var(--bg); }

/* ═══ MOTION ADDITIONS — tasteful, navy, no fluff ═════════════ */

/* 1. Signature band — items rise in sequence as the band enters */
.signature .sig-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.signature.in .sig-item { opacity: 1; transform: none; }
.signature.in .sig-item:nth-child(2) { transition-delay: 90ms; }
.signature.in .sig-item:nth-child(3) { transition-delay: 180ms; }
.signature.in .sig-item:nth-child(4) { transition-delay: 270ms; }

/* 2. Nav links — underline grows from left on hover (matches active) */
.nav a:not([aria-current="page"])::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-base) var(--ease);
}
.nav a:not([aria-current="page"]):hover::after { transform: scaleX(1); }

/* 3. Footer links — animated underline */
.foot ul li a {
  background-image: linear-gradient(var(--navy), var(--navy));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  padding-bottom: 2px;
  transition: background-size var(--t-base) var(--ease), color var(--t-fast) var(--ease);
}
.foot ul li a:hover { background-size: 100% 1px; color: var(--ink); }

/* 4. Contact rows — value glides right + turns navy on hover */
.contact-row .value, .contact-row a.value {
  display: inline-block;
  transition: transform var(--t-base) var(--ease), color var(--t-fast) var(--ease);
}
.contact-row:hover a.value { transform: translateX(5px); color: var(--navy); }
.contact-row .label { transition: color var(--t-fast) var(--ease); }
.contact-row:hover .label { color: var(--ink); }

/* 5. Trust-strip items — gentle staggered fade on first reveal */
.trust-strip-row.reveal > span,
.trust-strip-row.reveal > .sep {
  opacity: 0; transform: translateY(8px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.trust-strip-row.reveal.in > span,
.trust-strip-row.reveal.in > .sep { opacity: 1; transform: none; }
.trust-strip-row.reveal.in > *:nth-child(3) { transition-delay: 80ms; }
.trust-strip-row.reveal.in > *:nth-child(5) { transition-delay: 160ms; }
.trust-strip-row.reveal.in > *:nth-child(7) { transition-delay: 240ms; }

/* 6. Section images — clip-reveal (reuse .reveal-clip on any figure) */
.reveal-clip img { transition: transform 1.4s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .signature .sig-item,
  .trust-strip-row.reveal > span,
  .trust-strip-row.reveal > .sep { opacity: 1 !important; transform: none !important; }
  .nav a::after { transform: scaleX(1) !important; }
}

/* ── MICRO-TYPOGRAPHY ─────────────────────────────────────── */
.contact-row .value,
.big-phone,
.jour-pill,
.sticky-jour { font-feature-settings: 'tnum' on, 'lnum' on; }

/* Refined section eyebrow — pair index numerals with a champagne tick */
.section-head .eyebrow,
.section-head-row .eyebrow { position: relative; }

/* Warm hairline on the trust strip separators */
.trust-strip-row .sep { background: var(--champagne-dim); }

/* ═══ WOW LAYER — scroll progress + statement reveal ═════════ */

/* Slim scroll-progress line at the very top */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 95;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) { .scroll-progress { display: none; } }

/* Statement — large editorial line that clips up on scroll */
.statement {
  padding-block: clamp(5rem, 13vw, 11rem);
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.statement .micro-eyebrow {
  font-family: var(--sans);
  font-size: var(--t-meta);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 0.625rem;
  margin-bottom: 2.5rem;
}
.statement .micro-eyebrow::before { content: ''; width: 1.5rem; height: 1px; background: var(--navy); }
.statement h2 {
  font-size: clamp(2.25rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 20ch;
}
.statement .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.statement .line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 950ms var(--ease-out);
}
.statement .line.muted > span { color: var(--ink-mute); }
.statement.in .line > span { transform: none; }
.statement.in .line:nth-child(2) > span { transition-delay: 110ms; }
.statement.in .line:nth-child(3) > span { transition-delay: 220ms; }
@media (prefers-reduced-motion: reduce) {
  .statement .line > span { transform: none; }
}

/* ═══ MILLION-DOLLAR LAYER — unified navy duotone image world ═══ */

/* Single-element duotone: grayscale → cool navy monotone. Cohesive brand world. */
.duo {
  filter: grayscale(1) sepia(0.45) hue-rotate(178deg) saturate(1.7) brightness(0.96) contrast(1.06);
}

/* Hero — push to a cinematic navy duotone */
.hero-bleed-img.duo {
  filter: grayscale(1) sepia(0.5) hue-rotate(178deg) saturate(1.8) brightness(0.82) contrast(1.08);
}
/* deepen the hero veil for drama + legibility over duotone */
.hero-bleed::after {
  background:
    linear-gradient(180deg,
      rgba(10, 15, 24, 0.62) 0%,
      rgba(10, 15, 24, 0.22) 30%,
      rgba(10, 15, 24, 0.30) 55%,
      rgba(10, 15, 24, 0.88) 100%);
}

/* Full-bleed photographic statement band (cinematic) */
.statement.statement-img {
  position: relative;
  background: var(--ink-2);
  border-top: 0;
  overflow: hidden;
  color: var(--bg);
}
.statement-img .statement-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.statement-img .statement-bg img {
  width: 100%; height: 132%; object-fit: cover;
  position: absolute; left: 0; top: -16%;
  filter: grayscale(1) sepia(0.5) hue-rotate(178deg) saturate(1.7) brightness(0.5) contrast(1.05);
  will-change: transform;
}
.statement-img .statement-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(10,15,24,0.72) 0%, rgba(10,15,24,0.40) 55%, rgba(10,15,24,0.65) 100%);
}
.statement-img .shell { position: relative; z-index: 2; }
.statement-img .micro-eyebrow { color: rgba(255,255,255,0.65); }
.statement-img .micro-eyebrow::before { background: rgba(255,255,255,0.6); }
.statement-img h2 { color: var(--bg); }
.statement-img .line.muted > span { color: rgba(255,255,255,0.52); }

/* ═══ SCROLL-ANIMATION LIBRARY — reveal variants ═══════════════ */
/* All keyed off .in (added by the IntersectionObserver in main.js). */

.reveal-up, .reveal-left, .reveal-right, .reveal-scale, .reveal-blur {
  opacity: 0;
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out), filter 800ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal-up    { transform: translateY(28px); }
.reveal-left  { transform: translateX(-34px); }
.reveal-right { transform: translateX(34px); }
.reveal-scale { transform: scale(0.94); }
.reveal-blur  { filter: blur(10px); transform: translateY(14px); }

.reveal-up.in, .reveal-left.in, .reveal-right.in, .reveal-scale.in, .reveal-blur.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Stagger container — children rise in sequence */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 40ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 120ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 280ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 360ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 440ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal-up, .reveal-left, .reveal-right, .reveal-scale, .reveal-blur,
  .reveal-stagger > * { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ═══ FILMIC FINAL SCENE (CTA over full-bleed duotone) ═════════ */
.cta-band.cta-scene {
  position: relative;
  background: var(--ink-2);
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 9rem);
}
.cta-scene .cta-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.cta-scene .cta-bg img {
  width: 100%; height: 134%; object-fit: cover;
  position: absolute; left: 0; top: -17%;
  filter: grayscale(1) sepia(0.5) hue-rotate(178deg) saturate(1.7) brightness(0.42) contrast(1.08);
  will-change: transform;
}
.cta-scene .cta-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,15,24,0.78) 0%, rgba(10,15,24,0.55) 45%, rgba(10,15,24,0.82) 100%);
}
.cta-scene > .shell { position: relative; z-index: 2; }
.cta-scene::before { display: none; }   /* drop the old radial */
.cta-scene .eyebrow { color: rgba(255,255,255,0.62); }
.cta-scene h2 { color: var(--bg); font-size: clamp(2rem, 4.5vw, 3.5rem); max-width: 20ch; }
.cta-scene .lede { color: rgba(255,255,255,0.78); }

/* ═══ A11Y POLISH (audit follow-ups) ═══════════════════════════ */
/* Visible focus rings on controls the global rule missed */
.menu-btn:focus-visible,
.faq-trigger:focus-visible,
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible,
.field input[type="file"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
/* Hamburger: keep the visual bars but guarantee a ≥44px hit area (WCAG 2.5.8) */
.menu-btn { min-width: 44px; min-height: 44px; padding: 11px 9px; box-sizing: border-box; }
@media (min-width: 1024px) { .menu-btn { min-width: 0; min-height: 0; } }

/* ═══ LIVING LIGHT — cursor-tracked glow on dark scenes ════════ */
.signature, .statement-img, .cta-scene { --mx: 72%; --my: 16%; }
.signature::after, .statement-img::after, .cta-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;                 /* above the photo/ground, below the text (z-2) */
  pointer-events: none;
  background: radial-gradient(38rem 38rem at var(--mx) var(--my),
              rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 28%, transparent 62%);
  mix-blend-mode: soft-light;
  transition: background-position 200ms linear;
  will-change: background;
}
@media (prefers-reduced-motion: reduce) {
  .signature::after, .statement-img::after, .cta-scene::after { transition: none; }
}

/* ════ Deras arbetssätt — årshjul + 4-stegsprocess (klassisk stil) ════ */
.process.p4{grid-template-columns:1fr}
@media (min-width:680px){.process.p4{grid-template-columns:1fr 1fr;gap:2rem}}
@media (min-width:1080px){.process.p4{grid-template-columns:repeat(4,1fr);gap:2rem}}

.wheel-grid{display:grid;gap:3rem;align-items:center}
@media (min-width:900px){.wheel-grid{grid-template-columns:1fr 1fr;gap:4.5rem}}
.dial-wrap{max-width:460px;width:100%;margin-inline:auto}
.dial-housing{position:relative;aspect-ratio:1;border-radius:50%;background:var(--bg-soft);border:1px solid var(--rule)}
.dial{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.dial .ticks line{stroke:var(--ink-mute);stroke-width:1.1;opacity:.7}
.dial .mlabels text{fill:var(--ink-mute);font-family:var(--sans);font-size:7px;letter-spacing:.1em;text-anchor:middle}
.dial .ring-base{fill:none;stroke:var(--navy);stroke-width:1.5;opacity:.9}
.dial .bands circle{fill:none;stroke:var(--navy);stroke-width:3.5;opacity:.14}
.dial .bands .hi{opacity:.38}
.dial .bticks circle{fill:var(--navy)}
.dial .needle line{stroke:var(--navy);stroke-width:2;stroke-linecap:round}
.dial .needle circle{fill:var(--navy);stroke:#fff;stroke-width:1.2}
.dial-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}
.dial-center .dc-k{font-size:var(--t-meta);font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-mute)}
.dial-center .dc-today{font-size:1.35rem;font-weight:600;color:var(--ink);margin-top:4px;font-variant-numeric:tabular-nums}
.dial-center .dc-s{font-size:var(--t-meta);color:var(--ink-mute);margin-top:3px}
.wheel-note{margin-top:1rem;text-align:center;font-size:var(--t-meta);color:var(--ink-mute)}
.wheel-legend{display:grid}
.wl-row{display:grid;grid-template-columns:84px 1fr auto;gap:1rem;align-items:baseline;padding:.8rem 0;border-bottom:1px solid var(--rule)}
.wl-row:first-child{border-top:1px solid var(--rule)}
.wl-row .c{font-size:var(--t-small);font-weight:600;color:var(--navy)}
.wl-row .n{font-weight:500;color:var(--ink)}
.wl-row .f{font-size:var(--t-meta);color:var(--ink-mute);text-align:right}

/* ════ Årshjul v2 — segmenterad planerings-ring, två banor ════ */
.dial .frame{fill:none;stroke:var(--rule);stroke-width:1}
.dial .lane{fill:none;stroke:#EEF1F5;stroke-width:11}
.dial .arc{fill:none;stroke:var(--navy);stroke-width:11;stroke-linecap:round;transition:opacity .35s ease}
.dial .c-sba{stroke-linecap:butt;opacity:.14}
.dial .c-brand{opacity:.85}
.dial .c-ovk{opacity:.48}
.dial .c-hiss{opacity:.85}
.dial .c-el{opacity:.52}
.dial .c-tryck{opacity:.68}
.dial .ticks line{stroke:var(--ink-mute);stroke-width:1.2;opacity:.8}
.dial .minor line{stroke:var(--ink-faint);stroke-width:.8}
.dial .mlabels text{fill:var(--ink-mute);font-family:var(--sans);font-size:7.5px;font-weight:600;letter-spacing:.08em;text-anchor:middle}
.dial .needle line{stroke:var(--navy);stroke-width:2.2;stroke-linecap:round}
.dial .needle .hub{fill:var(--navy);stroke:#fff;stroke-width:1.4}
.dial .needle .tip{fill:var(--navy);stroke:#fff;stroke-width:1.2}
.dial-center .dc-today{font-size:1.6rem;letter-spacing:-.01em}
/* legend ⇄ ring-koppling */
.wl-row[data-c]{cursor:default;transition:background .25s;padding-left:.5rem;padding-right:.5rem;margin-left:-.5rem;margin-right:-.5rem}
.wl-row[data-c]:hover,.wl-row[data-c]:focus-visible{background:var(--bg-soft)}
.dial-wrap[data-hi] .arc{opacity:.06}
.dial-wrap[data-hi="sba"] .c-sba{opacity:.45}
.dial-wrap[data-hi="brand"] .c-brand{opacity:.95}
.dial-wrap[data-hi="ovk"] .c-ovk{opacity:.95}
.dial-wrap[data-hi="hiss"] .c-hiss{opacity:.95}
.dial-wrap[data-hi="el"] .c-el{opacity:.95}
.dial-wrap[data-hi="tryck"] .c-tryck{opacity:.95}

/* ════ Finish-pass: org.nr-rad + tjänste-bilder ════ */
.orgnr{white-space:nowrap}

.service-detail.has-media{grid-template-columns:1fr;gap:2rem;align-items:center}
@media (min-width:1024px){
  .service-detail.has-media{grid-template-columns:0.82fr 1.18fr;gap:clamp(2.5rem,4vw,4.5rem)}
  .service-detail.has-media:nth-of-type(even) .service-media{order:2}
}
.service-media{position:relative;border-radius:12px;overflow:hidden;aspect-ratio:4/3;background:var(--bg-soft)}
.service-media img{width:100%;height:100%;object-fit:cover;transition:transform 1.2s cubic-bezier(0.22,1,0.36,1)}
.service-detail.has-media:hover .service-media img{transform:scale(1.04)}
.service-body .bullet-list{margin-top:1.5rem}
@media (min-width:1024px){.service-body{padding-block:0.5rem}}

/* ── GDPR consent row (forms) ─────────────────────────────── */
.field-consent{margin-top:0.5rem}
.consent-row{display:flex;align-items:flex-start;gap:0.625rem;cursor:pointer;font-size:var(--t-small);color:var(--ink-soft);line-height:1.5}
.consent-row input[type="checkbox"]{margin-top:0.2em;width:16px;height:16px;flex-shrink:0;accent-color:var(--accent);cursor:pointer}
.consent-row a{color:var(--navy);border-bottom:1px solid currentColor}
.field-consent .err{display:block;margin-top:0.375rem;font-size:var(--t-small);color:var(--urgent-deep)}
.form-actions .meta a{color:var(--navy);border-bottom:1px solid currentColor}

/* Felanmälan success stamp — built via textContent, styled here (no inline innerHTML) */
.received-stamp{display:inline-block;margin-top:0.5rem;font-family:var(--display);color:var(--navy);font-weight:500}
