/* DE Bygg AS — "Fra levering til ferdig bygg".
   Machine: a delivered pack of timber is laid out on its c/c spacing and clad.
   Grammar: intro = pack -> c/c -> wall; headings = packed width axis (75%) laid out to 125%;
   photos = narrow boards on c/c that widen until the wall is closed. */

/* static cuts of both variable fonts (tools/static_fonts.py): WebKit drew the variable Zalando Sans thin and wide */
@font-face {
  font-family: "Zalando Sans";
  src: url("fonts/zalando-600-105.woff2?v=36") format("woff2");
  font-weight: 600;
  font-stretch: 105%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Zalando Sans";
  src: url("fonts/zalando-700-100.woff2?v=36") format("woff2");
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Zalando Sans";
  src: url("fonts/zalando-700-105.woff2?v=36") format("woff2");
  font-weight: 700;
  font-stretch: 105%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Zalando Sans";
  src: url("fonts/zalando-700-108.woff2?v=36") format("woff2");
  font-weight: 700;
  font-stretch: 108%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Zalando Sans";
  src: url("fonts/zalando-700-110.woff2?v=36") format("woff2");
  font-weight: 700;
  font-stretch: 110%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Zalando Sans";
  src: url("fonts/zalando-700-112.woff2?v=36") format("woff2");
  font-weight: 700;
  font-stretch: 112%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Zalando Sans";
  src: url("fonts/zalando-800-108.woff2?v=36") format("woff2");
  font-weight: 800;
  font-stretch: 108%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Zalando Sans";
  src: url("fonts/zalando-800-112.woff2?v=36") format("woff2");
  font-weight: 800;
  font-stretch: 112%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Zalando Sans";
  src: url("fonts/zalando-800-118.woff2?v=36") format("woff2");
  font-weight: 800;
  font-stretch: 118%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Zalando Sans";
  src: url("fonts/zalando-800-125.woff2?v=36") format("woff2");
  font-weight: 800;
  font-stretch: 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Zalando Sans";
  src: url("fonts/zalando-850-108.woff2?v=36") format("woff2");
  font-weight: 850;
  font-stretch: 108%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Zalando Sans";
  src: url("fonts/zalando-850-112.woff2?v=36") format("woff2");
  font-weight: 850;
  font-stretch: 112%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Zalando Sans";
  src: url("fonts/zalando-850-120.woff2?v=36") format("woff2");
  font-weight: 850;
  font-stretch: 120%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Zalando Sans";
  src: url("fonts/zalando-850-125.woff2?v=36") format("woff2");
  font-weight: 850;
  font-stretch: 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("fonts/familjen-400.woff2?v=36") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("fonts/familjen-600.woff2?v=36") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("fonts/familjen-700.woff2?v=36") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@property --gx { syntax: "<percentage>"; inherits: true; initial-value: 0%; }

:root {
  --bark: #0d141a;
  --bark-2: #111b22;
  --bark-3: #192630;
  --gold: #dcb052;
  --gold-hi: #f0c868;
  --gold-ink: #77580f;
  --pine: #eef1ef;
  --pine-2: #dbe2e0;
  --sheet: #fbfcfa;
  --ink: #0e161b;
  --ink-2: #46535a;
  --on-dark: #eef3f1;
  --on-dark-2: #9eacb2;
  --line-dark: rgba(238, 243, 241, .16);
  --line-light: rgba(14, 22, 27, .14);

  --f-display: "Zalando Sans", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --f-text: "Familjen Grotesk", "Segoe UI", system-ui, sans-serif;

  --gut: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --section-space: clamp(72px, 9vw, 150px);
  --heading-fs: clamp(40px, 6.2vw, 108px);
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-out-soft: cubic-bezier(.25, 1, .5, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-micro: 260ms; --t-text: 950ms; --t-media: 1200ms; --t-scene: 1800ms;
  --ease-board: cubic-bezier(.33, 1, .68, 1);
  --wood: url("img/spruce-face.webp?v=36");
  --vel: 0;
  --hdr: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
html.smooth { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bark);
  color: var(--ink);
  font: 400 clamp(16px, 1.05vw + 12px, 19px)/1.55 var(--f-text);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip:focus-visible { top: 12px; }

.wrap { width: min(var(--maxw), 100% - 2 * var(--gut)); margin-inline: auto; }
.sec { position: relative; padding-block: var(--section-space); }

/* ------------------------------------------------------------------ headings: packed -> laid out */
.hc { container-type: inline-size; }
.lay {
  font-family: var(--f-display);
  font-weight: 850;
  font-stretch: 125%;
  letter-spacing: -.01em;
  line-height: 1.08;
  font-size: min(var(--fs, 64px), calc(100cqi / var(--lw, 6)));
  text-wrap: balance;
}
.lay em { font-style: normal; color: var(--accent, var(--gold-ink)); }
.lay .w { display: inline-block; }
.lay .wi { display: inline-block; }
.lay .ln { display: block; white-space: nowrap; }
.lay.free .ln { white-space: normal; }
.js .lay.rv:not(.in) { opacity: 0; }
/* «Boards into place»: every line is a slot (room above for Å and the accents, a little below for descenders);
   its words rise through the slot from below, one after another, and settle with a short swing like a board set upright. */
.lay.in:not(.done) .ln { clip-path: inset(-.5em -.3em -.2em -.3em); }
.lay.free.in:not(.done) .ln { clip-path: none; }
.lay.free.in:not(.done) .w { clip-path: inset(-.5em -.12em -.2em -.12em); }
.lay.in:not(.done) .wi { transform-origin: 0 100%; animation: boardIn 620ms cubic-bezier(.3, .7, .25, 1) backwards; animation-delay: calc(var(--ld, 0ms) + var(--li, 0) * 60ms + var(--wi, 0) * 30ms); }
@keyframes boardIn { 0% { transform: translateY(1.15em) rotate(6deg); } 100% { transform: none; } }
@keyframes boardInBlock {
  0% { clip-path: inset(0 -.1em 100% -.1em); transform: translateY(100%); }
  100% { clip-path: inset(-.3em -.1em -.3em -.1em); transform: none; }
}

/* text rise */
.js .up.rv:not(.in) { clip-path: inset(0 0 100% 0); transform: translateY(16px); }
.js .up.rv { clip-path: inset(-60px -40px -60px -40px); transition: clip-path .45s var(--ease-board), transform .45s var(--ease-board); }
.js .up.rv.shown { clip-path: none; }

/* ------------------------------------------------------------------ photos: each rises once into its frame */
.ph { position: relative; overflow: hidden; background: var(--bark-3); }
.ph > img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) { .ph.done > img { transition: transform .8s var(--ease-out); } .ph.done:hover > img { transform: scale(1.035); } }
.ph::before { content: ""; position: absolute; inset: -12px; background: var(--u, none) center / cover; filter: grayscale(.85) brightness(.62) blur(5px); opacity: 0; transition: opacity .5s var(--ease-out); }
.ph.u::before { opacity: 1; }
.ph.done::before { opacity: 0; }
.js .ph.rv:not(.in) > img { opacity: 0; }
/* a photo rises once into its frame (V33c: the c/c grille is gone, user 17.10.2026) */
.ph.in:not(.done) > img { animation: calmIn .6s var(--ease-board) backwards; animation-delay: var(--d, 0ms); }
@keyframes calmIn { 0% { clip-path: inset(100% 0 0 0); transform: translateY(4%) scale(1.03); } 100% { clip-path: inset(0); transform: none; } }


/* failsafe: if app.js never boots, everything hidden for an entrance shows after 2.6 s */
html.js:not(.app-ok) .rv { animation: failsafe 0s 2.6s forwards; }
html.js:not(.app-ok) .ph.rv > img { animation: failsafe 0s 2.6s forwards; }
@keyframes failsafe { to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ buttons
   They never move or change size (user, 3 Oct 2026: buttons must not dance). Hover = a board of colour is laid in
   from the left behind the label; the box, the label width and the neighbours stay exactly where they are. */
.btn {
  --fill: var(--gold-hi); --on-fill: var(--ink);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 24px 6px;
  font: 700 16px/1.1 var(--f-display);
  font-stretch: 108%;
  letter-spacing: .01em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 3px;
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}
.btn::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 7px; pointer-events: none; opacity: .5; transition: opacity .35s;
  background: repeating-linear-gradient(90deg, currentColor 0 1.5px, transparent 1.5px 8px) left bottom / 100% 3px no-repeat, repeating-linear-gradient(90deg, currentColor 0 1.5px, transparent 1.5px 40px) left bottom / 100% 7px no-repeat; }
.btn:hover::after, .btn:focus-visible::after { opacity: .85; }
.btn::before { content: ""; position: absolute; inset: -2px; z-index: -1; background: var(--fill); transform: scaleX(0); transform-origin: left center; transition: transform .5s var(--ease-out); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover, .btn:focus-visible { color: var(--on-fill); }
.btn .ic, .ic { display: inline-flex; width: 20px; height: 20px; flex: none; }
.btn .ic svg, .ic svg { width: 100%; height: 100%; fill: currentColor; }
.btn:active::before { filter: brightness(.92); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 30px -14px rgba(220, 176, 82, .9); --fill: var(--on-dark); }
.btn-ghost { border-color: rgba(238, 243, 241, .45); color: var(--on-dark); --fill: var(--gold); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-dark { background: var(--bark); color: var(--on-dark); --fill: var(--gold); }
.btn-line { border-color: var(--ink); color: var(--ink); --fill: var(--ink); --on-fill: var(--gold); }
.btn-line-dark { border-color: var(--ink); color: var(--ink); --fill: var(--ink); --on-fill: var(--on-dark); }

/* ------------------------------------------------------------------ header */
/* the bar (rule 27–28.10.2026): medium logo, the sections, NO|EN, the phone and the contact button on one line; once the page
   scrolls the logo shrinks and a soft shade (blur 22 px, no line) sets the bar off. 80 → 64 px (72 → 60 on phones) */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--on-dark); transition: background-color .4s; }
/* solid, no backdrop-filter: a filter on the bar makes it the box of the fixed menu sheet (the phone sheet was 46 px tall) */
.hdr.scrolled { background: var(--bark); box-shadow: 0 10px 22px -6px rgba(0, 0, 0, .55); }
.hdr.compact { --hdr: 64px; }
.hdr-in { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 40px); height: var(--hdr); width: min(var(--maxw), 100% - 2 * var(--gut)); margin-inline: auto; transition: height .45s var(--ease-out); }
.logo { display: block; flex: none; }
.logo svg { display: block; height: 50px; width: auto; }
.hdr .logo svg { height: 56px; transition: height .45s var(--ease-out); }
.hdr.compact .logo svg { height: 44px; }
.ftr nav a { position: relative; text-decoration: none; font: 600 15px/1 var(--f-display); font-stretch: 105%; color: var(--on-dark-2); padding: 10px 0; transition: color .3s; }
.ftr nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.ftr nav a:hover { color: var(--on-dark); }
.ftr nav a:hover::after { transform: scaleX(1); }
/* language switch NO | EN: a small two-board control; the current language is the gold board */
.lang { display: inline-flex; gap: 2px; margin: 0; padding: 3px; border: 1px solid var(--line-dark); border-radius: 3px; font: 700 13px/1 var(--f-display); font-stretch: 110%; letter-spacing: .06em; }
.lang a { padding: 7px 9px; border-radius: 2px; text-decoration: none; color: var(--on-dark-2); transition: background-color .25s, color .25s; }
.lang a:hover { color: var(--on-dark); background: rgba(238, 243, 241, .08); }
.lang a[aria-current] { background: var(--gold); color: var(--ink); }
.menu .lang { margin: 0 0 24px; font-size: 15px; }
/* the menu's big link style must not reach NO|EN: a compact two-part switch, the parts clearly apart (user 18.10) */
.menu .lang { gap: 4px; padding: 0; border: 0; }
.menu .lang a:not(.btn) { display: inline-block; padding: 10px 14px; font: 700 15px/1 var(--f-display); font-stretch: 110%; letter-spacing: .06em; color: var(--on-dark-2); }
.menu .lang a[aria-current]:not(.btn) { color: var(--ink); }
.menu-btn { display: none; position: relative; align-self: center; align-items: center; gap: 8px; min-height: 48px; padding: 12px 6px 12px 44px; border: 0; border-radius: 3px; background: transparent; color: var(--on-dark); cursor: pointer; font: 700 17px/1 var(--f-display); font-stretch: 110%; letter-spacing: .02em; }
.menu-btn .ic-menu { width: 26px; height: 26px; }
.menu-btn:hover { color: var(--gold); }
.nav { display: none; }
.nav ul { display: flex; gap: clamp(22px, 2.2vw, 38px); }
.nav a { position: relative; display: block; padding: 10px 0; text-decoration: none; font: 600 16px/1 var(--f-display); font-stretch: 105%; color: var(--on-dark-2); transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.nav a:hover { color: var(--on-dark); }
.nav a:hover::after { transform: scaleX(1); }
.lang-hdr { margin-left: auto; gap: 6px; padding: 0; border: 0; }
.lang-hdr a { padding: 9px 10px; font-size: 14px; border: 1px solid var(--line-dark); }
.lang-hdr a[aria-current] { border-color: var(--gold); }
.hdr-tel { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-left: clamp(14px, 1.6vw, 26px); color: var(--on-dark); text-decoration: none; font: 700 17px/1 var(--f-display); font-stretch: 108%; white-space: nowrap; transition: color .3s; }
.hdr-tel .ic { width: 20px; height: 20px; color: var(--gold); }
.hdr-tel:hover { color: var(--gold); }
.hdr-cta { display: none; min-height: 0; padding: 14px 22px; font-size: 15px; }
/* the sections fit from 1280 px; below it «Meny» takes their place — NO|EN and the phone stay in the bar */
@media (min-width: 1280px) {
  .nav { display: block; }
  .hdr-cta { display: inline-flex; margin-left: clamp(14px, 1.6vw, 26px); }
  .menu-btn, .menu { display: none !important; }
}
@media (max-width: 1279px) {
  .menu-btn { display: inline-flex; margin-left: clamp(8px, 1.2vw, 16px); }
}
@media (max-width: 600px) {
  .hdr .logo { margin-right: 0; }
  .hdr-tel { margin-left: 8px; padding: 0; width: 44px; justify-content: center; }
  .hdr-tel .t { display: none; }
  .hdr-tel .ic { width: 26px; height: 26px; }
  .menu-btn { margin-left: 0; }
}
.ic-menu { width: 20px; height: 20px; }
.ic-menu path { transform-box: fill-box; transform-origin: center; transition: transform .5s var(--ease-in-out); }
.ic-menu .mb-m { transition: opacity .25s; }
.menu-btn[aria-expanded="true"] .mb-a { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .mb-m { opacity: 0; }
.menu-btn[aria-expanded="true"] .mb-b { transform: translateY(-6px) rotate(-45deg); }
.mb-l { display: inline-grid; }
.mb-l > span { grid-area: 1 / 1; transition: opacity .3s var(--ease-out), transform .45s var(--ease-in-out); }
.mb-close { opacity: 0; transform: translateY(.5em); }
.menu-btn[aria-expanded="true"] .mb-open { opacity: 0; transform: translateY(-.5em); }
.menu-btn[aria-expanded="true"] .mb-close { opacity: 1; transform: none; }
.menu { position: fixed; inset: var(--hdr) 0 auto; background: var(--bark); padding: 18px var(--gut) 28px; }
/* one left-aligned column: the language switch and the call button never share a line */
.menu:not([hidden]) { display: flex; flex-direction: column; align-items: flex-start; }
.menu ul { display: grid; gap: 4px; margin-bottom: 24px; align-self: stretch; }
.menu a:not(.btn) { display: block; padding: 12px 0; font: 800 28px/1.1 var(--f-display); font-stretch: 118%; text-decoration: none; color: var(--on-dark); }
/* the open menu is one left-aligned column: links → NO|EN → the call → the social profiles as icons in one row, all one
   size (coordinator rule 18.10 «открытое мобильное меню без каши») */
@media (max-width: 900px) {
  .menu { bottom: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--bark-2); }
}
@media (min-width: 901px) {
  .menu { left: auto; width: min(440px, 100%); padding: 28px 40px 36px; }
}
.menu-so { display: flex; gap: 8px; margin: 24px 0 0 -10px; }
.menu .menu-so a:not(.btn) { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--on-dark-2); }
.menu .menu-so .ic { width: 24px; height: 24px; }
.menu .menu-so a:not(.btn):hover { color: var(--gold); }

/* ------------------------------------------------------------------ hero (V36: one full-bleed scene, the text on its own field under it) */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100svh;
  padding-top: var(--hdr);
  background: var(--bark);
  color: var(--on-dark);
  --accent: var(--gold);
}
.hero-scene { position: relative; min-height: clamp(250px, 36vw, 620px); overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; background: var(--bark-3); }
.hero-scene.drag { cursor: grabbing; }
.hs { position: absolute; inset: 0; margin: 0; opacity: 0; transform: translateX(var(--dx, 0px)); transition: opacity .9s var(--ease-out); }
.hs.on { opacity: 1; z-index: 1; }
.hero-scene.drag .hs { transition: none; }
.hs img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.hs.on img { animation: heroDrift 18s var(--ease-out) both; }
@keyframes heroDrift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  grid-template-areas: "hd side" "proof tabs";
  gap: clamp(18px, 2vw, 30px) clamp(32px, 5vw, 96px);
  align-items: start;
  padding: clamp(24px, 2.6vw, 40px) var(--gut) clamp(26px, 3vw, 44px);
  padding-inline: max(var(--gut), calc((100% - var(--maxw)) / 2));
}
.hero-hd { grid-area: hd; }
.hero-side { grid-area: side; }
.hero-tabs { grid-area: tabs; }
.hero-bar .proof { grid-area: proof; margin-top: 0; align-self: start; }
.hero-h .lay { --fs: clamp(32px, 3.5vw, 60px); }
.lead { font-size: clamp(17px, .7vw + 13px, 21px); max-width: 34em; color: var(--on-dark-2); margin: 0 0 clamp(18px, 2vw, 26px); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.proof { display: grid; grid-template-columns: repeat(3, max-content); justify-content: start; align-items: start; gap: 18px clamp(24px, 2.5vw, 36px); }
.proof li, .proof a { display: grid; gap: 4px; text-decoration: none; }
.proof b { font: 800 clamp(16px, 1.2vw, 20px)/1.15 var(--f-display); font-stretch: 112%; color: var(--on-dark); }
.proof span { font-size: 14px; line-height: 1.35; color: var(--on-dark-2); }
.proof a:hover b { color: var(--gold); }
/* the three jobs of the scene: a ruler of numbered marks; the gold board under the current one is the one on show */
.hero-tabs { display: flex; flex-wrap: wrap; gap: 0 clamp(14px, 3vw, 44px); }
.ht { appearance: none; position: relative; display: flex; align-items: baseline; gap: 10px; padding: 10px 0 16px; border: 0; border-radius: 0; background: none; color: var(--on-dark-2); font: 700 clamp(16px, .5vw + 12px, 19px)/1 var(--f-display); font-stretch: 108%; cursor: pointer; transition: color .3s; }
.ht-n { font-size: 13px; letter-spacing: .08em; color: var(--gold); }
.ht::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.ht:hover { color: var(--on-dark); }
.ht.on { color: var(--on-dark); }
.ht.on::after { transform: scaleX(1); }
.ht:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; }

/* ------------------------------------------------------------------ section heads */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 80px); align-items: end; margin-bottom: clamp(44px, 6vw, 96px); }
.sec-head .lay, .demo .lay, .alt-index .lay, .transport .lay, .steps .lay, .gallery .lay, .omtaler .lay, .omrade .lay, .kontakt .lay, .pr-cta .lay { --fs: var(--heading-fs); }
.sec-lead { font-size: clamp(17px, .6vw + 13px, 21px); max-width: 30em; margin: 0; color: var(--ink-2); }

/* ------------------------------------------------------------------ services */
.tjenester { background: var(--pine); }


/* ------------------------------------------------------------------ demos */
.demo-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 96px); align-items: center; }
.demo-grid.rev { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.demo-tx p { max-width: 28em; margin: clamp(16px, 2vw, 26px) 0 0; }
.mini-q { margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; }
.mini-q p { font: 700 clamp(19px, 1.3vw + 10px, 26px)/1.3 var(--f-display); font-stretch: 100%; margin: 0 0 10px; }
.mini-q cite { font-style: normal; font-size: 14px; letter-spacing: .02em; }

.demo-deck { background: var(--sheet); }
.demo-deck .demo-tx p, .demo-deck .mini-q cite { color: var(--ink-2); }
/* terrace (V33d): a photo like the others — the boards laid over gold joists went with the c/c grille (user 17.10) */

.demo-win { background: var(--bark); color: var(--on-dark); --accent: var(--gold); }
.demo-win .demo-tx p { color: var(--on-dark-2); }
.demo-win .mini-q cite { color: var(--on-dark-2); }
.win-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 4.5vw, 88px); align-items: center; }
/* V33 splice: one window joint, three states, WebGL (splice.js). The three photos under the canvas are the textures and
   the no-WebGL fallback: the current one and those before it are shown, a later state wipes in from the right. */
.sp-col { min-width: 0; }
.splice { position: relative; margin: 0; width: 100%; aspect-ratio: 4 / 3; max-height: calc(100svh - var(--hdr) - 132px); min-height: 300px; overflow: hidden; background: var(--bark-3); }
.sp-frames, .sp-frames img, .splice canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sp-frames img { object-fit: cover; transition: clip-path .8s var(--ease-out); }
.sp-frames img.on ~ img { clip-path: inset(0 0 0 100%); }
.splice canvas { display: block; opacity: 0; }
.splice.gl canvas { opacity: 1; }
.splice.gl .sp-frames { visibility: hidden; }
.sp-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp-steps::before, .sp-steps::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; pointer-events: none; }
.sp-steps::before { background: var(--line-dark); }
.sp-steps::after { background: var(--gold); transform-origin: 0 50%; transform: scaleX(calc((var(--sp, 2) + 1) / 3)); }
.sp-steps button { display: block; min-width: 0; min-height: 48px; padding: 15px 12px 4px 0; border: 0; background: none; color: var(--on-dark-2); font: 600 clamp(14px, .35vw + 11px, 17px)/1.25 var(--f-text); text-align: left; cursor: pointer; transition: color var(--t-micro); }
.sp-steps button:hover, .sp-steps button[aria-pressed="true"] { color: var(--on-dark); }
.win28 { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); margin-top: clamp(26px, 3vw, 44px); }
.w-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; width: min(260px, 52%); flex: none; }
.w-grid i { aspect-ratio: 3 / 4; border: 1.5px solid rgba(238, 243, 241, .28); background: transparent; transition: background-color .35s, border-color .35s, box-shadow .5s; }
.w-grid i { position: relative; overflow: hidden; }
.w-grid i.on, html:not(.js) .w-grid i { background: linear-gradient(170deg, #f8e2a6 0%, var(--gold-hi) 28%, var(--gold) 62%, #9c7425 100%); border-color: #f0d38a; box-shadow: inset 0 0 0 1px rgba(255, 244, 214, .3), 0 0 16px -3px rgba(235, 200, 114, .6); }
.w-grid i.on::after, html:not(.js) .w-grid i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255, 255, 255, .42) 0 16%, transparent 17% 100%); }
.w-num b { display: block; font: 850 clamp(48px, 6vw, 96px)/.9 var(--f-display); font-stretch: 125%; color: var(--gold); min-width: 2.3em; }
.w-num span { display: block; max-width: 12em; margin-top: 8px; color: var(--on-dark-2); font-size: 15px; }

/* «Fra pakke til vegg»: a pinned roll; the scroll plays it like film (roll.js, canvas). The whole section is the dark
   studio; phase names are drawn as callouts inside the frame; at the end the real facade is clad over the drawing. */
.demo-roll { padding: 0; color: var(--on-dark); --accent: var(--gold); background: var(--bark-2); }
.demo-roll .demo-tx p { color: var(--on-dark-2); }
.demo-roll .mini-q cite { color: var(--on-dark-2); }
.roll-pin { padding-block: var(--section-space); }
.roll-grid { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.roll { position: relative; margin: 0; width: 100%; height: min(calc(100svh - var(--hdr) - 48px), 980px); min-height: 420px; overflow: hidden; }
.roll canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.roll-photo { position: absolute; inset: 0; }
.roll-photo > img { width: 100%; height: 100%; object-fit: cover; }
.js .roll.live .roll-photo { opacity: 0; }
.js .roll.live .roll-photo > img { visibility: hidden; }
.js .roll.live .roll-photo.whole > img { visibility: visible; }
.roll-photo.whole .roll-strip { visibility: hidden; }
.roll-strip { position: absolute; top: 0; height: 100%; transform-style: preserve-3d; will-change: transform; }
.rs-front, .rs-back { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.rs-back { overflow: hidden; transform: rotateY(180deg); }
.rs-back img { position: absolute; top: 0; max-width: none; object-fit: cover; }
.pinned-roll .roll-pin { position: sticky; top: 0; min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--hdr) + 16px) 24px; }
.pinned-roll .roll-pin > .wrap { width: min(var(--maxw), 100% - 2 * var(--gut)); }

/* ------------------------------------------------------------------ full index */
/* «Alt vi tar på oss» (V33b, redrawn V33c — user 17.10: «идея ок, но дизайн страшный, можно все не так крупно»): four
   packs of boards standing on one floor. Every service is one board, all boards of a pack the same length, stacked with
   narrow gaps like a real timber pack; a pack is stacked from the floor up when it comes into view and the scroll speed
   loosens it on the gaps. A board is picked with its «+»: it turns dark with a gold tick, like the picked subject in the
   form, and the picks gather in the bar under the packs. */
.alt-index { position: relative; background: var(--pine); padding-block: clamp(40px, 5vw, 80px) clamp(40px, 5vw, 80px); overflow-x: clip; }
.ix-bar:not(.on) { position: absolute; left: 0; right: 0; bottom: 0; }
.ix-top { margin-bottom: clamp(32px, 4vw, 60px); }
.ix-head { margin: 0; }
.ix-lead { margin: clamp(10px, 1.2vw, 18px) 0 0; max-width: 34em; color: var(--ink-2); font-size: clamp(16px, .3vw + 14px, 19px); }
.ix { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(16px, 2vw, 32px); align-items: start; }
.ix-pk { display: flex; flex-direction: column; min-width: 0; scroll-margin-top: calc(var(--hdr) + 20px); }
/* the trade's name tops its pack, the count at the pack's right end; the packs line up at the top (user 17.10.2026) */
.ix-cat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 12px; font: 800 clamp(16px, .35vw + 12px, 19px)/1.2 var(--f-display); font-stretch: 108%; color: var(--ink); }
.ix-n { font-weight: 700; color: var(--gold-ink); }
.ix-stack { display: flex; flex-direction: column; gap: 3px; padding-bottom: 3px; border-bottom: 2px solid var(--ink); }
.ix-nav { display: none; }
.ix-b { --row: var(--sheet); display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; margin: 0; padding: 10px 12px 10px 14px; border: 0; border-radius: 0; color: var(--ink); text-align: left; cursor: pointer;
  font: 600 clamp(14.5px, .15vw + 12.5px, 16px)/1.3 var(--f-text);
  background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 0 / 0 100%, var(--row);
  transition: background-size .45s var(--ease-board), color .25s .1s; }
/* the pick mark at the board's end: «+», a gold tick once picked */
.ix-b::after { content: ""; flex: none; width: 14px; height: 14px; background: no-repeat center / 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%230e161b' stroke-width='1.6'/%3E%3C/svg%3E"); }
.ix-b[aria-pressed="true"] { color: var(--on-dark); background-size: 100% 100%, auto; }
.ix-b[aria-pressed="true"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1.5 7.4 5.3 11 12.5 3' fill='none' stroke='%23dcb052' stroke-width='2'/%3E%3C/svg%3E"); }
@media (hover: hover) and (pointer: fine) { .ix-b:hover:not([aria-pressed="true"]) { --row: var(--pine-2); } }
/* a pack is stacked from the floor up when it comes into view: each board slides out of the pack's edge */
.js .ix-pk:not(.in) .ix-b { clip-path: inset(0 100% 0 0); }
.js .ix-pk .ix-b { transition: background-size .45s var(--ease-board), color .25s .1s, transform .35s var(--ease-out), clip-path .7s var(--ease-board); }
.js .ix-pk.in:not(.done) .ix-b { transition-delay: 0s, .1s, 0s, calc(var(--k, 0) * 40ms); }
.ix-bar { position: sticky; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 5; display: flex; align-items: center; gap: 14px 24px; margin-top: clamp(20px, 3vw, 40px); padding: 12px 12px 12px clamp(16px, 2vw, 26px); background: var(--bark); color: var(--on-dark); transform: translateY(calc(100% + 40px)); visibility: hidden; transition: transform .6s var(--ease-board), visibility 0s .6s; }
.ix-bar.on { transform: none; visibility: visible; transition: transform .6s var(--ease-board), visibility 0s; }
.ix-sum { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; color: var(--on-dark-2); }
.ix-sum b { font: 850 20px/1 var(--f-display); font-stretch: 108%; color: var(--gold); }
.ix-sum span:first-of-type { margin-right: .7em; }
.ix-list { color: var(--on-dark); }
.ix-bar .btn { flex: none; }

/* ------------------------------------------------------------------ transport: three panels of the fleet on the dark ground (V36) */
.transport { background: var(--bark-3); color: var(--on-dark); --accent: var(--gold); }
.tr-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 80px); align-items: end; margin-bottom: clamp(28px, 4vw, 56px); }
.tr-head p { margin: 0; max-width: 28em; color: var(--on-dark-2); }
.fleet { display: flex; gap: 6px; height: clamp(340px, 50vw, 660px); }
.fl { position: relative; flex: 1 1 0; min-width: 0; margin: 0; overflow: hidden; background: var(--bark-3); cursor: pointer; transition: flex-grow .7s var(--ease-out); }
.fl:nth-child(1) img, .fl:nth-child(2) img { object-position: 50% 62%; }
.fl:nth-child(3) img { object-position: 100% 50%; }
.fl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.fleet.pick .fl { flex-grow: .7; }
.fleet .fl.on { flex-grow: 3; }
@media (hover: hover) and (pointer: fine) { .fleet:not(.pick) .fl:hover { flex-grow: 2.4; } .fl:hover img { transform: scale(1.04); } }
.tr-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); margin: clamp(28px, 4vw, 56px) 0 0; }
.tr-list li { padding: 16px 0 14px; border-top: 1px solid var(--line-dark); font: 600 clamp(16px, .5vw + 12px, 19px)/1.3 var(--f-display); font-stretch: 105%; color: var(--on-dark); }
@media (max-width: 900px) { .tr-head { grid-template-columns: minmax(0, 1fr); } .tr-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .fleet { flex-direction: column; height: auto; }
  .fl { flex: none; height: 38vw; transition: height .7s var(--ease-out); }
  .fleet.pick .fl { flex-grow: 0; height: 20vw; }
  .fleet .fl.on { flex-grow: 0; height: 96vw; }
  .fl:nth-child(1) img, .fl:nth-child(2) img { object-position: 50% 58%; }
  .tr-list { grid-template-columns: minmax(0, 1fr); }
}
.field-grow { clip-path: inset(0 0 0 0); }
@supports (animation-timeline: view()) {
  .field-grow { animation: fieldGrow linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  @keyframes fieldGrow { from { clip-path: inset(0 var(--gut) 0 var(--gut)); } to { clip-path: inset(0 0 0 0); } }
}

/* ------------------------------------------------------------------ steps: the process is the machine
   Phones / no JS: a numbered list with photos. Wide screens (.pinned): one sticky scene; every next frame arrives
   as a pack of boards, is laid out on c/c and closes over the previous one (app.js scrubs it by scroll). */
.steps { background: var(--bark); color: var(--on-dark); --accent: var(--gold); padding: 0; }
.steps-pin { padding-block: clamp(72px, 8vw, 130px); }
.steps-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.steps-list { display: grid; gap: clamp(48px, 8vw, 90px); margin-top: clamp(32px, 4vw, 56px); }
.st { position: relative; display: grid; gap: 14px; }
.st-n { font: 850 clamp(64px, 18vw, 120px)/.8 var(--f-display); font-stretch: 125%; color: var(--gold); letter-spacing: -.02em; }
.st-h { font: 850 clamp(30px, 7vw, 56px)/1.08 var(--f-display); font-stretch: 125%; letter-spacing: -.01em; }
.st p { color: var(--on-dark-2); max-width: 30em; margin: 0; font-size: clamp(16px, .5vw + 13px, 20px); }
.st-ph { aspect-ratio: 4 / 3; margin-top: 10px; }
.st-q { margin: 10px 0 0; padding: clamp(22px, 4vw, 40px); background: var(--gold); color: var(--ink); }
.st-q p { font: 850 clamp(24px, 4vw, 44px)/1.12 var(--f-display); font-stretch: 112%; color: var(--ink); margin: 0 0 16px; max-width: none; }
.st-q cite { font-style: normal; font-size: 16px; color: #3a3320; }
.st-studs, .stage { display: none; }

.pinned .steps-pin { position: sticky; top: 0; height: 100svh; padding-block: calc(var(--hdr) + 20px) 40px; display: flex; align-items: center; overflow: hidden; }
.pinned .steps-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 96px); align-items: stretch; width: min(var(--maxw), 100% - 2 * var(--gut)); height: 100%; }
.pinned .steps-tx { display: flex; flex-direction: column; min-height: 0; }
.pinned .steps-list { position: relative; flex: 1; margin: clamp(20px, 3vw, 44px) 0 0; display: block; }
.pinned .st { position: absolute; inset: 0 0 auto 0; align-content: start; visibility: hidden; }
.pinned .st.on { visibility: visible; }
.pinned .st-ph, .pinned .st-q { display: none; }
.pinned .st-n { font-size: clamp(110px, 14vw, 230px); }
.pinned .st-h { font-size: clamp(34px, 3.6vw, 64px); }
.pinned .st.on p { animation: rise 700ms var(--ease-out) 380ms backwards; }
@keyframes rise { 0% { opacity: 0; transform: translateY(12px); } }
.pinned .st-studs { display: flex; align-items: flex-end; gap: clamp(22px, 3vw, 44px); height: 64px; margin-top: auto; }
.st-studs i { width: 5px; height: 100%; background: rgba(238, 243, 241, .14); position: relative; overflow: hidden; }
.st-studs i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: bottom; transform: scaleY(var(--f, 0)); }
.pinned .stage { display: block; position: relative; overflow: hidden; background: var(--bark-2); }
/* steps stage (V33c): one photo per step; the next one rises over the previous one in a short wipe */
.sl { position: absolute; inset: 0; overflow: hidden; visibility: hidden; }
.sl.on, .sl.prev { visibility: visible; }
.sl.on { z-index: 2; }
.sl.prev { z-index: 1; }
.sl > img, .sl > .sq { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sl.arrive { animation: stIn .55s var(--ease-board) backwards; }
.sl.arrive > * { animation: stSettle .55s var(--ease-board) backwards; }
@keyframes stIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes stSettle { from { transform: translateY(5%) scale(1.03); } to { transform: none; } }
.sq { display: flex; flex-direction: column; justify-content: center; padding: 8%; background: var(--gold); color: var(--ink); }
.sq p { font: 850 clamp(28px, 3.5vw, 64px)/1.1 var(--f-display); font-stretch: 112%; margin: 0 0 22px; }
.sq cite { font-style: normal; color: #3a3320; font-size: clamp(16px, 1.3vw, 21px); }
.sq p::before { content: ""; display: block; width: 46px; height: 6px; margin-bottom: 26px; background: var(--ink); }

/* ------------------------------------------------------------------ projects: series index + board panel
   The list of series scrolls; the panel beside it is sticky. The active series is laid out like delivered boards:
   one photo wide, the rest as narrow boards on c/c that widen under the pointer. Phones: each row carries a strip. */
.gallery { background: var(--sheet); }
.pj { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.pj-list { margin-top: clamp(28px, 4vw, 56px); }
.pj-row { border-top: 1px solid var(--line-light); }
.pj-row:last-child { border-bottom: 1px solid var(--line-light); }
.pj-a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 11px 0; text-decoration: none; color: var(--ink-2); transition: color .3s; }
.pj-i { font: 700 13px/1 var(--f-display); font-stretch: 100%; letter-spacing: .06em; color: var(--gold-ink); }
.pj-t { font: 800 clamp(19px, 1.1vw + 10px, 28px)/1.15 var(--f-display); font-stretch: 118%; letter-spacing: -.01em; }
.pj-a .ic { width: 22px; height: 22px; align-self: center; opacity: .35; transition: opacity .3s, color .3s; }
.pj-row.on .pj-a, .pj-a:hover { color: var(--ink); }
.pj-row.on .pj-a .ic, .pj-a:hover .ic { opacity: 1; color: var(--gold-ink); }
.pj-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 16px; }
.pj-strip::-webkit-scrollbar { display: none; }
.pj-strip li { flex: none; width: 40vw; max-width: 240px; }
.pj-thumb { display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 0; background: var(--pine-2); cursor: zoom-in; overflow: hidden; }
.pj-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pj-r { display: none; }

@media (min-width: 901px) {
  .pj { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
  .pj-strip { display: none; }
  .pj-a { padding: clamp(10px, 1vw, 15px) 0; }
  .pj-r { display: block; position: sticky; top: calc(var(--hdr) + 24px); height: min(76svh, 820px); }
  .pj-stage { position: relative; height: 100%; }
  .pj-set { position: absolute; inset: 0; display: flex; gap: 8px; visibility: hidden; }
  .pj-set.on, .pj-set.prev { visibility: visible; }
  .pj-set.on { z-index: 2; }
  .pj-set.prev { z-index: 1; }
  html:not(.js) .pj-set:first-child { visibility: visible; }
  .pj-b { position: relative; flex: 1 1 0; min-width: 0; padding: 0; border: 0; overflow: hidden; background: var(--pine-2); cursor: zoom-in; transition: flex-grow .8s var(--ease-out); }
  .pj-b:first-child { flex-grow: 5.2; }
  .pj-b img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
  .pj-b:hover img { transform: scale(1.04); }
  /* arrival: the photos of the series open from the left edge, one after another, quickly (no gold boards, V33c) */
  .pj-set.on.arrive .pj-b { animation: pjIn 420ms var(--ease-out) backwards; animation-delay: calc(var(--j) * 30ms); }
}
@keyframes pjIn {
  0% { clip-path: inset(0 82% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}


/* ------------------------------------------------------------------ reviews */
.omtaler { background: var(--bark-2); color: var(--on-dark); --accent: var(--gold); }
.score { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: clamp(24px, 3vw, 40px) 0 22px; }
.score b { font: 850 clamp(80px, 10vw, 168px)/.85 var(--f-display); font-stretch: 125%; color: var(--gold); }
.score span { color: var(--on-dark-2); max-width: 14em; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; margin-bottom: 32px; }
.bars li { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 6px; height: 100%; width: 44px; }
.b-k, .b-v { font: 800 13px/1 var(--f-display); font-stretch: 112%; color: var(--on-dark-2); }
.b-k::after { content: "★"; color: var(--gold); margin-left: 2px; }
.b-bar { position: relative; width: 12px; height: 100%; background: rgba(238, 243, 241, .1); align-self: stretch; justify-self: center; }
.b-bar i { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--v) * 100%); min-height: 2px; background: var(--gold); transform-origin: bottom; }
.js .bars:not(.in) .b-bar i { transform: scaleY(0); }
.bars.in .b-bar i { transition: transform 1.1s var(--ease-out) calc(var(--i) * 90ms); }
.q-stars { display: flex; gap: 3px; }
.q-stars svg { width: 16px; height: 16px; fill: var(--gold); }
.q blockquote { margin: 0; }
.q blockquote p { font: 700 clamp(18px, .7vw + 12px, 22px)/1.35 var(--f-display); font-stretch: 100%; margin: 0; }
.q figcaption { display: grid; gap: 2px; margin-top: auto; font-size: 14px; color: var(--on-dark-2); }
.q figcaption b { color: var(--on-dark); font-size: 16px; }

/* ------------------------------------------------------------------ area map */
.omrade { background: var(--pine); }
.ar-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 96px); align-items: center; }
.ar-tx p { color: var(--ink-2); margin: clamp(16px, 2vw, 24px) 0; }
.munis { columns: 3 9em; column-gap: 20px; }
.munis li { padding: 5px 0; break-inside: avoid; font-weight: 600; cursor: default; transition: color .25s; }
.munis li:hover, .munis li.hot { color: var(--gold-ink); }
.map-svg { width: 100%; height: auto; display: block; }
.m-ctx path { fill: none; stroke: rgba(14, 22, 27, .2); stroke-width: .4; }
.m-srv path { fill: #c8aa6c; stroke: #f2f5f4; stroke-width: .7; transition: fill .3s; }
.m-srv path.hot { fill: #8f6a1c; }
.m-base rect { fill: var(--gold); stroke: var(--ink); stroke-width: .8; }
.m-lbl text { font: 700 4.6px/1 var(--f-display); font-stretch: 112%; fill: var(--ink-2); text-anchor: middle; pointer-events: none; }
.m-lbl .m-home { font-size: 6px; font-weight: 850; fill: var(--ink); text-anchor: start; }
.js .map:not(.in) .map-svg { opacity: 0; }
.map.in:not(.done) .map-svg { animation: calmIn .7s var(--ease-board) backwards; }

/* ------------------------------------------------------------------ contact finale */
.kontakt { background: #dcc8a3; color: var(--ink); --accent: var(--ink); }
.kontakt .lay em { color: #7d5320; -webkit-text-stroke: 0; text-shadow: none; }
.kontakt .hc { margin-bottom: clamp(28px, 4vw, 56px); }
.k-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 0 clamp(32px, 5vw, 88px); align-items: stretch; padding-top: clamp(24px, 3vw, 40px); border-top: 2px solid var(--ink); }
#foresporsel { scroll-margin-top: calc(var(--hdr) + 28px); }
.k-form { display: grid; gap: 24px; align-content: start; }
.k-info { display: flex; flex-direction: column; padding-left: clamp(24px, 3vw, 40px); border-left: 1px solid rgba(14, 22, 27, .28); }
.k-lab { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1.3 var(--f-display); font-stretch: 105%; color: rgba(14, 22, 27, .74); }
.k-lab .ic { width: 15px; height: 15px; }
.k-call { display: grid; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid rgba(14, 22, 27, .28); color: var(--ink); text-decoration: none; }
.k-call-n { font: 850 clamp(34px, 3.5vw, 54px)/1 var(--f-display); font-stretch: 125%; white-space: nowrap; transition: color .3s; }
.k-call:hover .k-call-n, .k-call:focus-visible .k-call-n { color: #7d5320; }
.k-list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; margin: 0; }
.k-list > div { display: grid; gap: 3px; padding: 13px 0; border-bottom: 1px solid rgba(14, 22, 27, .28); }
.k-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.k-list dt { font: 700 13px/1.3 var(--f-display); font-stretch: 105%; color: rgba(14, 22, 27, .74); }
.k-list dd { margin: 0; font-size: 16px; line-height: 1.45; }
.k-list a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(14, 22, 27, .4); transition: text-decoration-color .3s; }
.k-list a:hover { text-decoration-color: var(--ink); }
.k-list small { display: block; margin-top: 3px; font-size: 14px; color: rgba(14, 22, 27, .74); }
.chips { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font: 700 14px/1.2 var(--f-display); font-stretch: 105%; margin-bottom: 12px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line-light); font-weight: 600; font-size: 15px; transition: background-color .25s, border-color .25s, color .25s; }
.chip input:checked + span { background: var(--bark); border-color: var(--bark); color: var(--gold); }
.chip input:focus-visible + span { outline: 3px solid var(--gold-ink); outline-offset: 2px; }
.chip:hover span { border-color: var(--ink); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fld { display: grid; gap: 6px; }
.fld > span { font: 700 14px/1.2 var(--f-display); font-stretch: 105%; }
.fld input, .fld textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--pine); border: 0; border-bottom: 2px solid rgba(14, 22, 27, .35); border-radius: 0; padding: 12px 14px; transition: border-color .25s, background-color .25s; }
.fld input:focus, .fld textarea:focus { outline: none; border-bottom-color: var(--gold-ink); background: #fff; }
.fld input[aria-invalid="true"] { border-bottom-color: #a3261b; }
.fld-grow { flex: 1; grid-template-rows: auto 1fr; }
.fld-grow textarea { resize: vertical; min-height: 120px; height: 100%; }
.f-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.f-status { margin: 0; font-size: 15px; color: var(--ink-2); max-width: 26em; }

/* ------------------------------------------------------------------ footer: one centred composition
   logo | sections | Facebook on one line; under the sections the legal line, items divided by thin rules. */
.ftr { background: var(--bark); color: var(--on-dark); }
.ftr-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px 28px; padding-block: 36px 30px; }
.ftr-in .logo { justify-self: start; }
.ftr-in .logo svg { height: 56px; }
.ftr nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.ftr-side { justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 14px 22px; }
.ftr-fb { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--on-dark-2); font-weight: 600; transition: color .3s; }
.ftr-fb:hover { color: var(--gold); }
.ftr-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; margin: 6px 0 0; padding-top: 22px; border-top: 1px solid var(--line-dark); color: var(--on-dark-2); font-size: 14px; }
.ftr-legal span { padding: 0 16px; }
.ftr-legal span + span { border-left: 1px solid rgba(238, 243, 241, .28); }
.ftr-legal a { color: var(--on-dark); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.ftr-legal a:hover { color: var(--gold); }

/* ------------------------------------------------------------------ lightbox */
.lb { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(14, 13, 10, .96); color: var(--on-dark); }
.lb::backdrop { background: rgba(14, 13, 10, .7); }
.lb figure { margin: 0; height: 100%; display: grid; place-items: center; padding: 64px 72px 72px; }
.lb img { max-width: 100%; max-height: calc(100svh - 150px); object-fit: contain; }
.lb figcaption { margin-top: 14px; color: var(--on-dark-2); font-size: 15px; text-align: center; }
.lb button { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bark-3); color: var(--on-dark); cursor: pointer; transition: background-color .3s, color .3s; }
.lb button:hover { background: var(--gold); color: var(--ink); }
.lb button svg { width: 22px; height: 22px; fill: currentColor; }
.lb-x { top: 14px; right: 14px; }
.lb-p { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-n { right: 14px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------------ projects page */
.sub .pr-hero { background: var(--bark); color: var(--on-dark); --accent: var(--gold); padding-top: calc(var(--hdr) + clamp(48px, 7vw, 110px)); }
.pr-h1 .lay { --fs: clamp(54px, 10vw, 180px); }
.pr-hero .lead { margin-bottom: 0; }
.pr-list { background: var(--sheet); }
.pg + .pg { margin-top: clamp(56px, 7vw, 110px); }
.pg-h { font: 850 clamp(26px, 2.4vw + 8px, 46px)/1.1 var(--f-display); font-stretch: 120%; margin-bottom: clamp(18px, 2vw, 28px); }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 230px), 1fr)); gap: clamp(8px, 1vw, 14px); }
/* one frame shape in the archive: rows stay even whatever the photo's own aspect (the whole photo opens in the viewer) */
.pg-grid .p-btn { display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 0; overflow: hidden; background: var(--bark-3); cursor: zoom-in; }
.pg-grid .p-btn img { width: 100%; height: 100%; object-fit: cover; }
.pr-cta { background: var(--gold); }
.pr-cta-in { display: flex; justify-content: space-between; align-items: end; gap: 28px; flex-wrap: wrap; }
.pr-cta-in .hc { flex: 1 1 420px; }
.pr-cta .lay em { color: var(--sheet); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .ix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .om-top, .ar-grid { grid-template-columns: minmax(0, 1fr); }
  .proof { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (min-width: 1101px) and (max-width: 1360px) {
  .proof { grid-template-columns: repeat(2, max-content); }
}
@media (max-width: 1100px) {
  .hero { min-height: 0; }
  .hero-scene { min-height: clamp(240px, 74vw, 460px); }
  .hero-bar { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hd" "side" "tabs" "proof"; }
  .hero-bar .proof { align-self: start; }
}
@media (max-width: 900px) {
  .ftr-in { grid-template-columns: 1fr auto; }
  .ftr-in nav { grid-column: 1 / -1; grid-row: 2; }
  .ftr-in nav ul { justify-content: flex-start; }
  .ftr-legal { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
  .ftr-legal span + span { border-left: 0; }
  :root { --hdr: 72px; }
  .hdr.compact { --hdr: 60px; }
  .logo svg { height: 42px; }
  .hdr .logo svg { height: 44px; }
  .hdr.compact .logo svg { height: 38px; }
  .sec-head, .demo-grid, .demo-grid.rev, .win-grid, .kontakt-grid { grid-template-columns: minmax(0, 1fr); }
  .splice { max-height: none; }
  /* the heading and the line about the service come before the scene (Codex judge V33); the steps stay under it */
  .win-grid { row-gap: 0; }
  .win-grid > .demo-tx { display: contents; }
  .win-grid > .sp-col { order: 1; margin-top: clamp(24px, 5vw, 36px); }
  .win-grid .win28, .win-grid .mini-q { order: 2; }
  .roll-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .roll { height: min(68svh, 600px); min-height: 300px; }
  .pinned-roll .roll-pin { align-items: flex-start; }
  .demo-roll .mini-q { display: none; }
  .demo-roll .demo-tx p { display: none; }
}
@media (max-width: 600px) {
  /* «Шапка без каши» (coordinator rule 18.10): only the logo and the menu button; the call (a big gold button) and
     NO|EN live in the menu */
  .lay.in:not(.done) .wi { animation-duration: 560ms; animation-delay: calc(var(--ld, 0ms) + var(--li, 0) * 50ms + var(--wi, 0) * 25ms); }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .win28 { flex-direction: column; align-items: flex-start; }
  .splice { aspect-ratio: 1 / 1; min-height: 0; }
  .w-grid { width: 100%; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
  /* NO|EN, Facebook and Instagram take their own row under the logo (with Instagram they no longer fit beside it) */
  .ftr-side { grid-column: 1 / -1; justify-self: start; justify-content: flex-start; }
  .lb figure { padding: 64px 12px 90px; }
  .lb-p, .lb-n { top: auto; bottom: 18px; transform: none; }
  .lb-p { left: calc(50% - 62px); }
  .lb-n { right: calc(50% - 62px); }
}
@media (max-width: 560px) {
  .proof { display: flex; flex-wrap: wrap; gap: 10px 22px; }
  .proof span { display: none; }
  .proof b { font-size: 15px; }
}

/* gold boards carry the spruce texture (generated with Codex, PRODUCT.md), tinted with the logo gold */




/* 28 windows: dark glass in a frame; a lit one glows warm from inside, with a cool reflection on the glass */
.w-grid i { background: linear-gradient(160deg, #1d2a33, #0d141a 70%); border: 1.5px solid rgba(238, 243, 241, .34); box-shadow: inset 0 0 0 2px #0d141a; }
.w-grid i::before { content: ""; position: absolute; inset: 0; background: linear-gradient(128deg, rgba(238, 243, 241, .14) 0 22%, transparent 23% 100%); }
.w-grid i.on, html:not(.js) .w-grid i { background: radial-gradient(120% 90% at 50% 100%, #ffe2a0 0%, #f0b85a 34%, #b27a2a 68%, #4a3214 100%); border-color: rgba(238, 243, 241, .6); box-shadow: inset 0 0 0 2px #0d141a, 0 0 18px -4px rgba(240, 184, 90, .7); }
.w-grid i.on::after, html:not(.js) .w-grid i::after { background: linear-gradient(128deg, rgba(255, 255, 255, .26) 0 20%, transparent 21% 100%); }

/* contact: the heading arrives first, then the call plate, the links and the form, one after another */
html.js.app-ok .kontakt :is(.k-info, .k-form) { clip-path: inset(-40px -40px -40px -40px); transition: clip-path .9s var(--ease-board), transform .9s var(--ease-board); }
html.js.app-ok .kontakt:not(.hd) :is(.k-info, .k-form) { clip-path: inset(0 0 100% 0); transform: translateY(20px); }
html.js.app-ok .kontakt .k-info { transition-delay: 220ms; }
html.js.app-ok .kontakt .k-form { transition-delay: 300ms; }

/* phone steps list: number, title and text follow the section heading */
html.js.app-ok [data-steps]:not(.pinned):not(.hd) .st > :is(.st-n, .st-h, p) { opacity: 0; transform: translateY(18px); }
[data-steps]:not(.pinned) .st > :is(.st-n, .st-h, p) { transition: opacity .7s var(--ease-out), transform .9s var(--ease-board); }
[data-steps]:not(.pinned) .st > .st-n { transition-delay: 180ms; }
[data-steps]:not(.pinned) .st > .st-h { transition-delay: 240ms; }
[data-steps]:not(.pinned) .st > p { transition-delay: 300ms; }

/* steps text: the old number and title fade out, the new ones rise a little and fade in (no clipping slot, V33j) */
.pinned .st.out { visibility: visible; }

.pinned .st.out p { animation: textOut 260ms var(--ease-out) forwards; }
@keyframes boardOut {
  0% { clip-path: inset(0 -.1em -.3em -.1em); transform: none; opacity: 1; }
  99% { opacity: 1; }
  100% { clip-path: inset(100% -.1em -.3em -.1em); transform: translateY(-100%); opacity: 0; }
}
@keyframes textOut { to { opacity: 0; } }

/* footer: the closing composition starts with the main number */
.ftr-call { grid-column: 1 / -1; justify-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-bottom: 28px; margin-bottom: 4px; border-bottom: 1px solid var(--line-dark); text-decoration: none; color: var(--on-dark); }
.ftr-call-l { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--f-display); font-stretch: 105%; color: var(--on-dark-2); }
.ftr-call-l .ic svg { width: 16px; height: 16px; fill: var(--gold); }
.ftr-call-n { font: 850 clamp(36px, 8vw, 120px)/.95 var(--f-display); font-stretch: 125%; color: var(--on-dark); white-space: nowrap; transition: color .3s; }
.ftr-call:hover .ftr-call-n, .ftr-call:focus-visible .ftr-call-n { color: var(--gold); }

/* steps text lines */
.sw { display: block; }
.pinned .st.enter .st-n .sw { animation: swIn 380ms var(--ease-out) 60ms backwards; }
.pinned .st.enter .st-h .sw { animation: swIn 380ms var(--ease-out) 110ms backwards; }
@keyframes swIn { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: none; } }
@keyframes swOut { 0% { opacity: 1; } 100% { opacity: 0; } }

/* leaving always wins over entering (same specificity as the enter rules, later in the file) */
.pinned .st.out .st-n .sw, .pinned .st.out .st-h .sw { animation: swOut 200ms linear forwards; }

/* contact form on the brand field: fields are lines, choices are hairline pills, no boxes, no card */
.kontakt .chips legend, .kontakt .fld > span { font: 700 13px/1.3 var(--f-display); font-stretch: 105%; color: rgba(14, 22, 27, .74); }
.kontakt .chip span { border: 1px solid rgba(14, 22, 27, .45); border-radius: 999px; padding: 8px 16px; font-size: 15px; }
.kontakt .chip:hover span { border-color: var(--ink); }
.kontakt .chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.kontakt .row2 { gap: 28px; }
.kontakt .fld input, .kontakt .fld textarea { background: transparent; border: 0; border-bottom: 1.5px solid rgba(14, 22, 27, .55); padding: 10px 0; font-size: 18px; transition: border-color .25s, box-shadow .25s; }
.kontakt .fld input:focus, .kontakt .fld textarea:focus { background: transparent; border-bottom-color: var(--ink); box-shadow: 0 1.5px 0 var(--ink); }
.kontakt .fld input::placeholder, .kontakt .fld textarea::placeholder { color: rgba(14, 22, 27, .5); }
.kontakt .fld textarea { min-height: 0; resize: vertical; }
@media (max-width: 900px) {
  .k-grid { grid-template-columns: minmax(0, 1fr); }
  .k-info { order: -1; padding: 0 0 8px; margin-bottom: 28px; border-left: 0; border-bottom: 2px solid var(--ink); }
  .k-list { flex: none; }
  .k-list > div:last-child { padding-bottom: 13px; }
}

/* Header controls share a text baseline; the complete logo is vertically centred. */
.hdr-in { position: relative; align-items: center; flex-wrap: nowrap; }
/* the pill and the menu button get their height from symmetric padding (no fixed height): the text stays centred in
   them and their baseline is that text; icons are lowered optically to the middle of the letters */
.menu-btn .ic-menu { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  /* menu / close: the icon alone, larger, without the square frame (user 18.10) */
  .mb-l { display: none; }
  .menu-btn { width: 44px; height: 44px; padding: 0; border: 0; }
  .menu-btn .ic-menu { left: 50%; width: 28px; height: 28px; transform: translate(-50%, -50%); }
}

/* solid buttons: no transparent border (its strip showed the old colour around the hover fill as a ring) */
.btn-gold, .btn-dark { border: 0; }
/* services index: on wide screens a service never breaks inside itself (the slash stays with it at the line end) */
@media (max-width: 600px) {
  .ix { grid-template-columns: minmax(0, 1fr); }
  /* one long column on the phone: the four trades first, each a jump to its pack */
  .ix-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; margin: -8px 0 32px; }
  .ix-nav a { display: flex; justify-content: space-between; gap: 8px; padding: 12px 12px 12px 14px; background: var(--sheet); color: var(--ink); font: 700 15px/1.2 var(--f-display); font-stretch: 105%; text-decoration: none; }
  .ix-nav span { color: var(--gold-ink); }
}

/* Centre the complete mark inside the shorter header (user, 8 Oct 2026). */
.hdr .logo { margin-right: clamp(20px, 3vw, 48px); }

/* touch: no blue tap flash (user rule 2026-10-05); a press shows the element's own state in place */
html { -webkit-tap-highlight-color: transparent; }
.btn:active::before { transform: scaleX(1); filter: brightness(.92); }
.btn:active { color: var(--on-fill); }
.menu-btn:active { background: rgba(238, 243, 241, .12); }
.ftr nav a:active, .menu a:active { color: var(--gold); }
.lang a:active { background: rgba(238, 243, 241, .16); }
.pj-a:active { color: var(--gold-ink); }
.k-call:active .k-call-n { color: var(--sheet); }
.ftr-call:active .ftr-call-n { color: var(--on-dark); }
.chip:active span { border-color: var(--ink); background: rgba(14, 22, 27, .08); }
.k-list a:active { text-decoration-color: var(--ink); }

/* ------------------------------------------------------------------ V35 (28.10.2026 review: every block its own idea, something to touch) */
/* «Det vi bygger»: three trades as an accordion — the row opens onto a wide photo */
.tjenester .sec-head { margin-bottom: clamp(28px, 4vw, 56px); }
.svc-list { border-top: 3px solid var(--ink); }
.svc { border-bottom: 3px solid var(--ink); }
.svc-h { margin: 0; font: inherit; }
.svc-b { appearance: none; background: none; border: 0; border-radius: 0; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(14px, 3vw, 52px); padding: clamp(18px, 2.6vw, 38px) 0; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.svc-n { font: 800 15px/1 var(--f-display); font-stretch: 125%; letter-spacing: .08em; color: var(--gold-ink); min-width: 2em; }
.svc-t { font: 850 clamp(24px, 5.6vw, 96px)/1.02 var(--f-display); font-stretch: 125%; transition: transform .55s var(--ease-out); }
.svc-b:hover .svc-t, .svc-b:focus-visible .svc-t { transform: translateX(clamp(8px, 1.2vw, 20px)); }
.svc-x { position: relative; width: 30px; height: 30px; flex: none; }
.svc-x::before, .svc-x::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: var(--ink); transition: transform .5s var(--ease-out), background-color .3s; }
.svc-x::after { transform: rotate(90deg); }
.svc.open .svc-x::after { transform: rotate(0); }
.svc-b:hover .svc-x::before, .svc-b:hover .svc-x::after { background: var(--gold-ink); }
.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-out); }
.svc.open .svc-body { grid-template-rows: 1fr; }
html:not(.js) .svc-body { grid-template-rows: 1fr; }
.svc-in { min-height: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: clamp(20px, 3vw, 64px); align-items: start; }
.svc-in p { margin: 0 0 clamp(22px, 2.6vw, 40px); max-width: 22em; color: var(--ink-2); font-size: clamp(17px, 1vw + 10px, 21px); }
.svc-ph { aspect-ratio: 16 / 8; overflow: hidden; background: var(--bark-3); margin: 0 0 clamp(22px, 2.6vw, 40px); }
.svc-ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); transition: transform 1.2s var(--ease-out); }
.svc.open .svc-ph img { transform: none; }

/* «Terrasse og platting»: a live plan of boards over joists at centres */
.demo-deck { color: var(--ink); }
.dk-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 80px); align-items: end; margin-bottom: clamp(28px, 4vw, 56px); }
.dk-head p { margin: 0; max-width: 28em; color: var(--ink-2); }
.dk-grid { display: grid; grid-template-columns: minmax(0, .34fr) minmax(0, .66fr); gap: clamp(14px, 1.6vw, 24px); align-items: stretch; margin-bottom: clamp(24px, 3vw, 44px); }
.dk-ph { min-height: 320px; }
.dk-ph > img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.dk-tool { display: grid; gap: clamp(16px, 1.8vw, 26px); align-content: start; padding: clamp(18px, 2.4vw, 36px); background: var(--bark); color: var(--on-dark); }
.dk-q { margin: 0; max-width: 30em; font: 700 clamp(18px, .9vw + 12px, 24px)/1.3 var(--f-display); font-stretch: 105%; }
.dk-plan { display: block; width: 100%; height: auto; }
.dk-wall { fill: #31424d; }
.dk-wl { font: 700 13px var(--f-display); font-stretch: 110%; letter-spacing: .06em; fill: var(--on-dark-2); }
.dk-b1 { fill: #7b6540; }
.dk-b2 { fill: #96794a; }
.dk-j { fill: none; stroke: var(--gold-hi); stroke-width: 3; }
.dk-dim line { stroke: var(--on-dark-2); stroke-width: 1.3; }
.dk-dim text { font: 600 15px var(--f-text); fill: var(--on-dark); }
.dk-ctl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px clamp(20px, 3vw, 44px); align-items: end; }
.dk-f { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: baseline; }
.dk-fl { font: 700 14px/1.2 var(--f-display); font-stretch: 110%; letter-spacing: .04em; color: var(--on-dark-2); }
.dk-f output { font: 800 22px/1 var(--f-display); font-stretch: 112%; color: var(--on-dark); }
.dk-f input { grid-column: 1 / -1; }
.dk-f input[type="range"] { touch-action: pan-y; -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin: 0; background: transparent; cursor: pointer; }
.dk-f input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: rgba(238, 243, 241, .3); }
.dk-f input[type="range"]::-moz-range-track { height: 4px; background: rgba(238, 243, 241, .3); }
.dk-f input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 34px; margin-top: -15px; border: 0; border-radius: 0; background: var(--gold); }
.dk-f input[type="range"]::-moz-range-thumb { width: 16px; height: 34px; border: 0; border-radius: 0; background: var(--gold); }
.dk-f input[type="range"]:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.dk-cc { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dk-cc .dk-fl { margin-right: 6px; }
.dk-cc label { position: relative; display: block; }
.dk-cc input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.dk-cc label span { display: block; padding: 11px 18px; border: 1.5px solid rgba(238, 243, 241, .4); font: 700 16px/1 var(--f-display); font-stretch: 105%; transition: background-color .25s, border-color .25s, color .25s; }
.dk-cc input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.dk-cc input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.dk-res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px clamp(14px, 2vw, 32px); margin: 0; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.dk-res div { display: grid; gap: 6px; align-content: start; }
.dk-res dt { margin: 0; font: 600 14px/1.25 var(--f-text); color: var(--on-dark-2); }
.dk-res dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.dk-res b { font: 850 clamp(32px, 3.2vw, 54px)/1 var(--f-display); font-stretch: 125%; color: var(--gold); }
.dk-res span { font-size: 15px; color: var(--on-dark-2); }
.dk-res i { font-style: normal; }
.dk-go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.dk-go p { margin: 0; max-width: 26em; font-size: 14px; color: var(--on-dark-2); }

/* «Hva kundene sier»: a rail of reviews that drifts and can be thrown */
.om-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(20px, 4vw, 80px); align-items: end; margin-bottom: clamp(28px, 4vw, 56px); }
.om-dist { display: grid; gap: 24px; justify-items: start; }
.om-dist .bars { margin-bottom: 0; }
.om-rail { overflow: hidden; touch-action: pan-y; cursor: grab; outline-offset: -4px; user-select: none; -webkit-user-select: none; }
.om-rail.is-drag { cursor: grabbing; }
.rl-track { display: flex; gap: clamp(14px, 1.6vw, 24px); width: max-content; padding-left: var(--gut); will-change: transform; }
.q { flex: none; width: clamp(290px, 31vw, 460px); margin: 0; padding: clamp(22px, 2.4vw, 34px); background: var(--bark-3); display: flex; flex-direction: column; gap: 16px; }

/* the windows of «28 vinduer»: flat plan symbols, a gold pane when counted (the gradients looked like plastic) */
.w-grid i { background: transparent; border: 1.5px solid rgba(238, 243, 241, .38); box-shadow: none; }
.w-grid i::before { background: linear-gradient(rgba(238, 243, 241, .38), rgba(238, 243, 241, .38)) center / 1.5px 100% no-repeat, linear-gradient(rgba(238, 243, 241, .38), rgba(238, 243, 241, .38)) center 38% / 100% 1.5px no-repeat; }
.w-grid i.on, html:not(.js) .w-grid i { background: var(--gold); border-color: var(--gold); box-shadow: none; }
.w-grid i.on::before, html:not(.js) .w-grid i::before { background: linear-gradient(var(--bark), var(--bark)) center / 1.5px 100% no-repeat, linear-gradient(var(--bark), var(--bark)) center 38% / 100% 1.5px no-repeat; }
.w-grid i.on::after, html:not(.js) .w-grid i::after { display: none; }

/* the packs on a phone: five trades show, the rest open on request */
.ix-more { display: none; }
@media (max-width: 900px) {
  .svc-in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .svc-in p { margin-bottom: 20px; }
  .svc-ph { aspect-ratio: 4 / 3; }
  .dk-head, .om-top { grid-template-columns: minmax(0, 1fr); }
  .dk-grid { grid-template-columns: minmax(0, 1fr); }
  .dk-ph { min-height: 0; aspect-ratio: 16 / 10; }
  .q { width: 78vw; }
}
@media (max-width: 600px) {
  .svc-x { width: 22px; height: 22px; }
  .dk-ctl { grid-template-columns: minmax(0, 1fr); }
  .dk-cc .dk-fl { flex: 0 0 100%; margin: 0; }
  .dk-dim text { font-size: 30px; }
  .dk-wl { font-size: 24px; }
  .dk-res { grid-template-columns: minmax(0, 1fr); }
  .dk-res div { grid-template-columns: 1fr auto; align-items: baseline; }
  .ix-pk:not(.all) .ix-b:nth-child(n+7) { display: none; }
  .ix-more { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; margin: 8px 0 0; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: 700 15px/1 var(--f-display); font-stretch: 105%; cursor: pointer; }
  .ix-more::after { content: ""; width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease-out); }
  .ix-pk.all .ix-more::after { transform: rotate(-135deg) translateY(-2px); }
}
.kontakt ::placeholder { color: rgba(14, 22, 27, .62); opacity: 1; }
@media (max-width: 420px) { .ht { gap: 6px; font-size: 15px; } .ht-n { font-size: 11px; } }
