/* Mur og Puss – static rebuild of murogpuss.no
   Colours, type scale and spacing taken from the original Framer design tokens. */

@font-face { font-family: "Supreme"; src: url("../fonts/supreme-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Supreme"; src: url("../fonts/supreme-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Supreme"; src: url("../fonts/supreme-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-700-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #010111;        /* headings, dark buttons */
  --text: #555;          /* body copy */
  --red: #bd2330;        /* brand red: labels, accents */
  --red-soft: rgba(189, 35, 48, .12);
  --grey: #f6f7f9;       /* light section background */
  --line: rgba(1, 1, 17, .1);
  --white: #fff;
  --radius: 8px;
  --container: 1296px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 8vw, 120px);
  --font: "Supreme", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); font-weight: 500; text-transform: uppercase; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.btn-row { display: flex; justify-content: center; margin-top: 48px; }
.rounded { border-radius: var(--radius); width: 100%; object-fit: cover; }

/* ---------- type scale (Framer presets) ---------- */
.h1 { font-size: clamp(40px, 5vw, 70px); line-height: 1.1; letter-spacing: -2px; }
.h2 { font-size: clamp(32px, 3.9vw, 56px); line-height: 1.3; letter-spacing: -2px; }
.h3 { font-size: clamp(24px, 2.5vw, 36px); line-height: 1.4; letter-spacing: -1px; }
.lead { font-size: 18px; line-height: 1.7; margin-top: 16px; color: var(--text); }
.lead strong { color: var(--ink); font-weight: 700; }

.label { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: var(--red); text-transform: uppercase; margin-bottom: 16px; }
.label::before { content: ""; width: 10px; height: 10px; border: 1px solid var(--red); border-radius: 50%; }
.label--center { justify-content: center; }

/* ---------- buttons: pill with round arrow badge ---------- */
.btn { display: inline-flex; align-items: center; gap: 16px; padding: 4px 4px 4px 22px; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1; text-transform: uppercase; letter-spacing: .02em; border: 2px solid var(--ink); transition: background .2s, color .2s; white-space: nowrap; }
.btn i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; transition: transform .25s; }
.btn svg { width: 20px; height: 20px; }
.btn:hover i { transform: rotate(45deg); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark i { background: #fff; color: var(--ink); }
.btn--dark:hover { color: #fff; background: #1d1d2e; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light i { background: var(--ink); color: #fff; }
.btn--light:hover { color: var(--ink); background: #f0f0f0; }
.btn--red i { background: var(--red); }
.btn--red:hover i { transform: none; }
.btn--sm { font-size: 13px; padding-left: 18px; }
.btn--sm i { width: 38px; height: 38px; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 20; background: #fff; }
.site-header--overlay { position: absolute; inset: 0 0 auto; background: transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.site-header--overlay .header-inner { border-bottom-color: rgba(255, 255, 255, .25); }
.logo img { width: clamp(180px, 20vw, 280px); height: auto; border-radius: 10px; }
.site-header--overlay .logo img { background: #fff; border-radius: 22px; padding: 6px 10px; }
.main-nav { display: flex; align-items: center; gap: 48px; flex: 1; justify-content: flex-end; }
.main-nav > ul { display: flex; gap: 40px; list-style: none; margin-right: auto; margin-left: auto; }
.main-nav > ul > li > a { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; color: var(--ink); text-transform: uppercase; padding: 10px 0; }
.main-nav > ul > li > a[aria-current] { color: var(--red); }
.site-header--overlay .main-nav > ul > li > a { color: #fff; }
.main-nav svg { width: 16px; height: 16px; }
.has-drop { position: relative; }
.drop { position: absolute; top: 100%; left: -16px; min-width: 240px; list-style: none; background: #fff; border-radius: var(--radius); box-shadow: 0 12px 40px rgba(1, 1, 17, .14); padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.drop a { display: block; padding: 8px 20px; color: var(--ink); font-size: 15px; }
.drop a:hover { color: var(--red); background: var(--grey); }
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.nav-toggle, .nav-burger { display: none; }

@media (max-width: 991.98px) {
  .nav-burger { display: block; width: 44px; height: 44px; cursor: pointer; position: relative; border-radius: 50%; background: var(--ink); }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after { position: absolute; left: 12px; width: 20px; height: 2px; background: #fff; content: ""; transition: .2s; }
  .nav-burger span { top: 21px; }
  .nav-burger span::before { left: 0; top: -6px; }
  .nav-burger span::after { left: 0; top: 6px; }
  .nav-toggle { display: block; position: absolute; opacity: 0; width: 44px; height: 44px; right: var(--gutter); margin: 0; cursor: pointer; z-index: 2; }
  .nav-toggle:checked + .nav-burger span { background: transparent; }
  .nav-toggle:checked + .nav-burger span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked + .nav-burger span::after { top: 0; transform: rotate(-45deg); }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 24px; background: #fff; padding: 16px var(--gutter) 32px; box-shadow: 0 20px 30px rgba(1, 1, 17, .1); }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .main-nav > ul { flex-direction: column; gap: 0; margin: 0; }
  .main-nav > ul > li > a, .site-header--overlay .main-nav > ul > li > a { color: var(--ink); padding: 12px 0; font-size: 18px; }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 8px 12px; min-width: 0; }
  .drop a { padding: 6px 0; color: var(--text); }
  .main-nav .btn { align-self: flex-start; }
}

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section--tight { padding-top: 0; }
.section--grey { background: var(--grey); }
.page-intro { padding-bottom: 48px; }
.section-head { margin-bottom: 56px; }
.section-head--split { display: grid; grid-template-columns: 1fr 3fr; gap: 24px 32px; align-items: start; }
.section-head--split .label { margin-top: 18px; }
@media (max-width: 767.98px) { .section-head--split { grid-template-columns: 1fr; } .section-head--split .label { margin-top: 0; } }

/* ---------- home hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: #222 center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1, 1, 17, .55) 0%, rgba(1, 1, 17, .2) 40%, rgba(1, 1, 17, .55) 100%); }
.hero-inner { position: relative; padding-top: 160px; padding-bottom: clamp(64px, 16vh, 200px); }
.hero-title { color: #fff; font-size: clamp(40px, 5vw, 70px); line-height: 1.1; letter-spacing: -2px; max-width: 14em; }
.hero-title--md { font-size: clamp(28px, 4vw, 56px); max-width: 9.5em; }
.hero-title, .h1, .post-title { overflow-wrap: break-word; hyphens: auto; }
.hero-sub { color: #fff; font-size: 18px; margin-top: 10px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 24px 88px; margin-top: 56px; }

/* ---------- home service cards ---------- */
.svc-grid { display: grid; grid-template-columns: 1.68fr 1fr 1fr; gap: 24px; margin-bottom: 64px; }
.svc-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; color: #fff; }
.svc-card--wide { aspect-ratio: auto; }
.svc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(1, 1, 17, .75)); }
.svc-card:hover { color: #fff; }
.svc-card:hover img { transform: scale(1.04); }
.svc-card-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 40px; }
.svc-card h3 { color: #fff; font-size: clamp(24px, 2.2vw, 36px); line-height: 1.4; letter-spacing: -1px; max-width: 9em; }
.svc-card p { color: rgba(255, 255, 255, .8); font-size: 14px; margin-top: 12px; max-width: 34em; }
@media (max-width: 991.98px) { .svc-grid { grid-template-columns: 1fr 1fr; } .svc-card--wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; } }
@media (max-width: 575.98px) { .svc-grid { grid-template-columns: 1fr; } .svc-card, .svc-card--wide { aspect-ratio: 4 / 3; } .svc-card-text { padding: 24px; } }

/* ---------- about band ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-grid .h2 { margin-bottom: 32px; }
.about-grid img { aspect-ratio: 660 / 682; }
@media (max-width: 767.98px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- process steps ---------- */
.process .section-head--split .h2 { max-width: 15em; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 24px; }
.steps--4 { --cols: 4; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; }
.step-n { font-size: 70px; line-height: 1; letter-spacing: -2px; font-weight: 500; color: var(--red-soft); margin-bottom: 96px; }
.step h3 { font-size: clamp(22px, 2vw, 36px); line-height: 1.4; letter-spacing: -1px; margin-bottom: 20px; }
.step p { font-size: 15px; }
@media (max-width: 1199.98px) { .steps--4 { --cols: 2; } }
@media (max-width: 991.98px) { .steps { --cols: 1; } .steps--4 { --cols: 1; } .step-n { margin-bottom: 40px; } }

/* ---------- project (post) cards ---------- */
.posts { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 48px; margin-bottom: 64px; }
.post-card a { display: block; }
.post-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.25; }
.post-card:nth-child(4n+2) .post-img { aspect-ratio: 16 / 11; }
.post-card:nth-child(4n+3) .post-img { aspect-ratio: 16 / 10; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card a:hover img { transform: scale(1.04); }
.post-date { display: flex; align-items: center; gap: 12px; font-size: 14px; margin: 20px 0 14px; }
.post-date::before { content: ""; width: 36px; height: 1px; background: var(--text); opacity: .6; }
.post-date--center { justify-content: center; }
.post-date--center::before { display: none; }
.post-card h3 { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.4; letter-spacing: -.5px; }
.post-card a:hover h3 { color: var(--red); }
@media (min-width: 768px) {
  /* alternate the wide column like the original: narrow/wide, wide/narrow */
  .posts { grid-template-columns: repeat(10, 1fr); }
  .posts .post-card:nth-child(4n+1) { grid-column: 1 / span 4; }
  .posts .post-card:nth-child(4n+2) { grid-column: 5 / span 6; }
  .posts .post-card:nth-child(4n+3) { grid-column: 1 / span 6; }
  .posts .post-card:nth-child(4n+4) { grid-column: 7 / span 4; }
}
@media (max-width: 767.98px) { .posts { grid-template-columns: 1fr; gap: 48px; } .posts .post-card { grid-column: auto !important; } }

/* ---------- footer CTA + footer card ---------- */
.cta { position: relative; color: #fff; background: #050505 center / cover no-repeat; padding-top: 140px; }
.cta-inner { text-align: center; padding-bottom: 300px; }
.cta-title { color: #fff; font-size: clamp(36px, 3.9vw, 56px); line-height: 1.3; letter-spacing: -2px; max-width: 9.5em; margin: 0 auto 28px; }
.site-footer { position: relative; }
.footer-card { background: #fff; color: var(--text); border-radius: var(--radius) var(--radius) 0 0; padding: 72px 72px 32px; display: grid; grid-template-columns: 1.6fr .8fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { width: 218px; margin-bottom: 24px; border-radius: 6px; }
.footer-brand p { font-size: 15px; max-width: 24em; }
.socials { display: flex; gap: 8px; margin-top: 24px; }
.socials a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); }
.socials a:hover { background: var(--ink); color: #fff; }
.socials svg { width: 16px; height: 16px; }
.socials--dark a { border-radius: 4px; background: var(--ink); color: #fff; border: 0; width: 32px; height: 32px; }
.socials--dark a:hover { background: var(--red); }
.footer-col h3 { font-size: 15px; font-weight: 700; color: var(--red); margin-bottom: 20px; letter-spacing: 0; }
.footer-col ul { list-style: none; display: grid; gap: 10px; font-size: 15px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 16px; color: var(--ink); }
.footer-contact img { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 16px; font-size: 14px; }
@media (max-width: 991.98px) { .footer-card { grid-template-columns: 1fr 1fr; padding: 48px 32px 24px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 575.98px) { .footer-card { grid-template-columns: 1fr; text-align: center; } .footer-brand img { margin: 0 auto 24px; } .footer-brand p { margin: 0 auto; } .socials { justify-content: center; } .footer-contact li { justify-content: center; } .footer-bottom { justify-content: center; } .cta-inner { padding-bottom: 180px; } }

/* ---------- om oss ---------- */
.wide-img img { width: 100%; height: clamp(320px, 45vw, 650px); object-fit: cover; }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-bottom: var(--section); }
.story .h2 { padding-left: 32px; }
.story-text { display: grid; gap: 22px; text-align: center; color: var(--ink); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.duo-small { width: 54%; aspect-ratio: 352 / 532; margin-left: 12%; }
.duo-large { aspect-ratio: 703 / 703; }
.team { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; margin-top: 64px; padding-left: 12%; }
.team h3 { font-size: 20px; line-height: 1.4; letter-spacing: -.5px; }
.team .role { font-size: 15px; margin-top: 4px; }
.team .phone a { color: var(--red); text-decoration: underline; font-size: 15px; }
.values { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.value img { width: 74px; height: 74px; margin-bottom: 96px; opacity: .25; }
.value h3 { font-size: clamp(24px, 2.2vw, 36px); line-height: 1.4; letter-spacing: -1px; margin-bottom: 20px; }
.value p { font-size: 15px; }
@media (max-width: 991.98px) { .story, .duo { grid-template-columns: 1fr; gap: 32px; } .story .h2 { padding: 0; } .story-text { text-align: left; } .team { grid-template-columns: repeat(2, 1fr); padding: 0; } .values { grid-template-columns: 1fr; } .value img { margin-bottom: 40px; } .duo-small { margin: 0; width: 70%; } }
@media (max-width: 575.98px) { .team { grid-template-columns: 1fr; } }

/* ---------- tjenester overview ---------- */
.svc-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.svc-item { background: #fff; border-radius: var(--radius); padding: 24px 24px 28px; display: flex; flex-direction: column; }
.svc-item img { width: 48px; height: 48px; object-fit: contain; margin-bottom: 36px; }
.svc-item h2 { font-family: "Inter", var(--font); font-weight: 700; font-size: 20px; line-height: 1.3; text-transform: none; letter-spacing: -.3px; margin-bottom: 10px; }
.svc-item p { font-family: "Inter", var(--font); font-size: 14px; margin-bottom: 24px; flex: 1; }
.svc-item .btn { align-self: flex-start; }
@media (max-width: 1199.98px) { .svc-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .svc-list { grid-template-columns: 1fr; } }

/* ---------- FAQ (native <details>, no JS) ---------- */
.faq-layout { display: grid; grid-template-columns: 1fr 2.6fr 1fr; gap: 64px; align-items: start; }
.faq-layout > .faq-list { grid-column: 2; }
.faq-side { display: grid; gap: 24px; }
.faq-side img { aspect-ratio: 230 / 300; }
.faq-layout--page { margin-top: 64px; grid-template-columns: 1fr 2.6fr 1fr; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 24px; padding: 28px 0; font-size: clamp(18px, 1.7vw, 24px); font-weight: 500; line-height: 1.4; letter-spacing: -1px; text-transform: uppercase; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-item p { padding: 0 0 32px 40px; font-size: 15px; max-width: 46em; }
@media (max-width: 991.98px) { .faq-layout, .faq-layout--page { grid-template-columns: 1fr; gap: 32px; } .faq-layout > .faq-list { grid-column: auto; } .faq-side img { display: none; } }

/* ---------- service detail ---------- */
.svc-hero-wrap { padding-top: 0; }
.svc-hero { position: relative; border-radius: 0 0 24px 24px; min-height: clamp(520px, 62vw, 870px); padding: clamp(32px, 5vw, 80px) clamp(24px, 3vw, 32px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; color: #fff; background: #333 center / cover no-repeat; overflow: hidden; isolation: isolate; }
.svc-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(1, 1, 17, .55), rgba(1, 1, 17, .05) 70%), linear-gradient(0deg, rgba(1, 1, 17, .5), transparent 40%); }
.svc-hero .hero-sub { max-width: 26em; margin: 0; }
.svc-hero .btn { margin-top: 16px; }
.prose { max-width: calc(780px + 2 * var(--gutter)); color: var(--text); }
.prose h2 { font-size: clamp(30px, 2.8vw, 40px); text-transform: none; letter-spacing: -1px; line-height: 1.3; margin-bottom: 32px; }
.prose h3 { font-size: clamp(22px, 2vw, 28px); text-transform: none; letter-spacing: -.5px; line-height: 1.3; margin: 48px 0 28px; }
.prose h4 { font-size: 22px; line-height: 1.4; letter-spacing: -.5px; margin: 56px 0 8px; }
.prose p { font-size: 15px; margin-bottom: 1em; }
.prose p:has(+ p) { margin-bottom: 0; }
.prose ul { padding-left: 24px; margin-bottom: 1em; font-size: 15px; }
.prose li { margin-bottom: 4px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--red); text-decoration: underline; }
.prose .label + .h1 { margin-bottom: 48px; }
.prose--post p { font-size: 18px; line-height: 1.7; }
.prose--post p:has(+ p) { margin-bottom: 1em; }

/* ---------- project detail ---------- */
.post { padding-top: clamp(48px, 6vw, 96px); }
.post-title { font-size: clamp(32px, 4vw, 56px); line-height: 1.3; max-width: 17em; margin: 0 auto 32px; }
.post-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: #fafafa; border-radius: var(--radius); padding: 48px 70px; margin: 0 0 80px; }
.post-meta dt { font-weight: 700; color: var(--ink); }
.post-meta dd { margin: 4px 0 0; }
.post-hero { aspect-ratio: 1320 / 630; margin-bottom: 64px; }
@media (max-width: 767.98px) { .post-meta { grid-template-columns: 1fr 1fr; padding: 32px; } }

/* ---------- kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info .h1 { margin-bottom: 28px; }
.contact-info .h3 { margin-bottom: 28px; }
.contact-list { list-style: none; display: grid; gap: 22px; color: var(--ink); margin-bottom: 32px; }
.contact-list li { display: flex; gap: 20px; align-items: center; }
.contact-list img { width: 24px; height: 24px; }
.contact-form .h3 { margin-bottom: 24px; }
.form-fallback { font-size: 14px; margin-top: 16px; }
.form-fallback a { color: var(--red); text-decoration: underline; }
@media (max-width: 991.98px) { .contact-grid { grid-template-columns: 1fr; } }

/* native contact form (contact.js + worker/index.js) */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lead-form { display: grid; gap: 20px; }
.form-note { font-size: 14px; }
.req { color: var(--red); }
.opt { font-size: 14px; font-weight: 400; color: var(--text); }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { font-size: 15px; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #8c8c96; border-radius: var(--radius); padding: 12px 16px; min-height: 50px; transition: border-color .2s; }
.field textarea { resize: vertical; min-height: 150px; }
.field select { appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23010111' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center / 18px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--ink); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--red); border-width: 2px; }
.field-hint { font-size: 14px; }
.field-error { font-size: 14px; color: var(--red); font-weight: 500; }
.field-error:empty { display: none; }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin: 3px 0 0; accent-color: var(--ink); }
.field--check label { font-weight: 400; color: var(--text); }
.field--check label a, .form-summary a, .form-done a, .form-failed a { color: var(--red); text-decoration: underline; }
.field--check .field-error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-summary, .form-failed { border: 2px solid var(--red); border-radius: var(--radius); background: var(--red-soft); color: var(--ink); padding: 16px 20px; }
.form-summary ul { margin: 8px 0 0 20px; }
.lead-submit { justify-self: start; cursor: pointer; font-family: inherit; }
.lead-submit[aria-disabled="true"] { opacity: .6; cursor: progress; }
.form-status { font-size: 14px; }
.form-status:empty { display: none; }
.form-done { display: none; background: var(--grey); border-radius: var(--radius); padding: 40px; }
.form-done .h3 { margin-bottom: 16px; }
.form-failed { display: none; margin-top: 20px; }
.form-done.is-shown, .form-done:target, .form-failed.is-shown, .form-failed:target { display: block; }
.contact-form:has(.form-done.is-shown, .form-done:target) :is(.lead-form, .form-fallback) { display: none; }
@media (max-width: 575.98px) { .field-row { grid-template-columns: 1fr; } .form-done { padding: 28px; } }

/* ---------- 404 ---------- */
.notfound-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.big-404 { font-size: clamp(96px, 14vw, 200px); line-height: 1; font-weight: 500; color: var(--ink); letter-spacing: -6px; }
.notfound .h3 { margin: 16px 0 40px; max-width: 18em; }
@media (max-width: 767.98px) { .notfound-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- responsive images ---------- */
/* <picture> wrappers take no box, so the <img> keeps its old place in grids/flex layouts */
picture { display: contents; }
picture > source { display: none; }
.hero, .cta { isolation: isolate; }
.hero-bg, .svc-hero-bg, .cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.hero-bg, .cta-bg { z-index: -1; }
.svc-hero-bg { z-index: -2; }

/* ---------- cookie consent ---------- */
.linklike { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.cc { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin-left: auto; padding: 20px 24px; border-radius: var(--radius); background: #fff; color: var(--ink); box-shadow: 0 8px 32px rgba(1, 1, 17, .25); font-size: 15px; line-height: 1.5; }
.cc[hidden] { display: none; }
.cc-text { margin: 0 0 16px; }
.cc-text a { color: var(--red); text-decoration: underline; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cc .cc-btn { padding: 12px 22px; cursor: pointer; font-family: inherit; }
.cc .cc-btn:focus-visible, .linklike:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
