/* =========================================================
   EDS Byggutvikling — redesign
   Design system: charcoal + warm paper + logo amber.
   Display: Barlow Condensed (echoes the condensed logotype)
   Body: Figtree
   ========================================================= */

/* Self-hosted fonts (copied from src/fonts.css; the files are in assets/fonts). Nothing is loaded from Google. */
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/barlow-condensed-500.woff2) format("woff2")}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/barlow-condensed-600.woff2) format("woff2")}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/barlow-condensed-700.woff2) format("woff2")}
@font-face{font-family:"Figtree";font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/figtree-var.woff2) format("woff2")}

/* Stand-ins for the heading font while it loads, so the headings do not jump when Barlow Condensed arrives: the bold Arial Narrow,
   Arial or Roboto that is installed, scaled to the width of Barlow Condensed in capitals and given its line metrics (ascent 100 %,
   descent 20 % of the font size, divided by the scale). The same three are used for headings in capitals on the service pages. */
@font-face {
  font-family: "BC Narrow Caps";
  src: local("Arial Narrow Bold"), local("ArialNarrow-Bold");
  font-weight: 700;
  size-adjust: 82%;
  ascent-override: 122%;
  descent-override: 24.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "BC Arial Caps";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold");
  font-weight: 700;
  size-adjust: 67.5%;
  ascent-override: 148.1%;
  descent-override: 29.6%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "BC Roboto Caps";
  src: local("Roboto Bold"), local("Roboto-Bold");
  font-weight: 700;
  size-adjust: 71.5%;
  ascent-override: 139.9%;
  descent-override: 28%;
  line-gap-override: 0%;
}
/* The same for the body text: Arial set to Figtree's width and line metrics (measured against the font files) */
@font-face {
  font-family: "Figtree Fallback";
  src: local("Arial");
  size-adjust: 100.6%;
  ascent-override: 94.4%;
  descent-override: 24.9%;
  line-gap-override: 0%;
}

:root {
  --ink: #141518;
  --ink-2: #1c1e22;
  --ink-3: #26292e;
  --paper: #f5f2ec;
  --paper-2: #ece7dd;
  --paper-3: #e0d8c9;
  --white: #ffffff;

  --amber: #efae3c;
  --amber-2: #f6c465;
  --amber-deep: #b07a18;
  --amber-ink: #85560a;

  --text: #1a1b1e;
  --muted: #5b5e64;
  --muted-on-dark: #a7aab0;
  --field-border: #7d8086;
  --line: rgba(20, 21, 24, 0.12);
  --line-strong: rgba(20, 21, 24, 0.22);
  --line-dark: rgba(255, 255, 255, 0.12);
  --danger: #b3261e;

  --display: "Barlow Condensed", "BC Narrow Caps", "BC Arial Caps", "BC Roboto Caps", sans-serif;
  --body: "Figtree", "Figtree Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1260px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 150px);
  --header-h: 84px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 1px 2px rgba(20, 21, 24, 0.04), 0 12px 32px -12px rgba(20, 21, 24, 0.18);
  --shadow-lift: 0 2px 4px rgba(20, 21, 24, 0.06), 0 28px 60px -20px rgba(20, 21, 24, 0.35);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--amber); color: var(--ink); }

/* Focus: ink ring on light/amber surfaces, amber ring on dark surfaces */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.skip-link:focus-visible,
.mobile-menu :focus-visible,
.hero :focus-visible,
.section--dark :focus-visible,
.bento__card--dark :focus-visible,
.refs :focus-visible,
.site-footer :focus-visible,
.callbar :focus-visible { outline-color: var(--amber); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--amber);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.section { padding-block: var(--section); position: relative; }
.section--dark { background: var(--ink); color: var(--white); }
.section--paper-2 { background: var(--paper-2); }
.section--white { background: var(--white); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__num {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 7px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.eyebrow__rule { width: 28px; height: 1px; background: currentColor; opacity: 0.5; }
.section--dark .eyebrow { color: var(--muted-on-dark); }

.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.005em;
}
.h2 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 5.4vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.005em;
  margin-top: 22px;
  text-wrap: balance;
}
.h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 2.4vw, 2.05rem);
  line-height: 1;
  letter-spacing: 0.005em;
}
.lede {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 58ch;
  text-wrap: pretty;
}
.section--dark .lede { color: var(--muted-on-dark); }

/* marker highlight (light backgrounds) */
.hl {
  background-image: linear-gradient(transparent 58%, rgba(239, 174, 60, 0.6) 58%, rgba(239, 174, 60, 0.6) 92%, transparent 92%);
  padding-inline: 0.04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.amber { color: var(--amber); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.section-head .lede { justify-self: end; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { transform: translateY(-1px); }
.btn--amber { --btn-bg: var(--amber); --btn-fg: var(--ink); }
.btn--amber:hover { --btn-bg: var(--amber-2); box-shadow: 0 14px 30px -12px rgba(239, 174, 60, 0.7); }
.btn--dark:hover { --btn-bg: var(--ink-3); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--white); border-color: rgba(255, 255, 255, 0.35); }
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.7); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--white); border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }

.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: gap 0.3s var(--ease), color 0.2s ease;
}
.link-arrow svg { width: 16px; height: 16px; flex: none; }
.link-arrow:hover { gap: 14px; color: var(--amber-ink); }
.section--dark .link-arrow:hover { color: var(--amber); }

/* The navbar (header and mobile menu) has its own stylesheet, the same for every page: src/shared/header.css */

/* ---------- Hero (calm: video with a light, even tint) ---------- */
.hero {
  position: relative;
  min-height: clamp(580px, calc(100svh - var(--header-h)), 880px);
  color: var(--white);
  background: var(--ink-3);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img,
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__media video.is-playing { opacity: 1; }
/* Light, even tint + one soft pool of shade behind the copy (no hard bands) */
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 72% 80% at 16% 82%, rgba(14, 15, 17, 0.56) 0%, rgba(14, 15, 17, 0) 70%),
    rgba(14, 15, 17, 0.24);
}
.hero__body { width: 100%; padding-top: 96px; padding-bottom: clamp(56px, 8vh, 96px); }
.hero__content { max-width: 680px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  background: rgba(14, 15, 17, 0.45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--body); font-size: 12.5px; font-weight: 600; line-height: 1.4; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--white); text-shadow: none;
  margin-bottom: 26px;
}
.hero__tag-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.hero__title { font-size: clamp(3.4rem, 7.4vw, 7rem); line-height: 0.92; }
.hero__title .line { display: block; }
.hero__title .line--amber { color: var(--amber); }
.hero__slogan {
  margin-top: 22px;
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: rgba(255, 255, 255, 0.92);
}
.hero__lede { margin-top: 14px; font-size: 1.12rem; line-height: 1.65; color: rgba(255, 255, 255, 0.95); max-width: 42ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; text-shadow: none; }
.hero__ctas .btn--ghost-light { background: rgba(14, 15, 17, 0.3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-color: rgba(255, 255, 255, 0.55); }

.hero__pause {
  position: absolute; right: max(var(--gutter), env(safe-area-inset-right)); bottom: 24px;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(14, 15, 17, 0.5); color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hero__pause[hidden] { display: none; }
.hero__pause:hover { background: rgba(14, 15, 17, 0.75); border-color: var(--amber); }
.hero__pause svg { width: 16px; height: 16px; }
.hero__pause .icon-play { display: none; }
.hero__pause[aria-pressed="true"] .icon-play { display: block; }
.hero__pause[aria-pressed="true"] .icon-pause { display: none; }

.stars { display: inline-flex; gap: 2px; color: var(--amber); }
.stars svg { width: 14px; height: 14px; }

/* ---------- Proof bar ---------- */
.proof { background: var(--paper); border-bottom: 1px solid var(--line); }
.proof__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.proof__item { display: flex; gap: 16px; align-items: flex-start; padding: 34px 28px 34px 0; }
.proof__item + .proof__item { padding-left: 28px; border-left: 1px solid var(--line); }
.proof__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); color: var(--amber-deep); }
.proof__icon svg { width: 22px; height: 22px; }
.proof__item strong { display: block; font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.proof__item span { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.5; margin-top: 3px; }

/* ---------- Services ---------- */
.service-list { border-bottom: 1px solid var(--line-strong); }
.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 0.9fr) minmax(0, 1.2fr) 132px 56px;
  gap: 32px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--line-strong);
}
.service-row::before {
  content: "";
  position: absolute; left: 0; top: -1px; height: 2px; width: 100%;
  background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.service-row__num {
  font-family: var(--display); font-weight: 700; font-size: 3rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--amber-deep);
  transition: color 0.35s ease;
}
.service-row__title { transition: transform 0.45s var(--ease); }
.service-row__title .h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.service-row__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.service-row__desc { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 52ch; }
.service-row__img { width: 132px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--paper-3); }
.service-row__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.service-row__go {
  justify-self: end;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.service-row__go svg { width: 20px; height: 20px; transform: rotate(-45deg); transition: transform 0.45s var(--ease); }
.service-row:hover .service-row__num,
.service-row:focus-within .service-row__num { color: var(--amber-deep); }
.service-row:hover::before,
.service-row:focus-within::before { transform: scaleX(1); }
.service-row:hover .service-row__title { transform: translateX(8px); }
.service-row:hover .service-row__img img { transform: scale(1.06); }
.service-row:hover .service-row__go,
.service-row:focus-within .service-row__go { background: var(--ink); border-color: var(--ink); color: var(--amber); }
.service-row:hover .service-row__go svg,
.service-row:focus-within .service-row__go svg { transform: rotate(0deg); }
.service-row__link { position: absolute; inset: 0; z-index: 1; border-radius: 6px; }
.service-row__link:focus-visible { outline-offset: -3px; }

.services-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 30px; }
.services-extra__label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__media { position: relative; padding: 0 12% 14% 0; }
.about__img-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-3); }
.about__img-main img { width: 100%; height: 100%; object-fit: cover; }
.about__img-sub {
  position: absolute; right: 0; bottom: 0; width: 52%;
  aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden;
  border: 8px solid var(--ink); background: var(--ink-3);
}
.about__img-sub img { width: 100%; height: 100%; object-fit: cover; }
.about__copy .lede { margin-top: 26px; }
.about__copy .lede + .lede { margin-top: 16px; }
.about__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.about__point { padding: 22px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark); }
.about__point svg { width: 26px; height: 26px; color: var(--amber); margin-bottom: 14px; }
.about__point strong { display: block; font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.about__point span { display: block; font-size: 14.5px; line-height: 1.55; color: var(--muted-on-dark); }

/* ---------- Why (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(150px, auto);
  gap: 18px;
}
.bento__card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.6vw, 36px);
  overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
}
.bento__card--dark { background: var(--ink); color: var(--white); border-color: transparent; }
.bento__card--amber { background: var(--amber); color: var(--ink); border-color: transparent; }
.bento__card--img { padding: 0; border: 0; min-height: 280px; background: var(--ink-3); }
.bento__card--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bento__card--img:hover img { transform: scale(1.04); }
.bento__card--img figcaption {
  position: absolute; left: 16px; bottom: 16px;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(20, 21, 24, 0.72); color: var(--white);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 600;
}
.bento__a { grid-column: span 5; grid-row: span 2; }
.bento__b { grid-column: span 4; grid-row: span 2; }
.bento__c { grid-column: span 3; grid-row: span 2; }
.bento__d { grid-column: span 3; grid-row: span 2; }
.bento__e { grid-column: span 4; grid-row: span 2; }
.bento__f { grid-column: span 5; grid-row: span 2; }
.bento__kicker { font-family: var(--body); font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.75; }
.bento__big { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.3rem, 3.6vw, 3.3rem); line-height: 1; margin-top: 14px; }
.bento__text { margin-top: auto; padding-top: 22px; font-size: 15.5px; line-height: 1.6; }
.bento__card--dark .bento__text { color: var(--muted-on-dark); }
.bento__card--amber .bento__text { color: rgba(20, 21, 24, 0.8); }
.bento__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(20, 21, 24, 0.08); margin-bottom: 18px; }
.bento__card--dark .bento__icon { background: rgba(255, 255, 255, 0.08); color: var(--amber); }
.bento__icon svg { width: 22px; height: 22px; }
.bento__quote { font-size: 16px; line-height: 1.55; font-weight: 500; margin-top: 16px; }
.bento__quote cite { display: block; margin-top: 6px; font-size: 13.5px; font-style: normal; font-weight: 500; color: var(--muted); }
.bento__rating { display: flex; align-items: flex-end; gap: 12px; margin-top: 16px; }
.bento__rating strong { font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 6vw, 5.4rem); line-height: 0.8; }
.bento__rating span { font-size: 14.5px; line-height: 1.35; color: var(--muted); padding-bottom: 4px; }
.bento__card .link-arrow { margin-top: 22px; align-self: flex-start; font-size: 15px; }
.bento__card--dark .link-arrow { color: var(--amber); }
.bento__card--amber .btn { margin-top: 22px; align-self: flex-start; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.step { position: relative; padding: 36px 32px 8px 0; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.step__num { font-family: var(--display); font-weight: 700; font-size: clamp(3.2rem, 4.6vw, 4.4rem); line-height: 0.85; color: var(--amber-deep); }
.step__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--ink); flex: none; }
.step__icon svg { width: 20px; height: 20px; }
.step h3 { font-size: 1.25rem; font-weight: 700; margin-top: 30px; line-height: 1.25; }
.step p { margin-top: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--amber);
  transition: width 1s var(--ease);
}
.step + .step::before { left: -1px; }
.process.is-in .step::before { width: 100%; }
.process.is-in .step:nth-child(2)::before { transition-delay: 0.15s; }
.process.is-in .step:nth-child(3)::before { transition-delay: 0.3s; }
.process.is-in .step:nth-child(4)::before { transition-delay: 0.45s; }

/* ---------- Case study (før / etter) ---------- */
.case__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.case__media { position: relative; padding: 0 0 12% 10%; }
.case__after { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-3); }
.case__before { position: absolute; left: 0; bottom: 0; width: 40%; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 8px solid var(--ink); background: var(--ink-3); }
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__label { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(20, 21, 24, 0.78); color: var(--white); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.case__label--after { background: var(--amber); color: var(--ink); }
.case__list { display: grid; gap: 12px; margin-top: 30px; }
.case__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, 0.88); }
.case__list svg { flex: none; width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: rgba(239, 174, 60, 0.16); color: var(--amber); }
.case__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-3);
  aspect-ratio: 4 / 3.3;
  color: var(--white);
  isolation: isolate;
}
.project--wide { grid-column: span 2; aspect-ratio: auto; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); }
.project::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(20, 21, 24, 0.92) 0%, rgba(20, 21, 24, 0.55) 34%, rgba(20, 21, 24, 0) 62%);
}
.project:hover img { transform: scale(1.05); }
.project:focus-visible { outline-offset: 4px; }
.project__chips { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 12px; border-radius: 999px; background: rgba(20, 21, 24, 0.66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.16); font-size: 12.5px; font-weight: 600; }
.project__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.project__place { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.project__place svg { width: 14px; height: 14px; }
.project__title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1; margin-top: 8px; }
.project--wide .project__title { font-size: clamp(1.8rem, 2.8vw, 2.6rem); }
.project__meta { margin-top: 9px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.85); max-width: 38ch; }
.project__go {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--white); color: var(--ink);
  transform: scale(0.8) rotate(-45deg); opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.3s ease;
}
.project__go svg { width: 18px; height: 18px; }
.project:hover .project__go, .project:focus-visible .project__go { transform: none; opacity: 1; }
.projects-foot { display: flex; justify-content: center; margin-top: 48px; }

/* ---------- References (sameier) ---------- */
.refs { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); margin-top: 20px; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); color: var(--white); }
.refs__media { position: relative; min-height: 380px; background: var(--ink-3); }
.refs__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.refs__media figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; width: fit-content; padding: 7px 13px; border-radius: 999px; background: rgba(20, 21, 24, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; }
.refs__body { padding: clamp(28px, 4vw, 52px); }
.refs__body .h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.refs__body > p { margin-top: 10px; color: var(--muted-on-dark); font-size: 15.5px; max-width: 52ch; }
.refs__list { margin-top: 26px; border-top: 1px solid var(--line-dark); }
.refs__row { position: relative; display: grid; grid-template-columns: 124px minmax(0, 1fr) 44px; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.refs__num { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 2.5rem; line-height: 0.9; color: var(--amber); }
.refs__num small { display: block; margin-top: 5px; font-family: var(--body); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted-on-dark); }
.refs__row strong { display: block; font-size: 17px; line-height: 1.3; }
.refs__what { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.5; color: var(--muted-on-dark); }
.refs__go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.refs__go svg { width: 16px; height: 16px; }
.refs__row a::after { content: ""; position: absolute; inset: 0; }
.refs__row:hover .refs__go,
.refs__row:focus-within .refs__go { background: var(--amber); color: var(--ink); border-color: var(--amber); }

/* ---------- Video ---------- */
.video-card {
  position: relative;
  margin-top: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: var(--ink-3);
}
.video-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: opacity 0.4s ease, transform 1.1s var(--ease); }
.video-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at 50% 50%, rgba(20, 21, 24, 0.6), rgba(20, 21, 24, 0.12) 65%); pointer-events: none; }
.video-card.is-playing::after { display: none; }
.video-card:hover img { opacity: 0.9; transform: scale(1.03); }
.video-card__btn { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 20px; color: var(--white); width: 100%; }
.video-card__btn:focus-visible { outline: 3px solid var(--amber); outline-offset: -8px; border-radius: var(--radius-lg); }
.video-card__play { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--amber); color: var(--ink); box-shadow: 0 0 0 12px rgba(239, 174, 60, 0.2); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.video-card__play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-card:hover .video-card__play,
.video-card__btn:focus-visible .video-card__play { transform: scale(1.06); box-shadow: 0 0 0 18px rgba(239, 174, 60, 0.18); }
.video-card__label { text-align: left; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5); }
.video-card__label strong { display: block; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1; }
.video-card__label span { font-size: 14.5px; color: rgba(255, 255, 255, 0.85); }
.video-card iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; }
.video-card.is-playing { aspect-ratio: 16 / 9; }

/* ---------- Testimonials ---------- */
.reviews__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; }
.review {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 40px);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  display: flex; flex-direction: column;
}
.review--feature { grid-row: span 2; background: linear-gradient(160deg, var(--ink-3) 0%, var(--ink-2) 60%); }
.review__mark { font-family: Georgia, "Times New Roman", serif; font-size: 7rem; line-height: 0.6; color: var(--amber); height: 48px; }
.review__title { font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.review blockquote p { font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, 0.88); }
.review--feature blockquote p { font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.45; font-weight: 500; color: var(--white); letter-spacing: -0.01em; text-wrap: pretty; }
.review__foot { margin-top: auto; padding-top: 28px; display: flex; align-items: center; gap: 14px; }
.review__avatar { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--amber); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.review__who strong { display: block; font-size: 16px; }
.review__who span { font-size: 13.5px; color: var(--muted-on-dark); }
.review__foot .stars { margin-left: auto; }
.reviews__note { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 28px; color: var(--muted-on-dark); font-size: 14.5px; }
.reviews__note span { max-width: 70ch; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__list { display: grid; margin-top: 40px; border-top: 1px solid var(--line); }
.contact__row { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact__row-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); color: var(--amber-ink); transition: background 0.25s ease, color 0.25s ease; }
.contact__row-icon svg { width: 21px; height: 21px; }
.contact__row small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact__row strong { display: block; font-size: 1.2rem; font-weight: 700; }
a.contact__row:hover .contact__row-icon { background: var(--ink); color: var(--amber); }
.contact__person { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.contact__avatar { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--amber); }
.contact__person strong { display: block; font-size: 16.5px; }
.contact__person div span { font-size: 14px; color: var(--muted); }

.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 44px); box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.form-card h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 2rem; line-height: 1; }
.form-card > p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }
.form-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.form-note .req { color: var(--amber-ink); }
.segmented { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper-2); margin-top: 26px; }
.segmented input,
.radios input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.segmented label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease; color: var(--muted); }
.segmented label svg { width: 16px; height: 16px; }
.segmented input:checked + label { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 21, 24, 0.08), 0 4px 12px -4px rgba(20, 21, 24, 0.2); }
.segmented input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.field { display: grid; gap: 7px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, fieldset.field legend { font-size: 14px; font-weight: 600; }
.field .req { color: var(--amber-ink); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--field-border);
  background: var(--paper);
  font-size: 16px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231a1b1e' stroke-width='2.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 16px center; padding-right: 44px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 4px rgba(239, 174, 60, 0.45); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); background: #fff7f6; }
.field__err { font-size: 13px; color: var(--danger); font-weight: 500; display: none; }
.field.is-invalid .field__err,
.consent.is-invalid + .field__err { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 7px; }
.radios { display: flex; gap: 8px; }
.radios label { flex: 1; position: relative; display: flex; cursor: pointer; }
.radios span { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px; border: 1px solid var(--field-border); background: var(--paper); font-weight: 600; font-size: 15px; transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.radios input:checked + span { background: var(--white); border-color: var(--ink); box-shadow: 0 0 0 3px rgba(239, 174, 60, 0.45); }
.radios input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.field--callback, .field--befaring { display: none; }
.form-card[data-mode="ring"] .field--callback,
.form-card[data-mode="befaring"] .field--befaring { display: grid; }
.form-card:not([data-mode="melding"]) .field--message-optional .req,
.form-card[data-mode="ring"] label[for="f-email"] .req { display: none; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.consent.is-invalid { color: var(--danger); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-actions small { color: var(--muted); font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px; }
.form-actions small svg { width: 16px; height: 16px; color: var(--amber-ink); flex: none; }

/* Postnummer is only required when a befaring is ordered */
.form-card:not([data-mode="befaring"]) label[for="f-postcode"] .req { display: none; }
/* Spam trap: a field people never see. Off-screen, not display:none, so robots still fill it in. */
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hp-field input { position: absolute; left: -9999px; }
/* While the form is being sent */
.form-actions .btn[disabled] { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
/* Shown when the form could not be sent (EDS.lead.errorNode()) */
.lead-error { grid-column: 1 / -1; padding: 14px 16px; border-radius: 8px; border: 1px solid var(--danger); background: #fff7f6; color: var(--danger); font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.lead-error a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Without JavaScript the form cannot be sent: only the sentence with the phone number is shown */
.form-nojs { margin-top: 18px; font-weight: 600; }
.form-nojs a { text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
@media (scripting: none) { .form-card form { display: none; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; z-index: 2; margin-bottom: -120px; }
.cta-band__card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--amber);
  color: var(--ink);
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-lift);
}
.cta-band__card::before {
  content: ""; position: absolute; right: -200px; top: -60px; width: 420px; height: 420px;
  border: 60px solid rgba(20, 21, 24, 0.05); transform: rotate(45deg); border-radius: 40px;
}
.cta-band__card h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.4rem, 4.8vw, 4.2rem); line-height: 0.95; }
.cta-band__card p { margin-top: 14px; font-size: 1.08rem; max-width: 50ch; color: rgba(20, 21, 24, 0.8); }
.cta-band__actions { position: relative; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-band__phone { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; letter-spacing: 0.02em; }
.cta-band__phone svg { width: 28px; height: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-dark); padding-top: calc(120px + clamp(64px, 8vw, 100px)); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 56px; }
.footer__logo { display: inline-flex; padding: 12px 16px; border-radius: 14px; background: var(--white); }
.footer__logo img { height: 52px; width: auto; }
.footer__brand p { margin-top: 22px; max-width: 34ch; line-height: 1.65; }
.footer__social { display: flex; gap: 8px; margin-top: 24px; }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); color: var(--white); transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.footer__social a:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.footer__social svg { width: 18px; height: 18px; }
.footer__h { font-family: var(--body); font-size: 12.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer__col ul { display: grid; gap: 11px; }
.footer__col a { transition: color 0.2s ease; }
.footer__col a:hover { color: var(--amber); }
.footer__col .strong { color: var(--white); font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 12px; padding: 9px 16px 9px 9px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark); color: var(--white); transition: border-color 0.2s ease, background 0.2s ease; }
a.badge:hover { border-color: rgba(239, 174, 60, 0.55); background: rgba(255, 255, 255, 0.08); }
.badge__icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--amber); color: var(--ink); }
.badge__icon svg { width: 19px; height: 19px; }
.badge strong { display: block; font-size: 14.5px; line-height: 1.25; }
.badge small { display: block; font-size: 12.5px; line-height: 1.3; color: var(--muted-on-dark); }
.footer__badges { margin-top: 26px; }
.footer__partners { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 32px; padding-block: 24px; border-top: 1px solid var(--line-dark); }
.footer__partners > span { font-size: 12.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.footer__partners ul { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer__partners li { display: flex; align-items: center; height: 48px; padding: 8px 14px; border-radius: 10px; background: var(--white); }
.footer__partners img { height: 28px; width: auto; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid var(--line-dark); font-size: 13.5px; }
.footer__bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--white); }
.footer__wordmark {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(3rem, 12.2vw, 15.5rem); line-height: 0.78; letter-spacing: -0.005em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  white-space: nowrap; overflow: hidden; user-select: none; margin-bottom: -0.08em; text-align: center;
}

/* ---------- Mobile call bar ---------- */
.callbar {
  position: fixed; z-index: 40;
  left: max(calc(12px + env(safe-area-inset-left)), calc(50% - 240px));
  right: max(calc(12px + env(safe-area-inset-right)), calc(50% - 240px));
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: none; grid-template-columns: 1fr 1.3fr; gap: 8px;
  padding: 8px; border-radius: 999px;
  background: rgba(20, 21, 24, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(160%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0s linear 0.5s;
}
.callbar.is-visible { transform: none; visibility: visible; transition: transform 0.5s var(--ease), visibility 0s; }
.callbar .btn { min-height: 48px; padding: 0 14px; font-size: 15px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.hero .anim { opacity: 0; transform: translateY(24px); animation: rise 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .service-row { grid-template-columns: 64px minmax(0, 0.9fr) minmax(0, 1.2fr) 112px 48px; gap: 24px; }
  .service-row__img { width: 112px; }
  .service-row__go { width: 48px; height: 48px; }
  .bento__a { grid-column: span 7; }
  .bento__b { grid-column: span 5; }
  .bento__c { grid-column: span 4; }
  .bento__d { grid-column: span 4; }
  .bento__e { grid-column: span 4; }
  .bento__f { grid-column: span 12; min-height: 340px; }
}


@media (max-width: 1024px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head .lede { justify-self: start; }
  .proof__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof__item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .proof__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .service-row { grid-template-columns: 56px minmax(0, 1fr) 112px 48px; gap: 12px 20px; }
  .service-row__num { grid-row: 1 / span 2; font-size: 2.4rem; }
  .service-row__title { grid-column: 2; grid-row: 1; }
  .service-row__desc { grid-column: 2; grid-row: 2; }
  .service-row__img { grid-column: 3; grid-row: 1 / span 2; width: 112px; }
  .service-row__go { grid-column: 4; grid-row: 1 / span 2; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 640px; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 8px; }
  .case__grid { grid-template-columns: 1fr; }
  .case__media { max-width: 720px; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project--wide { aspect-ratio: 16 / 8; }
  .refs { grid-template-columns: 1fr; }
  .refs__media { min-height: 260px; }
  .reviews__grid { grid-template-columns: 1fr; }
  .review--feature { grid-row: auto; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .cta-band__card { grid-template-columns: 1fr; }
}

@media (min-width: 1025px) {
  .contact__grid > div:first-child { position: sticky; top: calc(var(--header-h) + 32px); }
}

@media (max-width: 900px) {
  html { scroll-padding-bottom: 96px; }
  .callbar { display: grid; }
  .site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { min-height: calc(100svh - var(--header-h)); }
  .hero__title { font-size: clamp(3.2rem, 16vw, 5rem); }
  .hero__tag .hide-sm { display: none; }
  .hero__shade { background: linear-gradient(0deg, rgba(14, 15, 17, 0.62) 0%, rgba(14, 15, 17, 0.28) 55%, rgba(14, 15, 17, 0.2) 100%); }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .proof__grid { grid-template-columns: 1fr; }
  .proof__item, .proof__item + .proof__item { padding: 22px 0; border-left: 0; }
  .proof__item + .proof__item { border-top: 1px solid var(--line); }
  .service-row { grid-template-columns: 1fr 44px; padding: 28px 0; gap: 12px 16px; }
  .service-row__num { grid-column: 1; grid-row: 1; font-size: 1.1rem; color: var(--amber-ink); -webkit-text-stroke: 0; }
  .service-row__title { grid-column: 1 / -1; grid-row: 2; }
  .service-row__desc { grid-column: 1 / -1; grid-row: 3; }
  .service-row__img { grid-column: 1 / -1; grid-row: 4; width: 100%; aspect-ratio: 21 / 9; margin-top: 4px; }
  .service-row__go { grid-column: 2; grid-row: 1; width: 44px; height: 44px; }
  .service-row:hover .service-row__title { transform: none; }
  .about__media { padding: 0 8% 16% 0; }
  .about__points { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento__a, .bento__b, .bento__c, .bento__d, .bento__e, .bento__f { grid-column: auto; grid-row: auto; }
  .bento__card--img { min-height: 260px; }
  .bento__e { display: none; }
  .process { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0 20px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); margin-top: 0; }
  .step + .step::before { left: 0; }
  .case__media { padding: 0 0 26% 10%; }
  .case__before { width: 52%; border-width: 6px; }
  .case__cta .btn { flex: 1 1 100%; }
  .projects { grid-template-columns: 1fr; }
  .project--wide { grid-column: auto; aspect-ratio: 4 / 3.3; }
  .project__go { opacity: 1; transform: none; }
  .refs__row { grid-template-columns: minmax(0, 1fr) 40px; gap: 8px 14px; }
  .refs__go { grid-column: 2; grid-row: 1; width: 40px; height: 40px; }
  .video-card { aspect-ratio: 4 / 3; }
  .video-card__btn { flex-direction: column; text-align: center; }
  .video-card__label { text-align: center; padding-inline: 16px; }
  .video-card__play { width: 72px; height: 72px; }
  .segmented label { font-size: 14px; gap: 6px; }
  .segmented label svg { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .cta-band__phone { font-size: 2rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__col ul { gap: 0; }
  .footer__col li > a, .footer__bottom nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .link-arrow::after { content: ""; position: absolute; inset: -10px -4px; }
}

@media (max-width: 380px) {
  .review__foot { flex-wrap: wrap; }
  .review__foot .stars { order: -1; flex-basis: 100%; margin-left: 0; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero__body { padding-top: 24px; padding-bottom: 24px; }
  .hero__title { font-size: clamp(2.6rem, 12vh, 4rem); }
  .hero__tag, .hero__slogan { display: none; }
}

@media (hover: none) {
  .project__go { opacity: 1; transform: none; }
  .service-row:hover .service-row__title { transform: none; }
}

/* =========================================================
   Refinement layer: calmer, less "template" look.
   Smaller radii, rectangular buttons, sentence-case section
   headings, text-first facts, captions under photos.
   ========================================================= */
:root {
  --radius-lg: 10px;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-card: 0 1px 2px rgba(20, 21, 24, 0.06);
  --shadow-lift: 0 10px 30px -18px rgba(20, 21, 24, 0.45);
}
.btn { border-radius: 8px; }
.btn--sm { border-radius: 6px; }
.segmented, .segmented label { border-radius: 8px; }
.tag, .chip, .badge { border-radius: 6px; }

/* Section heads: kicker + heading + intro stacked, left aligned */
.eyebrow { gap: 0; font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 700; color: var(--amber-ink); }
.section--dark .eyebrow { color: var(--amber); }
.h2 { text-transform: none; font-size: clamp(2.2rem, 4.2vw, 3.5rem); line-height: 1.02; letter-spacing: 0; margin-top: 8px; }
.h3 { text-transform: none; letter-spacing: 0; }
.section-head { display: block; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head .lede { margin-top: 16px; justify-self: start; }

/* Hero: plain kicker line instead of a pill */
.hero__tag { padding: 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; letter-spacing: 0.08em; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
.hero__tag-dot { display: none; }
.hero__ctas .btn--ghost-light { border-radius: 8px; }
.hero__pause { border-radius: 8px; }

/* Proof bar: text only, thin rule above */
.proof__item { display: block; padding-top: 28px; padding-bottom: 28px; }
.proof__item strong { font-size: 16px; }

/* Services: photo | title | text | arrow; no numbers, no tag pills */
.service-row { grid-template-columns: 148px minmax(0, 0.85fr) minmax(0, 1.25fr) 32px; gap: 28px; padding: 24px 0; }
.service-row__img { grid-column: 1; grid-row: 1; width: 148px; border-radius: 6px; }
.service-row__title { grid-column: 2; grid-row: 1; }
.service-row__desc { grid-column: 3; grid-row: 1; }
.service-row__go { grid-column: 4; grid-row: 1; width: 32px; height: 32px; border: 0; border-radius: 0; }
.service-row__go svg { transform: none; }
.service-row:hover .service-row__go, .service-row:focus-within .service-row__go { background: none; color: var(--amber-ink); }
.service-row:hover .service-row__go svg, .service-row:focus-within .service-row__go svg { transform: translateX(4px); }
.service-row:hover .service-row__title { transform: none; }
.service-row:hover .service-row__title .h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--amber); }
.service-row::before { display: none; }
.service-row__title .h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.services-extra { display: block; max-width: 70ch; color: var(--muted); font-size: 15.5px; }

/* About: plain list of points */
.about__points { gap: 0 32px; }
.about__point { padding: 16px 0; background: none; border: 0; border-top: 1px solid var(--line-dark); border-radius: 0; }
.about__img-main, .about__img-sub { border-radius: 8px; }

/* Facts + photos (replaces the colour bento) */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.fact { padding-top: 18px; border-top: 2px solid var(--ink); }
.fact h3 { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1.05; }
.fact p { margin-top: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.fact .link-arrow { margin-top: 14px; font-size: 15px; }
.photo-row { display: grid; grid-template-columns: 1fr 1fr 1.7fr; gap: 16px; margin-top: 48px; }
.photo-row img { width: 100%; height: 340px; object-fit: cover; border-radius: 8px; background: var(--paper-3); }
.photo-row figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Process: small step numbers, no icon circles */
.step__num { font-family: var(--body); font-size: 14px; font-weight: 800; letter-spacing: 0.08em; color: var(--amber-ink); }
.step h3 { margin-top: 12px; }

/* Case study: before and after side by side, captions underneath */
.case__media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0; }
.case__after, .case__before { position: static; width: auto; border: 0; border-radius: 0; overflow: visible; background: none; aspect-ratio: auto; }
.case__before { order: -1; }
.case__media img { aspect-ratio: 4 / 3; height: auto; border-radius: 8px; background: var(--ink-3); }
.case__media figcaption { margin-top: 8px; font-size: 14px; color: var(--muted-on-dark); }

/* Projects: photo with caption underneath, like a portfolio */
.project { aspect-ratio: auto; background: none; color: var(--text); border-radius: 0; overflow: visible; isolation: auto; }
.project--wide { aspect-ratio: auto; }
.project img { position: static; z-index: auto; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--paper-3); }
.project--wide img { aspect-ratio: 8 / 2.95; }
.project::after { display: none; }
.project__body { position: static; display: block; padding: 14px 0 0; text-shadow: none; }
.project__place { color: var(--amber-ink); font-size: 12.5px; }
.project__title { color: var(--ink); text-transform: none; font-size: 1.4rem; line-height: 1.1; margin-top: 4px; }
.project--wide .project__title { font-size: 1.6rem; }
.project__meta { color: var(--muted); max-width: none; }
.project__go { display: none; }
.project:hover img { transform: none; }
.project:hover .project__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--amber); }

/* References, video, reviews, CTA, footer: flatter */
.refs, .video-card, .review, .cta-band__card, .form-card, .bento__card { border-radius: 10px; }
.refs__go { border: 0; width: 28px; height: 28px; }
.refs__row:hover .refs__go, .refs__row:focus-within .refs__go { background: none; color: var(--amber); }
.review--feature { background: var(--ink-2); }
.review__foot .stars { margin-left: 0; }
.review__foot { gap: 12px; flex-wrap: wrap; }
.cta-band__card { box-shadow: none; }
.cta-band__card::before { display: none; }
.footer__partners li { border-radius: 6px; }

@media (max-width: 1180px) {
  .service-row { grid-template-columns: 120px minmax(0, 0.9fr) minmax(0, 1.2fr) 28px; gap: 20px; }
  .service-row__img { width: 120px; }
}
@media (max-width: 1024px) {
  .service-row { grid-template-columns: 120px minmax(0, 1fr) 28px; gap: 8px 20px; }
  .service-row__img { grid-column: 1; grid-row: 1 / span 2; width: 120px; }
  .service-row__title { grid-column: 2; grid-row: 1; }
  .service-row__desc { grid-column: 2; grid-row: 2; }
  .service-row__go { grid-column: 3; grid-row: 1 / span 2; }
  .facts { grid-template-columns: 1fr; gap: 24px; }
  .photo-row { grid-template-columns: 1fr 1fr; }
  .photo-row figure:last-child { grid-column: 1 / -1; }
  .project--wide img { aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
  .service-row { grid-template-columns: 1fr 28px; gap: 10px 12px; padding: 22px 0; }
  .service-row__img { grid-column: 1 / -1; grid-row: 1; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 4px; }
  .service-row__title { grid-column: 1; grid-row: 2; }
  .service-row__go { grid-column: 2; grid-row: 2; }
  .service-row__desc { grid-column: 1 / -1; grid-row: 3; }
  .about__points { grid-template-columns: 1fr; }
  .photo-row { grid-template-columns: 1fr; }
  .photo-row img { height: 240px; }
  .photo-row figure:nth-child(2) { display: none; }
  .case__media { grid-template-columns: 1fr; }
  .project--wide img { aspect-ratio: 4 / 3; }
}

/* Reference list: name + what was done, no stat column */
.refs__row { grid-template-columns: minmax(0, 1fr) 32px; }
@media (max-width: 720px) { .refs__row { grid-template-columns: minmax(0, 1fr) 28px; } }

.about__more { margin-top: 24px; }
.section--dark .about__more .link-arrow { color: #fff; }
.section--dark .about__more .link-arrow:hover { color: var(--amber); }

/* Service pages: plain link list at the bottom of the homepage */
.service-links { padding-top: 0; }
.service-links__inner { padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.service-links .lede { margin-top: 14px; max-width: 62ch; }
.service-links__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(28px, 3vw, 40px); }
.service-links__all { margin-top: 28px; }
.service-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white); color: var(--ink); transition: border-color 0.2s ease; }
.service-link strong { display: block; font-size: 17px; line-height: 1.3; }
.service-link span span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.service-link svg { width: 18px; height: 18px; flex: none; color: var(--amber-ink); transition: transform 0.2s ease; }
.service-link:hover, .service-link:focus-visible { border-color: var(--amber-deep); }
.service-link:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--amber); }
.service-link:hover svg { transform: translateX(3px); }
@media (max-width: 1024px) { .service-links__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .service-links__grid { grid-template-columns: 1fr; gap: 10px; } .service-link { padding: 16px 18px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal, .hero .anim { opacity: 1; transform: none; }
  .hero__pause { display: none; }
}

@media print {
  .reveal, .hero .anim { opacity: 1 !important; transform: none !important; }
  .site-header, .callbar, .hero__media, .hero__pause, .video-card { display: none !important; }
}
