/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio, geometry.
   Put this @layer first; product CSS outside the layer wins ordinary layout rules.
   Native hidden and closed-dialog states take precedence over component display rules. */
@layer od-layout {
  [hidden]:not([hidden="until-found" i]) { display: none !important; }
  dialog:not([open]) { display: none !important; }

  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }

  /* containers */
  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }

  /* stacked information: each piece is its own line — never sibling inline spans */
  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }

  /* media keeps its intrinsic ratio by default; never a distorted or cropped
     cover by accident. height:auto lets the ratio win over an <img height="…">
     attribute. Cropping to a uniform box is an explicit opt-in: set --od-ratio
     AND add .od-media-cover together (per the core rule, only where a crop is
     deliberate — tile thumbs, decorative fills — never on full-frame content). */
  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }

  /* functional inline SVG icons opt into bounded geometry; content SVGs keep their own */
  .od-icon { display: inline-block; inline-size: var(--od-icon-size, 1em); block-size: var(--od-icon-size, 1em); flex: none; }

  /* data text only — authored copy is rewritten to its budget instead */
  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }   /* block-level reservation for a shared baseline */
  .od-nowrap  { white-space: nowrap; }           /* 数字+单位 · 价格+起 · 日期+星期 */
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; } /* CJK labels break at spaces / <wbr> first */

  /* screen skeleton (optional): bars take their own space, the middle scrolls — no padding guessed for chrome */
  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

  /* horizontal rail: the next item peeks at the edge; trailing room survives overflow */
  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }

  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
:root [hidden]:where(:not([hidden="until-found" i])) { display: none; }
/* /OD-LAYOUT-PRIMITIVES v1 */

/* ---------- Design tokens (Grundtuben brand, from grundtuben.se) ---------- */
:root {
  /* colour */
  --c-ink: #01130a;          /* brand near-black green */
  --c-ground: #fafffc;       /* brand green-tinted white */
  --c-surface: #eef4ef;      /* light green surface, derived from ground */
  --c-white: #ffffff;
  --c-line: #d9e2da;
  --c-text: #2e2e2e;
  --c-muted: #4f4f4f;
  --c-brand: #006d26;        /* primary green */
  --c-brand-strong: #00561e; /* hover/pressed */
  --c-logo: #007735;
  --c-deep: #2e4830;         /* deep green card on dark */
  --c-olive: #7d8f07;        /* small accent only */
  --c-signal: #f3cc26;       /* yellow: focus + action on dark */
  --c-signal-strong: #e0b80f;
  --c-on-dark: rgba(250, 255, 252, 0.82);
  --c-on-dark-muted: #b2b992;
  --c-line-dark: rgba(250, 255, 252, 0.16);
  --c-error: #b3261e;
  --c-error-bg: #fdecea;

  /* type */
  --f-display: "Exo", sans-serif;
  --f-body: "Roboto", sans-serif;
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  --t-2xl: clamp(1.875rem, 1.35rem + 2.1vw, 2.875rem);
  --t-hero: clamp(2.375rem, 1.5rem + 3.7vw, 4.375rem);
  --t-stat: clamp(2rem, 1.5rem + 1.8vw, 2.75rem);

  /* space (4/8 rhythm) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section-y: clamp(64px, 6vw + 32px, 128px);
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;

  /* shape */
  --r-sm: 4px;
  --r-md: 8px;

  /* motion */
  --dur-fast: 160ms;
  --dur: 240ms;
  --dur-exit: 160ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in: cubic-bezier(0.5, 0, 0.75, 0);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--s-4)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-ground);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--c-ink); margin: 0; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--c-brand); }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--c-signal); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--c-signal); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--c-surface); }
.on-dark { background: var(--c-ink); color: var(--c-on-dark); }
.on-dark h2, .on-dark h3 { color: var(--c-ground); }

.section-head { max-width: 46rem; margin-bottom: var(--s-7); }
.section-head h2 { font-size: var(--t-2xl); font-weight: 800; }
.section-head p { margin-top: var(--s-4); font-size: var(--t-lg); line-height: 1.55; color: var(--c-muted); max-width: 40rem; }
.on-dark .section-head p { color: var(--c-on-dark); }

.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--c-ink); color: var(--c-ground); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); }
.skip-link:focus { top: var(--s-4); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5);
  border: 2px solid transparent; border-radius: var(--r-sm);
  font-family: var(--f-body); font-size: var(--t-sm); font-weight: 700; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn--primary { background: var(--c-brand); color: var(--c-white); }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn--signal { background: var(--c-signal); color: var(--c-ink); }
.btn--sm { min-height: 44px; padding: 0 var(--s-4); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--c-line); color: var(--c-muted); border-color: transparent; cursor: not-allowed; transform: none; }
@media (hover: hover) {
  .btn--primary:hover { background: var(--c-brand-strong); color: var(--c-white); }
  .btn--ghost:hover { background: var(--c-ink); color: var(--c-ground); }
  .btn--signal:hover { background: var(--c-signal-strong); color: var(--c-ink); }
}

.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 700; color: var(--c-brand); text-decoration: none; border-bottom: 2px solid transparent; padding-block: var(--s-1); }
.link-arrow .od-icon { --od-icon-size: 18px; transition: transform var(--dur-fast) var(--ease-out); }
@media (hover: hover) {
  .link-arrow:hover { border-bottom-color: currentColor; color: var(--c-brand-strong); }
  .link-arrow:hover .od-icon { transform: translateX(3px); }
}
.on-dark .link-arrow { color: var(--c-signal); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-ground); border-bottom: 1px solid var(--c-line); }
.header-bar { display: flex; align-items: center; gap: var(--s-5); min-height: var(--header-h); }
.brand { display: block; flex: none; color: var(--c-ink); }
.brand-logo { display: block; width: 112px; height: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: var(--s-1); }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
  font-size: var(--t-sm); font-weight: 500; color: var(--c-ink); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a[aria-current="page"] { border-bottom-color: var(--c-brand); color: var(--c-brand); }
@media (hover: hover) { .site-nav a:hover { color: var(--c-brand); } }
.header-actions { display: flex; align-items: center; gap: var(--s-3); flex: none; }
.header-phone { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; font-weight: 700; font-size: var(--t-sm); color: var(--c-ink); text-decoration: none; white-space: nowrap; }
.header-phone .od-icon { --od-icon-size: 18px; color: var(--c-brand); }
@media (hover: hover) { .header-phone:hover { color: var(--c-brand); } }
.menu-toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-white); color: var(--c-ink); cursor: pointer;
}
.menu-toggle .od-icon { --od-icon-size: 22px; }
.menu-toggle .icon-close { display: none; }
.site-header[data-open] .menu-toggle .icon-open { display: none; }
.site-header[data-open] .menu-toggle .icon-close { display: inline-block; }

@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .header-phone { display: none; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-ground); border-bottom: 1px solid var(--c-line);
    padding: var(--s-2) var(--gutter) var(--s-5);
    box-shadow: 0 12px 24px rgba(1, 19, 10, 0.08);
  }
  .site-header[data-open] .site-nav { display: flex; animation: nav-in var(--dur) var(--ease-out); }
  .site-nav a { min-height: 52px; padding: 0; font-size: var(--t-base); border-bottom: 1px solid var(--c-line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--c-line); font-weight: 700; }
  .site-nav .nav-phone { display: inline-flex; gap: var(--s-2); font-weight: 700; border-bottom: 0; margin-top: var(--s-2); }
  .site-nav .nav-phone .od-icon { --od-icon-size: 18px; color: var(--c-brand); }
}
@media (min-width: 1024px) { .site-nav .nav-phone { display: none; } }
@media (max-width: 400px) { .brand-logo { width: 96px; } .header-actions .btn { padding: 0 var(--s-3); } }
@keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 5vw + 16px, 96px); padding-bottom: var(--s-8); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero h1 { font-size: var(--t-hero); font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; max-width: 15ch; }
.hero-lead { margin-top: var(--s-5); font-size: var(--t-lg); line-height: 1.55; color: var(--c-muted); max-width: 36rem; }
.hero-actions { margin-top: var(--s-6); --od-gap: var(--s-3); }
.hero-actions .btn .od-icon { --od-icon-size: 18px; }
.hero-stats { border-top: 2px solid var(--c-ink); }
.hero-stats li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: var(--s-4); align-items: baseline; padding-block: var(--s-4); border-bottom: 1px solid var(--c-line); }
.hero-stats .num { font-family: var(--f-display); font-size: var(--t-stat); font-weight: 800; color: var(--c-ink); line-height: 1; white-space: nowrap; letter-spacing: -0.02em; }
.hero-stats .cap { font-size: var(--t-sm); color: var(--c-muted); line-height: 1.45; }
.hero-figure { margin: var(--s-8) 0 0; }
.hero-figure img { border-radius: var(--r-md); background: var(--c-surface); }
.hero-figure figcaption { margin-top: var(--s-3); font-size: var(--t-xs); color: var(--c-muted); }
@media (max-width: 899px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero-figure { margin-top: var(--s-7); }
}

/* ---------- Clients ---------- */
.clients { padding-block: var(--s-7); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); background: var(--c-white); }
.clients-inner { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.clients-label { font-size: var(--t-sm); font-weight: 500; color: var(--c-muted); line-height: 1.45; }
.clients-label strong { display: block; font-family: var(--f-display); font-size: var(--t-lg); color: var(--c-ink); font-weight: 700; margin-bottom: var(--s-1); }
.logo-wall { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--s-5) var(--s-6); align-items: center; }
.logo-wall li { display: flex; align-items: center; justify-content: center; min-height: 48px; }
.logo-wall img { display: block; width: auto; height: auto; max-width: 100%; max-height: 40px; mix-blend-mode: multiply; }
.logo-wall img.is-square { max-height: 52px; }
@media (max-width: 1023px) {
  .clients-inner { grid-template-columns: minmax(0, 1fr); }
  .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 479px) { .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); } }

/* ---------- Method ---------- */
.method-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.steps { counter-reset: step; border-top: 1px solid var(--c-line-dark); }
.steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-4); padding-block: var(--s-5); border-bottom: 1px solid var(--c-line-dark); }
.steps .step-no { font-family: var(--f-display); font-weight: 700; font-size: var(--t-lg); color: var(--c-signal); line-height: 1.3; }
.steps h3 { font-size: var(--t-xl); font-weight: 700; margin-bottom: var(--s-2); }
.steps p { color: var(--c-on-dark); max-width: 34rem; }
.method-media { position: static; } /* was sticky (followed the scroll); changed at Rasmus's request 2026-11-25 */
.method-media img { border-radius: var(--r-md); background: var(--c-deep); }
.method-note { margin-top: var(--s-5); padding: var(--s-5); background: var(--c-deep); border-radius: var(--r-md); }
.method-note p { color: var(--c-ground); font-size: var(--t-lg); line-height: 1.5; font-family: var(--f-display); font-weight: 600; }
@media (max-width: 899px) {
  .method-grid { grid-template-columns: minmax(0, 1fr); }
  .method-media { position: static; order: -1; max-width: 520px; }
}

/* ---------- Services ---------- */
.service-lead { display: grid; align-items: center; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; }
.service-lead .media { background: var(--c-surface); }
.service-lead .body { padding: clamp(24px, 3vw, 48px); display: flex; flex-direction: column; gap: var(--s-4); }
.service-lead h3 { font-size: var(--t-2xl); font-weight: 800; }
.service-lead .body > p { color: var(--c-muted); }
.check-list { display: grid; gap: var(--s-3); margin-block: var(--s-2); }
.check-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.check-list .od-icon { --od-icon-size: 22px; color: var(--c-brand); margin-top: 2px; }
.service-lead .actions { margin-top: auto; padding-top: var(--s-3); --od-gap: var(--s-4); }
.service-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-5); }
.service-card { padding: clamp(24px, 3vw, 40px); background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-md); display: flex; flex-direction: column; gap: var(--s-3); }
.service-card h3 { font-size: var(--t-xl); font-weight: 700; }
.service-card p { color: var(--c-muted); }
.service-card .link-arrow { margin-top: auto; align-self: flex-start; }
@media (max-width: 899px) {
  .service-lead { grid-template-columns: minmax(0, 1fr); }
  .service-pair { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-5); }
.why-item { padding-top: var(--s-5); border-top: 2px solid var(--c-ink); }
.why-item .od-icon { --od-icon-size: 32px; color: var(--c-brand); }
.why-item h3 { margin-top: var(--s-4); font-size: var(--t-lg); font-weight: 700; }
.why-item p { margin-top: var(--s-2); font-size: var(--t-sm); color: var(--c-muted); line-height: 1.55; }
@media (max-width: 1023px) { .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-6); } }
@media (max-width: 639px) { .why-grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-5); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-media img { border-radius: var(--r-md); background: var(--c-surface); }
.about-body .section-head { margin-bottom: var(--s-6); }
.timeline { border-left: 2px solid var(--c-line); margin-left: 6px; }
.timeline li { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--s-4); padding: 0 0 var(--s-5) var(--s-5); }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-ground); border: 2px solid var(--c-brand); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li.is-now::before { background: var(--c-brand); }
.timeline .year { font-family: var(--f-display); font-weight: 700; color: var(--c-ink); white-space: nowrap; }
.timeline p { color: var(--c-muted); }
@media (max-width: 899px) { .about-grid { grid-template-columns: minmax(0, 1fr); } .about-media { max-width: 480px; } }
@media (max-width: 479px) { .timeline li { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); } }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.person { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; }
.person img { --od-ratio: 4 / 3; object-position: 50% 20%; background: var(--c-surface); }
.person .body { padding: var(--s-5); display: grid; gap: var(--s-1); }
.person h3 { font-size: var(--t-lg); font-weight: 700; }
.person .role { font-size: var(--t-sm); color: var(--c-muted); }
.person .contact { margin-top: var(--s-3); display: grid; gap: var(--s-1); }
.person .contact a { display: flex; align-items: center; gap: var(--s-2); min-height: 40px; color: var(--c-ink); text-decoration: none; font-size: var(--t-sm); font-weight: 500; }
.person .contact .od-icon { --od-icon-size: 18px; color: var(--c-brand); }
.person .contact .val { min-width: 0; }
@media (hover: hover) { .person .contact a:hover { color: var(--c-brand); text-decoration: underline; } }
@media (max-width: 899px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .team-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Quote / contact ---------- */
.quote-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.direct { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.direct a, .direct .addr { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-3); align-items: center; color: var(--c-ground); text-decoration: none; }
.direct .ic { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--c-deep); color: var(--c-signal); }
.direct .ic .od-icon { --od-icon-size: 20px; }
.direct .lbl { display: block; font-size: var(--t-xs); color: var(--c-on-dark-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.direct .val { display: block; font-weight: 700; font-size: var(--t-lg); }
@media (hover: hover) { .direct a:hover .val { color: var(--c-signal); text-decoration: underline; } }
.social { margin-top: var(--s-6); --od-gap: var(--s-3); }
.social a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--c-line-dark); border-radius: var(--r-sm); color: var(--c-ground); text-decoration: none; font-size: var(--t-sm); font-weight: 500; }
.social .od-icon { --od-icon-size: 18px; }
@media (hover: hover) { .social a:hover { border-color: var(--c-signal); color: var(--c-signal); } }

.form-card { background: var(--c-ground); color: var(--c-text); border-radius: var(--r-md); padding: clamp(24px, 3.5vw, 48px); }
.form-card h3 { font-size: var(--t-xl); font-weight: 700; color: var(--c-ink); }
.form-card .intro { margin-top: var(--s-2); color: var(--c-muted); font-size: var(--t-sm); }
.req-note { margin-top: var(--s-2); font-size: var(--t-xs); color: var(--c-muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); margin-top: var(--s-6); }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: var(--s-2); align-content: start; }
.field label, .field .legend { font-size: var(--t-sm); font-weight: 700; color: var(--c-ink); }
.field .req { color: var(--c-error); margin-left: 2px; }
.field .hint { font-size: var(--t-xs); color: var(--c-muted); font-weight: 400; display: block; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4);
  font: inherit; font-size: var(--t-base); color: var(--c-ink);
  background: var(--c-white); border: 1px solid #8a998c; border-radius: var(--r-sm);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2301130a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px rgba(0, 109, 38, 0.25); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--c-error); }
.field-error { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--t-sm); color: var(--c-error); line-height: 1.4; }
.field-error .od-icon { --od-icon-size: 16px; margin-top: 2px; }
.consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-3); align-items: start; font-size: var(--t-sm); color: var(--c-text); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--c-brand); cursor: pointer; }
.form-foot { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.form-foot .small { font-size: var(--t-xs); color: var(--c-muted); }
.btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-summary { margin-top: var(--s-5); padding: var(--s-4) var(--s-5); background: var(--c-error-bg); border: 1px solid var(--c-error); border-radius: var(--r-sm); color: var(--c-ink); }
.error-summary h4 { font-family: var(--f-body); font-size: var(--t-sm); font-weight: 700; color: var(--c-error); margin-bottom: var(--s-2); }
.error-summary ul { list-style: disc; padding-left: var(--s-5); display: grid; gap: var(--s-1); font-size: var(--t-sm); }
.error-summary a { color: var(--c-error); font-weight: 500; }
.form-success { text-align: left; }
.form-success .badge { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c-surface); color: var(--c-brand); }
.form-success .badge .od-icon { --od-icon-size: 28px; }
.form-success h3 { margin-top: var(--s-5); }
.form-success p { margin-top: var(--s-3); color: var(--c-muted); max-width: 32rem; }
.form-success .btn { margin-top: var(--s-6); }
.form-success.is-entering { animation: fade-up var(--dur) var(--ease-out); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 899px) { .quote-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: var(--c-on-dark); padding-block: var(--s-8) var(--s-6); border-top: 1px solid var(--c-line-dark); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: var(--s-7); }
.footer-logo { display: block; width: 128px; height: auto; color: var(--c-ground); --logo-green: var(--c-ground); }
.footer-tagline { margin-top: var(--s-5); max-width: 30rem; font-size: var(--t-sm); line-height: 1.6; }
.footer-title { font-family: var(--f-body); font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-on-dark-muted); margin-bottom: var(--s-4); }
.footer-links { display: grid; gap: var(--s-1); }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--c-ground); text-decoration: none; font-size: var(--t-sm); }
@media (hover: hover) { .footer-links a:hover { color: var(--c-signal); text-decoration: underline; } }
.footer-contact { display: grid; gap: var(--s-1); font-size: var(--t-sm); }
.footer-contact a { color: var(--c-ground); text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
@media (hover: hover) { .footer-contact a:hover { color: var(--c-signal); text-decoration: underline; } }
.footer-bottom { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--c-line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); font-size: var(--t-xs); color: var(--c-on-dark-muted); }
@media (max-width: 899px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 479px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ================= Multi-page additions ================= */
:root {
  --t-page: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  --c-line-strong: #b9c6bb;
}
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); align-items: start; }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--r-md); background: var(--c-surface); }
@media (max-width: 767px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } }

/* nav: services submenu */
.nav-item { position: relative; display: flex; }
.nav-sub-toggle {
  display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; padding: 0 var(--s-3);
  background: none; border: 0; border-bottom: 2px solid transparent;
  font: inherit; font-size: var(--t-sm); font-weight: 500; color: var(--c-ink); cursor: pointer;
}
.nav-sub-toggle .od-icon { --od-icon-size: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.nav-sub-toggle[aria-expanded="true"] .od-icon { transform: rotate(180deg); }
.nav-sub-toggle.is-current { border-bottom-color: var(--c-brand); color: var(--c-brand); }
@media (hover: hover) { .nav-sub-toggle:hover { color: var(--c-brand); } }
.nav-sub {
  position: absolute; top: 100%; left: 0; z-index: 60; min-width: 248px; padding: var(--s-2);
  display: grid; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-md);
  box-shadow: 0 16px 32px rgba(1, 19, 10, 0.1); animation: nav-in var(--dur) var(--ease-out);
}
.site-nav .nav-sub a { min-height: 44px; padding: 0 var(--s-3); border-radius: var(--r-sm); border-bottom: 0; }
.site-nav .nav-sub a[aria-current="page"] { background: var(--c-surface); color: var(--c-brand); font-weight: 700; }
@media (hover: hover) { .site-nav .nav-sub a:hover { background: var(--c-surface); } }
@media (max-width: 1023px) {
  .nav-item { display: block; }
  .nav-sub-toggle { width: 100%; justify-content: space-between; min-height: 52px; padding: 0; font-size: var(--t-base); border-bottom: 1px solid var(--c-line); }
  .nav-sub-toggle.is-current { border-bottom-color: var(--c-line); font-weight: 700; }
  .nav-sub { position: static; min-width: 0; padding: var(--s-1) 0 var(--s-2) var(--s-4); border: 0; border-bottom: 1px solid var(--c-line); border-radius: 0; box-shadow: none; animation: none; background: transparent; }
  .site-nav .nav-sub a { min-height: 48px; padding: 0; font-size: var(--t-base); }
  .site-nav .nav-sub a[aria-current="page"] { background: none; }
}

/* page header */
.page-hero { padding-block: clamp(40px, 4vw + 16px, 80px) var(--s-8); border-bottom: 1px solid var(--c-line); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); margin-bottom: var(--s-5); font-size: var(--t-sm); color: var(--c-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); color: var(--c-line-strong); }
.breadcrumb a { color: var(--c-muted); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .breadcrumb a:hover { color: var(--c-brand); } }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.page-hero h1 { font-size: var(--t-page); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; max-width: 18ch; }
.page-hero .lead { margin-top: var(--s-5); font-size: var(--t-lg); line-height: 1.55; color: var(--c-muted); max-width: 38rem; }
.page-hero .actions { margin-top: var(--s-6); --od-gap: var(--s-3); }
.page-hero .actions .btn .od-icon { --od-icon-size: 18px; }
.page-hero figure, .split figure { margin: 0; }
.page-hero img, .split img { border-radius: var(--r-md); background: var(--c-surface); }
.fig-caption { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--c-muted); line-height: 1.45; }
.page-hero-grid--narrow-media figure { max-width: 440px; justify-self: end; width: 100%; }
@media (max-width: 899px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr); } .page-hero-grid--narrow-media figure { justify-self: start; } }

/* prose + split sections */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.split--center { align-items: center; }
.split--narrow-media { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); }
.prose h2 { font-size: var(--t-2xl); font-weight: 800; }
.prose h3 { font-size: var(--t-xl); font-weight: 700; margin-top: var(--s-7); }
.prose > * + p, .prose > p + p { margin-top: var(--s-4); }
.prose h2 + p, .prose h3 + p { margin-top: var(--s-4); }
.prose p { max-width: 40rem; }
.prose .check-list { margin-top: var(--s-5); }
.prose .link-arrow { margin-top: var(--s-5); }
.prose-lead { font-size: var(--t-lg); line-height: 1.55; color: var(--c-muted); }
@media (max-width: 899px) { .split, .split--narrow-media { grid-template-columns: minmax(0, 1fr); } }

/* numbered list on light ground */
.num-list { border-top: 1px solid var(--c-line); margin-top: var(--s-6); }
.num-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s-4); padding-block: var(--s-5); border-bottom: 1px solid var(--c-line); }
.num-list .n { font-family: var(--f-display); font-weight: 700; font-size: var(--t-lg); color: var(--c-brand); line-height: 1.35; }
.num-list h3 { font-size: var(--t-lg); font-weight: 700; margin-bottom: var(--s-1); margin-top: 0; }
.num-list p { color: var(--c-muted); }

/* stat row */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); border-top: 2px solid var(--c-ink); padding-top: var(--s-5); }
.stat-row .num { font-family: var(--f-display); font-size: var(--t-stat); font-weight: 800; color: var(--c-ink); line-height: 1; white-space: nowrap; letter-spacing: -0.02em; }
.stat-row .cap { margin-top: var(--s-2); font-size: var(--t-sm); color: var(--c-muted); line-height: 1.45; }
@media (max-width: 767px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); } }

/* project teasers */
.teaser-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.teaser { display: grid; grid-template-rows: auto 1fr; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; color: var(--c-text); text-decoration: none; transition: border-color var(--dur-fast) var(--ease-out); }
.teaser img { --od-ratio: 4 / 3; background: var(--c-surface); }
.teaser .body { padding: var(--s-5); display: grid; gap: var(--s-2); align-content: start; }
.teaser h3 { font-size: var(--t-lg); font-weight: 700; }
.teaser .meta { font-size: var(--t-sm); color: var(--c-muted); }
.teaser .fact { font-family: var(--f-display); font-weight: 700; color: var(--c-ink); font-size: var(--t-xl); white-space: nowrap; }
@media (hover: hover) { .teaser:hover { border-color: var(--c-brand); } .teaser:hover h3 { color: var(--c-brand); text-decoration: underline; } }
.section-foot { margin-top: var(--s-6); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s-4); margin-bottom: var(--s-7); }
.head-row .section-head { margin-bottom: 0; }
@media (max-width: 899px) { .teaser-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }

/* link cards */
.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.link-card { display: grid; gap: var(--s-3); align-content: start; padding: clamp(24px, 3vw, 40px); background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-md); color: var(--c-text); text-decoration: none; transition: border-color var(--dur-fast) var(--ease-out); }
.link-card h3 { font-size: var(--t-xl); font-weight: 700; }
.link-card p { color: var(--c-muted); }
.link-card .link-arrow { justify-self: start; }
@media (hover: hover) { .link-card:hover { border-color: var(--c-brand); } }
@media (max-width: 767px) { .link-grid { grid-template-columns: minmax(0, 1fr); } }

/* service rows */
.row-list > article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: var(--s-7); border-top: 1px solid var(--c-line); }
.row-list > article:first-child { border-top: 0; padding-top: 0; }
.row-list figure { margin: 0; }
.row-list img { border-radius: var(--r-md); background: var(--c-surface); }
.row-list h2 { font-size: var(--t-2xl); font-weight: 800; }
.row-list p { margin-top: var(--s-4); color: var(--c-muted); max-width: 36rem; }
.row-list .actions { margin-top: var(--s-5); --od-gap: var(--s-5); }
@media (min-width: 900px) { .row-list > article:nth-child(even) figure { order: 2; } }
@media (max-width: 899px) { .row-list > article { grid-template-columns: minmax(0, 1fr); } }

/* use-case groups */
.group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.group { padding: clamp(24px, 3vw, 40px); background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-md); display: grid; gap: var(--s-4); align-content: start; }
.group h2 { font-size: var(--t-xl); font-weight: 700; }
.group p { color: var(--c-muted); }
.pill-list { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pill-list li { padding: var(--s-1) var(--s-3); border-radius: 999px; background: var(--c-surface); color: var(--c-ink); font-size: var(--t-sm); font-weight: 500; }
@media (max-width: 1023px) { .group-grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; } }

/* references */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--c-line-strong); border-radius: 999px; background: var(--c-white); color: var(--c-ink); font: inherit; font-size: var(--t-sm); font-weight: 500; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.chip .count { font-size: var(--t-xs); color: var(--c-muted); }
.chip[aria-pressed="true"] { background: var(--c-ink); color: var(--c-ground); border-color: var(--c-ink); }
.chip[aria-pressed="true"] .count { color: var(--c-on-dark-muted); }
@media (hover: hover) { .chip:hover { border-color: var(--c-ink); } }
.filter-status { margin: var(--s-4) 0 var(--s-6); font-size: var(--t-sm); color: var(--c-muted); }
.ref-grid { columns: 3 300px; column-gap: var(--s-5); }
.ref-card { display: block; break-inside: avoid; margin: 0 0 var(--s-5); background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; }
.ref-card img { background: var(--c-surface); }
.ref-card .body { padding: var(--s-5); display: grid; gap: var(--s-3); }
.ref-card h3 { font-size: var(--t-lg); font-weight: 700; }
.ref-card .meta { font-size: var(--t-sm); color: var(--c-muted); line-height: 1.45; }
.ref-card p { font-size: var(--t-sm); line-height: 1.6; }
.ref-facts { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin: 0; padding-top: var(--s-3); border-top: 1px solid var(--c-line); }
.ref-facts div { display: grid; gap: 2px; }
.ref-facts dt { font-size: var(--t-xs); color: var(--c-muted); }
.ref-facts dd { margin: 0; font-weight: 700; color: var(--c-ink); white-space: nowrap; }
.empty-state { padding: var(--s-7); text-align: center; border: 1px dashed var(--c-line-strong); border-radius: var(--r-md); color: var(--c-muted); }
.quote { margin: 0; max-width: 52rem; }
.quote blockquote { margin: 0; font-family: var(--f-display); font-size: var(--t-xl); font-weight: 600; line-height: 1.4; color: var(--c-ink); }
.quote figcaption { margin-top: var(--s-4); font-size: var(--t-sm); color: var(--c-muted); }
.quote figcaption strong { color: var(--c-ink); }

/* strengths (om oss) */
.strengths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.strengths li { padding-top: var(--s-5); border-top: 2px solid var(--c-ink); }
.strengths h3 { font-size: var(--t-lg); font-weight: 700; }
.strengths p { margin-top: var(--s-2); font-size: var(--t-sm); color: var(--c-muted); line-height: 1.55; }
@media (max-width: 1023px) { .strengths { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); } }
@media (max-width: 559px) { .strengths { grid-template-columns: minmax(0, 1fr); } }

/* contact band */
.cta-band { background: var(--c-brand); color: var(--c-white); padding-block: var(--s-8); }
.cta-band-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-6); align-items: center; }
.cta-band h2 { color: var(--c-white); font-size: var(--t-2xl); font-weight: 800; }
.cta-band p { margin-top: var(--s-3); color: rgba(255, 255, 255, 0.9); font-size: var(--t-lg); max-width: 36rem; }
.cta-band .od-cluster { --od-gap: var(--s-3); }
.cta-band .btn .od-icon { --od-icon-size: 18px; }
.btn--light { background: var(--c-ground); color: var(--c-ink); }
.btn--outline-light { background: transparent; color: var(--c-white); border-color: rgba(255, 255, 255, 0.75); }
@media (hover: hover) {
  .btn--light:hover { background: var(--c-ink); color: var(--c-ground); }
  .btn--outline-light:hover { background: var(--c-white); color: var(--c-brand-strong); border-color: var(--c-white); }
}
@media (max-width: 767px) { .cta-band-inner { grid-template-columns: minmax(0, 1fr); } }

.method-more { margin-top: var(--s-5); }

/* ---------- Ghost build: fixes on top of the prototype ---------- */
/* "Användningsområden" is one word wider than a 375px screen (2px horizontal scroll in the
   prototype). Long words in page headings may now break, hyphenated where the browser knows Swedish. */
@media (max-width: 599px) {
  .page-hero h1 { overflow-wrap: break-word; hyphens: auto; }
}
/* Project cards (home, Bullerplank, Grundläggning): every photo 4:3. The prototype meant this
   (.teaser img sets --od-ratio: 4/3) but each <img> carries its own ratio inline, which won.
   Changed at Rasmus's request 2026-11-25. */
.teaser img { aspect-ratio: 4 / 3; }
