/* ============== Gulv og tak AS — homepage ============== */
@font-face {
  font-family: "Futura Brand";
  src: url("fonts/Futura_Bold.otf") format("opentype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #f4f4f2;
  --surface: #ffffff;
  --surface-2: #f7f8f7;
  --ink: #16213c;
  --ink-2: #2c3953;
  --ink-soft: #5b6473;
  --line: #e2e3e1;
  --line-2: #d3d5d4;

  /* brand blue (structure, links, marks) */
  --brand: #0a72ad;
  --brand-deep: #0a4f86;

  /* dark sections = brand navy */
  --dark: #132f57;
  --dark-2: #0f2647;
  --dark-line: #2a456e;
  --dark-soft: #9fb0c8;

  /* accent = orange (CTA, highlights) — overridable by tweaks */
  --accent: #ef8a18;
  --accent-deep: #dd7a00;
  --accent-ink: #14233f;

  --radius: 14px;
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --font-mono: "Montserrat", system-ui, sans-serif;

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.04; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 500;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); display: inline-block; }
.eyebrow.on-dark { color: var(--dark-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 0.85em 1.35em; border-radius: calc(var(--radius) - 4px);
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.on-dark { color: #fff; border-color: var(--dark-line); }
.btn-ghost.on-dark:hover { border-color: #fff; }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.1rem; color: var(--ink); }
.brand-logo { height: 50px; width: auto; display: block; flex: none; }
.brand .bt { display: flex; flex-direction: column; line-height: 1; }
.brand .bt b { font-weight: 800; }
.brand .bt small { font-family: var(--font-mono); font-weight: 400; font-size: 0.58rem; letter-spacing: 0.14em; color: var(--ink-soft); margin-top: 3px; text-transform: uppercase; white-space: nowrap; }
.footer .brand-logo { height: 52px; }
.nav-links { display: flex; gap: 28px; font-weight: 500; font-size: 0.96rem; }
.nav-links a { color: var(--ink-2); transition: color .15s; }
.nav-links a:hover { color: var(--brand); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-phone { font-family: var(--font-display); font-weight: 600; font-size: 0.96rem; display: inline-flex; align-items: center; gap: 7px; }
.nav-phone .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.menu-btn { display: none; }
.brand { flex-shrink: 0; min-width: 0; }
.brand-logo { flex-shrink: 0; }
.nav-right { flex-shrink: 0; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero-brand { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 1.8vw, 1.45rem); letter-spacing: -0.02em; color: var(--brand); margin-bottom: 1.1rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 36ch; margin-top: 1.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero-stats { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 2.6rem; flex-wrap: wrap; }
.stat .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.03em; }
.stat .l { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }
.hero-media { position: relative; }
.hero-media .ph { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.hero-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 72% 50%; border-radius: var(--radius); display: block; box-shadow: var(--shadow-sm, 0 12px 32px rgba(35,42,107,.10)); }
.hero-badge {
  position: absolute; left: -18px; bottom: 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: calc(var(--radius) - 2px);
  padding: 14px 18px; box-shadow: 0 18px 40px -22px rgba(0,0,0,.35);
  display: flex; align-items: center; gap: 12px; max-width: 230px;
}
.hero-badge .b-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--accent); flex: none; display: grid; place-items: center; color: var(--accent-ink); font-family: var(--font-display); font-weight: 800; }
.hero-badge .b-t { font-weight: 700; font-size: 0.9rem; line-height: 1.2; }
.hero-badge .b-s { font-size: 0.76rem; color: var(--ink-soft); }

/* hero anniversary seal */
.hero-seal {
  position: absolute; top: -24px; right: -20px; z-index: 3;
  width: clamp(104px, 11vw, 132px); height: clamp(104px, 11vw, 132px);
  border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-content: center; text-align: center; gap: 1px;
  box-shadow: 0 16px 34px -14px rgba(35,42,107,.55);
  border: 1px solid rgba(255,255,255,.14);
}
.hero-seal::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
}
.hero-seal .hs-top { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.hero-seal .hs-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 4.6vw, 3.1rem); line-height: 0.92; letter-spacing: -0.02em; color: var(--accent); }
.hero-seal .hs-num sup { font-size: 0.42em; vertical-align: super; }
.hero-seal .hs-sub { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,.82); }

/* full-bleed hero variant */
body.hero-full .hero-grid { display: block; position: relative; border-radius: var(--radius); overflow: hidden; min-height: 78vh; padding: clamp(32px, 6vw, 72px); display: flex; align-items: flex-end; }
body.hero-full .hero-media { position: absolute; inset: 0; }
body.hero-full .hero-media .ph { aspect-ratio: auto; height: 100%; border-radius: 0; }
body.hero-full .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(80deg, rgba(15,16,18,.82) 0%, rgba(15,16,18,.45) 55%, rgba(15,16,18,.15) 100%); }
body.hero-full .hero-copy { position: relative; z-index: 2; color: #fff; max-width: 640px; }
body.hero-full .hero h1 { color: #fff; }
body.hero-full .hero h1 em { color: var(--accent); }
body.hero-full .hero .lead { color: rgba(255,255,255,.85); }
body.hero-full .hero .stat .n { color: #fff; }
body.hero-full .hero-badge { display: none; }
body.hero-full .eyebrow { color: rgba(255,255,255,.8); }

/* ---------- trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface-2); }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(18px, 4vw, 44px); padding-block: 22px; }
.trust-row .t-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.trust-chip { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.trust-chip::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }

/* ---------- section scaffolding ---------- */
.section { padding-block: calc(var(--section-pad-scale, 1) * clamp(76px, 10vw, 144px)); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: clamp(40px, 5.5vw, 68px); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); max-width: 16ch; }
.section-head .sh-lead { color: var(--ink-soft); max-width: 38ch; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px 22px; display: flex; flex-direction: column;
  min-height: 270px; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.svc:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 22px 44px -30px rgba(15,38,71,.4); }
.svc-num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--brand); letter-spacing: 0.1em; }
.svc-ph { margin-top: 14px; border-radius: 10px; aspect-ratio: 16/10; }
.svc-img { width: 100%; object-fit: cover; display: block; }
.svc h3 { font-size: 1.32rem; margin-top: 20px; }
.svc p { color: var(--ink-soft); font-size: 0.96rem; margin-top: 9px; flex: 1; }
.svc .more { margin-top: 16px; font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.svc:hover .more .arr { transform: translateX(3px); }
.svc .more .arr { transition: transform .15s; }

/* ---------- feature / why us ---------- */
.feature { background: var(--dark); color: #fff; border-radius: var(--radius); overflow: hidden; }
.feature-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; }
.feature-media .ph { height: 100%; min-height: 420px; border: none; border-radius: 0; --ph-bg: var(--dark-2); }
.feature-img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; }
.feature-body { padding: clamp(36px, 5vw, 64px); }
.feature-body h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); color: #fff; }
.feature-body .sub { color: var(--dark-soft); margin-top: 1.1rem; max-width: 42ch; }
.checklist { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; }
.checklist .ck { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); flex: none; display: grid; place-items: center; font-weight: 800; font-size: 0.78rem; font-family: var(--font-display); margin-top: 2px; }
.checklist .ct b { display: block; font-family: var(--font-display); font-size: 1rem; }
.checklist .ct span { color: var(--dark-soft); font-size: 0.92rem; }

/* ---------- projects ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.proj { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.proj .ph { aspect-ratio: 3/4; border: none; border-radius: 0; }
.proj-img { width: 100%; height: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.proj:nth-child(1) .proj-img { aspect-ratio: 16/11; }
.proj:nth-child(1) { grid-column: span 2; }
.proj:nth-child(1) .ph { aspect-ratio: 16/11; }
.proj.proj-wide { grid-column: span 2; }
.proj.proj-wide .proj-img { aspect-ratio: 16/11; }
.proj-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; background: linear-gradient(transparent, rgba(15,16,18,.78)); color: #fff; }
.proj-cap .pc-t { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.proj-cap .pc-s { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; opacity: .85; text-transform: uppercase; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step .s-n { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--brand); }
.step h3 { font-size: 1.22rem; margin-top: 10px; }
.step p { color: var(--ink-soft); font-size: 0.94rem; margin-top: 8px; }

/* ---------- quote CTA ---------- */
.quote { background: var(--dark); color: #fff; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.quote h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); color: #fff; }
.quote .q-lead { color: var(--dark-soft); margin-top: 1.2rem; max-width: 40ch; }
.quote-contact { margin-top: 2rem; display: grid; gap: 14px; }
.quote-contact a { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; }
.quote-contact .qc-ic { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--dark-line); display: grid; place-items: center; color: var(--accent); flex: none; }
.qform { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); }
.qform h3 { font-size: 1.4rem; }
.qform .qf-sub { color: var(--ink-soft); font-size: 0.92rem; margin-top: 6px; }
.qf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.96rem; padding: 0.7em 0.85em;
  border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface-2); color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.qform .btn { width: 100%; justify-content: center; margin-top: 4px; }
.qform .qf-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 12px; text-align: center; }

/* ---------- footer (matches header: light, hairline, ink text) ---------- */
.footer { background: var(--bg); color: var(--ink-2); padding-block: clamp(48px, 6vw, 72px) 28px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer ul a { color: var(--ink-2); font-size: 0.94rem; transition: color .15s; }
.footer ul a:hover { color: var(--brand); }
.footer .f-brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.footer .f-desc { color: var(--ink-soft); font-size: 0.92rem; margin-top: 16px; max-width: 30ch; }
.f-cert { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.f-cert .fc { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--ink-soft); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: var(--ink-soft); font-size: 0.84rem; }

/* ---------- placeholder ---------- */
.ph {
  --ph-bg: var(--surface-2);
  background:
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--line-2) 70%, transparent) 0 1.5px, transparent 1.5px 13px),
    var(--ph-bg);
  border: 1px solid var(--line);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.ph > span {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink-soft);
  background: var(--surface); padding: 5px 11px; border-radius: 20px; border: 1px solid var(--line);
}
.feature-media .ph > span, .proj .ph > span { background: rgba(0,0,0,.45); color: #fff; border-color: rgba(255,255,255,.18); }

/* ---------- system cards (membran etc.) ---------- */
.sys-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.sys-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 34px);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.sys-card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 22px 44px -30px rgba(15,38,71,.4); }
.sys-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 14px; }
.sys-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sys-badge { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--ink-2); background: var(--surface-2); }
.sys-card p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.62; margin-top: 18px; }

/* ---------- price cards ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 32px); display: flex; flex-direction: column;
}
.price-card.price-feat { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 22px 44px -34px rgba(239,138,24,.6); }
.price-tag { align-self: flex-start; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 6px; }
.price-feat .price-tag { color: #fff; background: var(--accent); border-color: var(--accent); }
.price-card h3 { font-size: 1.3rem; margin-top: 18px; }
.price-amt { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.02em; color: var(--ink); margin-top: 14px; line-height: 1; }
.price-amt-sm { font-size: clamp(1.5rem, 3vw, 2rem); }
.price-cur { font-size: 0.5em; font-weight: 700; color: var(--ink-soft); }
.price-card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; margin-top: 16px; }
.price-note { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.6; margin-top: 22px; max-width: 70ch; }

/* ---------- team / kontakt ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.team-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.team-card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 22px 44px -30px rgba(15,38,71,.4); }
.team-photo { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.team-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.team-card h3 { font-size: 1.18rem; }
.team-role { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-top: 7px; }
.team-card p { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.55; margin-top: 12px; flex: 1; }
.team-contact { display: grid; gap: 8px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.team-contact a { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--ink-2); transition: color .15s; }
.team-contact a:hover { color: var(--brand); }
.team-contact .tc-ic { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent); flex: none; font-size: 0.82rem; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .nav { gap: 12px; }
  .nav-right { gap: 10px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .sys-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media .ph { aspect-ratio: 16/10; }
  .hero-img { aspect-ratio: 16/10; }  .feature-grid, .quote-grid { grid-template-columns: 1fr; }
  .feature-media .ph { min-height: 280px; }
  .feature-img { min-height: 280px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .proj:nth-child(1) { grid-column: span 2; }
  .proj.proj-wide { grid-column: span 1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-phone { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 560px) {
  body { font-size: 16px; overflow-x: hidden; }
  .brand-logo { height: 38px; }
  .site-header.scrolled .brand-logo { height: 32px; }
  .nav-right .btn-accent .arr { display: none; }
  .nav-right .btn-accent { padding-inline: 14px; font-size: 0.86rem; }
  .hero { padding-top: clamp(20px, 6vw, 32px); padding-bottom: 32px; }
  .hero-grid { gap: 22px; }
  .hero-media .ph, .hero-media .hero-img { aspect-ratio: 4/3; border-radius: calc(var(--radius) - 4px); }
  .hero-brand { font-size: 0.98rem; margin-bottom: 0.7rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.5rem); line-height: 1.08; }
  .hero .lead { font-size: 1rem; max-width: none; margin-top: 1rem; }
  .hero-cta { margin-top: 1.5rem; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero-badge { left: 0; right: 0; bottom: 14px; max-width: none; margin-inline: 14px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .svc-grid { grid-template-columns: 1fr; }
  .proj-grid, .steps, .qf-grid, .footer-top { grid-template-columns: 1fr; }
  .proj:nth-child(1) { grid-column: span 1; }
  .proj.proj-wide { grid-column: span 1; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .breadcrumb { padding-top: 18px; }
}

/* ---------- breadcrumb ---------- */
.breadcrumb { padding-top: 26px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb li[aria-current] { color: var(--ink); }

/* ---------- service-page hero ---------- */
.svc-hero { padding-top: clamp(28px, 3.5vw, 48px); padding-bottom: clamp(56px, 7vw, 100px); }
.svc-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.svc-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.svc-hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 40ch; margin-top: 1.3rem; }
.svc-hero .ph { aspect-ratio: 5/4; border-radius: var(--radius); }
.svc-hero .hero-cta { margin-top: 1.8rem; }
.svc-hero-figure { margin: 0; }
.svc-hero-img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--radius); display: block; box-shadow: var(--shadow-sm, 0 12px 32px rgba(35,42,107,.10)); }
.svc-hero-cap { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-top: 11px; }
.det-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.det-grid .proj-img { aspect-ratio: 4/3; }
.det-grid .proj:nth-child(1) { grid-column: auto; }
.det-grid .proj:nth-child(1) .proj-img { aspect-ratio: 4/3; }
.proj-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.proj-pair > .proj { grid-column: auto; margin: 0; }
.proj-pair .proj-img { aspect-ratio: 4/3; }
@media (max-width: 760px) { .proj-pair { grid-template-columns: 1fr; } }

/* ---------- gallery / slideshow ---------- */
.gallery { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--dark-2); box-shadow: 0 1px 2px rgba(35,42,107,.05), 0 24px 50px -34px rgba(19,47,87,.55); }
.gallery-track { display: flex; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.gallery-slide { min-width: 100%; margin: 0; position: relative; }
.gallery-slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px clamp(20px, 4vw, 36px) 22px; color: #fff; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; background: linear-gradient(to top, rgba(15,18,26,.74), rgba(15,18,26,0)); }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255,255,255,.9); color: var(--ink); font-family: var(--font-display); font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .15s ease, transform .15s ease; }
.gallery-nav:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.gallery-nav:active { transform: translateY(-50%) scale(.96); }
.gallery-prev { left: clamp(10px, 2vw, 18px); }
.gallery-next { right: clamp(10px, 2vw, 18px); }
.gallery-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.gallery-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; transition: background .18s ease, width .18s ease; }
.gallery-dot.is-active { background: #fff; width: 22px; border-radius: 4px; }
@media (max-width: 620px) { .gallery-nav { width: 44px; height: 44px; } .gallery-cap { font-size: 0.66rem; } }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 32px); box-shadow: 0 1px 2px rgba(35,42,107,.05), 0 16px 36px -28px rgba(35,42,107,.4); transition: transform var(--dur, .18s) cubic-bezier(.22,.61,.36,1), box-shadow var(--dur, .18s) cubic-bezier(.22,.61,.36,1); }
.tier:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(35,42,107,.05), 0 26px 52px -30px rgba(35,42,107,.5); }
.tier-top { display: flex; align-items: center; justify-content: space-between; }
.tier-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.tier-meter { display: flex; gap: 5px; }
.tier-meter i { width: 22px; height: 5px; border-radius: 3px; background: var(--line-2, #cfd7e0); }
.tier-meter i.on { background: var(--brand); }
.tier-num { display: flex; align-items: baseline; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.tn-v { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.tn-u { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--ink-soft); }
.tier h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); margin: 0; }
.tier p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.58; margin: 0; }
.tier-feat { border-color: var(--brand); box-shadow: 0 24px 50px -28px rgba(10,114,173,.55); }
.tier-feat .tn-v { color: var(--brand); }
.tier-badge { position: absolute; top: -11px; left: clamp(24px, 3vw, 32px); background: var(--brand); color: #fff; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 11px; border-radius: 20px; }
@media (max-width: 820px) { .tier-grid { grid-template-columns: 1fr; } }

/* ---------- use-case grid ---------- */
.use-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.use { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: transform var(--dur, .18s) cubic-bezier(.22,.61,.36,1), border-color var(--dur, .18s); }
.use:hover { transform: translateY(-2px); border-color: var(--line-2, #cfd7e0); }
.use-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); color: var(--brand); }
.use-ic svg { width: 21px; height: 21px; }
.use-t { font-weight: 600; font-size: 0.98rem; color: var(--ink); }
.use-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.use-opt { display: flex; align-items: center; gap: 16px; padding: 22px clamp(20px, 3vw, 28px); border-radius: 16px; background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); border: 1px solid var(--line); }
.use-opt .use-ic { width: 46px; height: 46px; border-radius: 12px; background: #fff; flex: none; }
.use-opt .use-ic svg { width: 24px; height: 24px; }
.use-opt-t { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); }
.use-opt-s { font-size: 0.9rem; color: var(--ink-2); margin-top: 2px; }
@media (max-width: 900px) { .use-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .use-grid { grid-template-columns: 1fr 1fr; } .use-opts { grid-template-columns: 1fr; } }
@media (max-width: 940px) { .svc-hero-img { aspect-ratio: 16/10; } }
@media (max-width: 760px) { .det-grid { grid-template-columns: 1fr; } }

/* ---------- care / inspection ---------- */
.care-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.care { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); box-shadow: 0 1px 2px rgba(35,42,107,.05), 0 16px 36px -28px rgba(35,42,107,.4); transition: transform var(--dur, .18s) cubic-bezier(.22,.61,.36,1), box-shadow var(--dur, .18s) cubic-bezier(.22,.61,.36,1); }
.care:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(35,42,107,.05), 0 26px 52px -30px rgba(35,42,107,.5); }
.care-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--brand); }
.care-ic svg { width: 25px; height: 25px; }
.care h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin: 4px 0 0; }
.care p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.58; margin: 0; }
.flaw-head { margin-top: clamp(36px, 5vw, 56px); }
.flaw-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 20px; }
.flaw { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.flaw img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.flaw figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; background: linear-gradient(180deg, rgba(20,24,40,0) 0%, rgba(20,24,40,.82) 100%); }
@media (max-width: 900px) { .care-grid { grid-template-columns: 1fr; } .flaw-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- flaw slideshow ---------- */
.flaw-show { position: relative; margin-top: 20px; }
.fs-window { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #14181f; }
.fs-track { display: flex; transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.fs-slide { position: relative; min-width: 100%; margin: 0; }
.fs-slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.fs-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(64px,10vw,110px) clamp(24px,4vw,48px) clamp(22px,3vw,34px); background: linear-gradient(180deg, rgba(20,24,40,0) 0%, rgba(20,24,40,.86) 100%); }
.fs-slide figcaption b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.35rem,2.6vw,2rem); letter-spacing: -.02em; color: #fff; }
.fs-slide figcaption span { display: block; margin-top: 7px; font-size: clamp(.95rem,1.4vw,1.1rem); line-height: 1.5; color: rgba(255,255,255,.88); max-width: 34em; }
.fs-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(20,24,40,.3); transition: background .18s, transform .18s; z-index: 2; }
.fs-nav svg { width: 22px; height: 22px; }
.fs-nav:hover { background: #fff; }
.fs-nav:active { transform: translateY(-50%) scale(.94); }
.fs-prev { left: clamp(12px,2vw,20px); }
.fs-next { right: clamp(12px,2vw,20px); }
.fs-dots { display: flex; gap: 9px; justify-content: center; margin-top: 18px; }
.fs-dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-2,#cfd7e0); background: transparent; cursor: pointer; padding: 0; transition: background .18s, width .18s, border-color .18s; }
.fs-dot.is-active { background: var(--brand); border-color: var(--brand); width: 26px; border-radius: 5px; }
@media (max-width: 560px) { .fs-nav { width: 44px; height: 44px; } }

/* ---------- full-width media + banner ---------- */
.media-wide { margin: 0; }
.media-wide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); display: block; box-shadow: var(--shadow-sm, 0 12px 32px rgba(35,42,107,.10)); }
.media-wide figcaption { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-top: 12px; }
.care-banner { position: relative; overflow: hidden; border-radius: var(--radius); min-height: clamp(360px, 46vw, 540px); display: flex; align-items: flex-end; }
.care-banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.care-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,24,40,.78) 0%, rgba(20,24,40,.45) 42%, rgba(20,24,40,.05) 75%); }
.care-banner-inner { position: relative; z-index: 1; padding: clamp(28px, 4vw, 52px); max-width: 640px; }
.care-banner-inner h2 { color: #fff; margin-top: 14px; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.care-banner-inner p { color: rgba(255,255,255,.9); margin-top: 14px; font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.6; max-width: 30em; }
@media (max-width: 600px) { .care-banner::after { background: linear-gradient(0deg, rgba(20,24,40,.86) 8%, rgba(20,24,40,.4) 60%, rgba(20,24,40,.15) 100%); } }

/* ---------- leak / urgent CTA (red) ---------- */
.leak-cta { position: relative; overflow: hidden; border-radius: var(--radius); background: #c62f25; color: #fff; padding: clamp(30px, 4.5vw, 56px); display: grid; grid-template-columns: 1.5fr auto; gap: clamp(24px, 4vw, 56px); align-items: center; box-shadow: 0 26px 52px -32px rgba(198,47,37,.7); }
.leak-cta .eyebrow { color: rgba(255,255,255,.82); }
.leak-cta h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-top: 12px; line-height: 1.08; }
.leak-cta p { color: rgba(255,255,255,.92); margin-top: 14px; font-size: clamp(1.02rem, 1.5vw, 1.16rem); line-height: 1.6; max-width: 46ch; }
.leak-cta-act { display: flex; flex-direction: column; gap: 12px; align-items: stretch; min-width: 248px; }
.leak-phone { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: #fff; color: #c62f25; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 2.1vw, 1.8rem); padding: 18px 28px; border-radius: var(--r-sm, 8px); letter-spacing: 0.01em; transition: transform .18s ease, background .18s ease; }
.leak-phone:hover { transform: translateY(-1px); background: #fff4f3; }
.leak-phone svg { width: 24px; height: 24px; }
.leak-sub { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,.85); text-align: center; }
@media (max-width: 760px) { .leak-cta { grid-template-columns: 1fr; } .leak-cta-act { min-width: 0; } }

/* prose + included list for service pages */
.prose { max-width: 62ch; }
.prose p { color: var(--ink-2); margin-top: 1.1rem; }
.prose p:first-child { margin-top: 0; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5.5vw, 80px); align-items: start; }
.incl { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.incl li { display: flex; gap: 13px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 16px 18px; }
.incl .ck { width: 22px; height: 22px; border-radius: 6px; background: var(--brand); color: #fff; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 0.78rem; font-family: var(--font-display); margin-top: 1px; }
.incl b { font-family: var(--font-display); font-size: 1rem; display: block; }
.incl span { color: var(--ink-soft); font-size: 0.92rem; }

/* audience cards */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ---------- areas: labelled chip panels ---------- */
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.area-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 28px; transition: box-shadow .18s, transform .18s; }
.area-card:hover { box-shadow: 0 18px 38px -28px rgba(15,38,71,.45); transform: translateY(-2px); }
.area-card .ac-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.area-card .ac-label::before { content: ""; width: 22px; height: 2px; background: var(--brand); flex: none; border-radius: 2px; }
.area-card.is-problem .ac-label::before { background: var(--accent); }
.chip-set { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px 8px 13px; display: inline-flex; align-items: center; gap: 8px; transition: border-color .15s, color .15s, transform .15s; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); transform: rotate(45deg); flex: none; }
.is-problem .chip::before { background: var(--accent); }
.chip:hover { border-color: var(--line-2); color: var(--ink); transform: translateY(-1px); }
@media (max-width: 740px) { .areas { grid-template-columns: 1fr; } }
.aud { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.aud .a-ic { width: 40px; height: 40px; border-radius: 9px; background: color-mix(in srgb, var(--brand) 14%, white); color: var(--brand); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.aud h3 { font-size: 1.18rem; margin-top: 16px; }
.aud p { color: var(--ink-soft); font-size: 0.94rem; margin-top: 8px; }

/* ---------- map / location ---------- */
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 22px 44px -30px rgba(15,38,71,.4); aspect-ratio: 4/3; background: var(--surface-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.92); }
.map-meta { list-style: none; padding: 0; margin: 1.7rem 0 0; display: grid; gap: 14px; }
.map-meta li { display: flex; gap: 16px; align-items: baseline; }
.map-meta .mm-l { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); min-width: 92px; flex: none; }
.map-meta .mm-v { font-family: var(--font-display); font-weight: 600; color: var(--ink-2); transition: color .15s; }
.map-meta a.mm-v:hover { color: var(--brand); }

@media (max-width: 940px) {
  .svc-hero-grid, .split, .aud-grid { grid-template-columns: 1fr; }
  .svc-hero .ph { aspect-ratio: 16/10; }
  .map-frame { aspect-ratio: 16/12; }
}

/* ---------- stats band ---------- */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-block: clamp(30px, 4vw, 46px);
}
.stat .n { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 5vw, 3.7rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat .n-word { color: var(--brand); }
.stat .stat-l { display: block; margin-top: 12px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 740px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
}

/* ---------- scroll motion (fully gated on motion preference) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .section-head,
  html.js .svc,
  html.js .proj,
  html.js .step,
  html.js .feature,
  html.js .stat,
  html.js .checklist > li,
  html.js .incl > li,
  html.js .aud,
  html.js .area-card,
  html.js .map-frame,
  html.js .qform,
  html.js .trust-chip,
  html.js .breadcrumb,
  html.js .prose {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
  }
  html.js .in { opacity: 1; transform: none; }

  /* hero entrance — runs on load (above the fold) */
  html.js .hero-copy > *,
  html.js .hero-media {
    opacity: 0;
    animation: gtRise .72s cubic-bezier(.22,.61,.36,1) forwards;
  }
  html.js .hero-copy > * { transform: translateY(18px); }
  html.js .hero-copy > *:nth-child(1) { animation-delay: .06s; }
  html.js .hero-copy > *:nth-child(2) { animation-delay: .13s; }
  html.js .hero-copy > *:nth-child(3) { animation-delay: .20s; }
  html.js .hero-copy > *:nth-child(4) { animation-delay: .27s; }
  html.js .hero-copy > *:nth-child(5) { animation-delay: .34s; }
  html.js .hero-media { transform: translateY(18px) scale(.992); animation-delay: .28s; animation-duration: .8s; }

  /* service-page hero copy reuses the same rise */
  html.js .svc-hero .hero-copy > * { transform: translateY(18px); }
}
@keyframes gtRise { to { opacity: 1; transform: none; } }

@media (max-width: 400px) {
  .nav-right .btn-accent { display: none; }
}

/* ---------- mobile navigation drawer ---------- */
/* Hamburger button (replaces the old "Meny" anchor's content via JS) */
.menu-btn { display: none; }
.menu-btn .m-ico { position: relative; width: 18px; height: 12px; flex: none; }
.menu-btn .m-ico span {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .2s cubic-bezier(.22,.61,.36,1), opacity .15s ease;
}
.menu-btn .m-ico span:nth-child(1) { top: 0; }
.menu-btn .m-ico span:nth-child(2) { top: 5px; }
.menu-btn .m-ico span:nth-child(3) { top: 10px; }
.menu-btn.open .m-ico span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn.open .m-ico span:nth-child(2) { opacity: 0; }
.menu-btn.open .m-ico span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.m-scrim {
  position: fixed; inset: 0; z-index: 44; background: rgba(27,35,48,.34);
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease;
}
.m-scrim.open { opacity: 1; visibility: visible; }

.m-drawer {
  position: fixed; left: 0; right: 0; z-index: 45;
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 28px 54px -32px rgba(35,42,107,.5);
  transform: translateY(-14px); opacity: 0; visibility: hidden;
  transition: opacity .22s ease, transform .22s cubic-bezier(.22,.61,.36,1), visibility .22s ease;
  max-height: calc(100dvh - var(--m-top, 74px)); overflow-y: auto;
}
.m-drawer.open { transform: none; opacity: 1; visibility: visible; }
.m-drawer-inner {
  display: flex; flex-direction: column;
  padding: 8px clamp(18px, 5vw, 30px) 20px;
  max-width: 1200px; margin: 0 auto;
}
.m-drawer .m-link {
  display: flex; align-items: center; min-height: 52px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem;
  color: var(--ink); border-bottom: 1px solid var(--line);
  transition: color .15s ease;
}
.m-drawer .m-link:last-of-type { border-bottom: 0; }
.m-drawer .m-link:hover, .m-drawer .m-link:active { color: var(--brand); }
.m-drawer .m-foot { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.m-drawer .m-phone {
  display: inline-flex; align-items: center; gap: 9px; min-height: 48px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--ink);
}
.m-drawer .m-phone .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.m-drawer .m-cta { justify-content: center; min-height: 52px; font-size: 1.02rem; }
body.m-lock { overflow: hidden; }

@media (max-width: 940px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 9px;
    min-height: 44px; padding-inline: 16px; cursor: pointer;
  }
}
@media (min-width: 941px) {
  .m-drawer, .m-scrim { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .m-drawer, .m-scrim, .menu-btn .m-ico span { transition: none; }
}

/* ============== modernisation layer (brand-safe) ============== */

/* reading-progress bar — brand amber, very thin */
.scroll-prog {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transition: width .12s linear; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .scroll-prog { display: none; } }

/* condensing glass header on scroll */
.site-header { transition: box-shadow .26s ease, background .26s ease; }
.nav { transition: height .26s cubic-bezier(.22,.61,.36,1); }
.brand-logo { transition: height .26s cubic-bezier(.22,.61,.36,1); }
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 93%, transparent);
  box-shadow: 0 12px 30px -20px rgba(35,42,107,.5);
}
.site-header.scrolled .nav { height: 60px; }
.site-header.scrolled .brand-logo { height: 40px; }

/* project cards — slow image zoom + caption settle on hover */
.proj-img { transition: transform .55s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.proj:hover .proj-img { transform: scale(1.05); }
.proj-cap { transition: padding-bottom .26s ease; }
.proj:hover .proj-cap { padding-bottom: 22px; }

/* process — the connecting rule draws itself in as each step reveals */
@media (prefers-reduced-motion: no-preference) {
  html.js .step { position: relative; border-top-color: var(--line-2); }
  html.js .step::after {
    content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 100%;
    background: var(--ink); transform: scaleX(0); transform-origin: left;
    transition: transform .7s cubic-bezier(.22,.61,.36,1);
  }
  html.js .step.in::after { transform: scaleX(1); }
}
