:root {
  --ink: #162025;
  --ink-soft: #33434a;
  --paper: #f7f4ed;
  --paper-strong: #fffdf8;
  --stone: #d9d0c1;
  --clay: #a86743;
  --clay-dark: #794326;
  --teal: #1e5a61;
  --teal-soft: #d9ece8;
  --steel: #6c777d;
  --line: rgba(22, 32, 37, 0.14);
  --shadow: 0 24px 70px rgba(22, 32, 37, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 54px);
  color: #fff;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    color 220ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 237, 0.94);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  width: clamp(280px, 24vw, 352px);
  min-width: clamp(280px, 24vw, 352px);
  align-items: center;
  color: #fff;
}

.brand-logo {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: #121f24;
  object-fit: contain;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 180ms ease;
}

.brand:hover .brand-logo {
  transform: translateY(-1px);
}

.site-header.is-scrolled .brand-logo {
  border-color: rgba(22, 32, 37, 0.16);
  box-shadow: 0 16px 34px rgba(22, 32, 37, 0.18);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  border-radius: var(--radius);
  padding: 10px 13px;
  font-size: 0.94rem;
  font-weight: 800;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.site-header.is-scrolled .site-nav a:hover {
  background: var(--teal-soft);
  color: var(--teal);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.site-header.is-scrolled .menu-toggle {
  border-color: rgba(22, 32, 37, 0.16);
  background: var(--paper-strong);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 860px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(14, 25, 31, 0.92), rgba(14, 25, 31, 0.72) 42%, rgba(14, 25, 31, 0.18)),
    linear-gradient(0deg, rgba(14, 25, 31, 0.32), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 800px;
  align-items: center;
  gap: 44px;
  padding: 128px clamp(18px, 4vw, 54px) 128px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1be8e;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 10.8ch;
  margin: 0;
  color: #fff;
  font-size: clamp(3.4rem, 7vw, 6.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.2vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.18;
}

.hero-text {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
  line-height: 1.75;
}

.hero-copy,
.section-heading,
.section-lead,
.service-card,
.project-card,
.planner,
.estimate-panel,
.joint-tool,
.trust-copy,
.contact-copy,
.contact-form {
  min-width: 0;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 13px 19px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--clay);
  color: #fff;
}

.button.primary:hover {
  background: var(--clay-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.button.outline {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button.outline:hover {
  border-color: var(--clay);
  color: var(--clay-dark);
}

.button.small {
  min-height: 42px;
  padding: 10px 13px;
  font-size: 0.9rem;
}

.button.dark {
  width: 100%;
  margin-top: 24px;
  background: var(--ink);
  color: #fff;
}

.hero-panel {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: 132px;
  width: min(410px, calc(100vw - 36px));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(247, 244, 237, 0.93);
  box-shadow: var(--shadow);
  color: var(--ink);
  padding: 22px;
}

.hero-panel h2 {
  font-size: 2.35rem;
  line-height: 1.08;
}

.panel-label {
  margin: 0 0 8px;
  color: var(--steel);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.surface-swatch {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.surface-swatch span {
  min-height: 46px;
  border: 1px solid rgba(22, 32, 37, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.1)),
    var(--swatch);
}

.hero-facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.hero-facts div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.hero-facts dt {
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  font-weight: 800;
}

.trust-strip {
  position: relative;
  z-index: 3;
  display: grid;
  max-width: 1180px;
  grid-template-columns: repeat(3, 1fr);
  margin: -62px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
  color: var(--ink);
  overflow: hidden;
}

.trust-strip div {
  min-height: 124px;
  padding: 24px;
}

.trust-strip div + div {
  border-left: 1px solid var(--line);
}

.trust-strip strong,
.trust-strip span,
.site-footer strong,
.site-footer span {
  display: block;
}

.trust-strip strong {
  font-size: 1.05rem;
}

.trust-strip span {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(18px, 4vw, 54px);
}

.section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1240px;
  margin: 34px auto 0;
}

.section-heading {
  max-width: 860px;
}

.section-lead {
  max-width: 760px;
  margin: 24px 0 0 auto;
  color: var(--ink-soft);
  font-size: 1.14rem;
  line-height: 1.8;
}

.intro-section {
  display: grid;
  max-width: 1220px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 52px;
  margin: 0 auto;
}

.services {
  background: var(--paper-strong);
}

.service-grid {
  display: grid;
  max-width: 1240px;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 48px auto 0;
}

.service-card,
.project-card,
.planner,
.estimate-panel,
.joint-tool,
.trust-cards div,
.faq-list details,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.service-card {
  min-height: 280px;
  padding: 24px;
}

.service-card.highlight {
  display: grid;
  grid-column: span 2;
  grid-row: span 2;
  min-height: 520px;
  overflow: hidden;
  padding: 0;
}

.service-card.highlight img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.service-card-body {
  padding: 24px;
}

.service-card p,
.project-card p,
.process-list p,
.trust-copy p,
.trust-cards span,
.faq-list p,
.contact-copy p,
.joint-tool p,
.estimate-note {
  color: var(--ink-soft);
}

.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 900;
}

.tag {
  display: inline-flex;
  margin: 0 0 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compass-section {
  background:
    linear-gradient(120deg, rgba(30, 90, 97, 0.1), transparent 42%),
    var(--paper);
}

.compass-layout {
  display: grid;
  max-width: 1240px;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 0.9fr);
  gap: 18px;
  margin: 48px auto 0;
}

.planner,
.estimate-panel,
.joint-tool {
  padding: 24px;
}

.planner {
  display: grid;
  gap: 24px;
}

.control-block label {
  display: block;
  margin-bottom: 10px;
  font-weight: 900;
}

.segmented,
.small-segmented {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ebe5d9;
  padding: 5px;
}

.segmented {
  grid-template-columns: repeat(3, 1fr);
}

.small-segmented {
  grid-template-columns: repeat(3, minmax(62px, 1fr));
}

.segmented button,
.small-segmented button,
.radio-stack button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.segmented button,
.small-segmented button {
  min-height: 42px;
  padding: 9px 10px;
}

.segmented button.active,
.small-segmented button.active,
.radio-stack button.active {
  background: var(--ink);
  color: #fff;
}

.range {
  width: 100%;
  accent-color: var(--teal);
}

.radio-stack {
  display: grid;
  gap: 10px;
}

.radio-stack button {
  display: grid;
  gap: 3px;
  min-height: 66px;
  border: 1px solid var(--line);
  padding: 13px;
  text-align: left;
}

.radio-stack small {
  color: currentColor;
  opacity: 0.7;
}

.estimate-panel {
  align-self: start;
  background: var(--teal);
  color: #fff;
}

.estimate-panel .panel-label,
.estimate-panel .estimate-note {
  color: rgba(255, 255, 255, 0.72);
}

.estimate-main {
  margin-top: 8px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 950;
  line-height: 0.98;
}

.estimate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.estimate-meta span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 0.88rem;
  font-weight: 900;
}

.estimate-note {
  margin-top: 22px;
}

.joint-tool {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, 0.65fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: center;
}

.joint-header {
  display: grid;
  gap: 18px;
}

.tile-preview {
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #cfc6b8;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.68) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.68) 2px, transparent 2px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(22, 32, 37, 0.1));
  background-size:
    var(--tile-h, 74px) var(--tile-h, 74px),
    var(--tile-w, 74px) var(--tile-h, 74px),
    100% 100%;
  overflow: hidden;
  transition: background-size 180ms ease;
}

.tile-preview[data-pattern="stagger"] {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.68) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.68) 2px, transparent 2px),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(22, 32, 37, 0.1));
}

.tile-preview[data-pattern="slab"] {
  --tile-w: 190px;
  --tile-h: 112px;
}

.proof-section {
  background: var(--ink);
  color: #fff;
}

.proof-section .eyebrow {
  color: #f1be8e;
}

.project-grid {
  display: grid;
  max-width: 1240px;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin: 48px auto 0;
}

.project-card {
  overflow: hidden;
  background: #fff;
  color: var(--ink);
}

.project-card.large {
  grid-row: span 2;
}

.project-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.project-card.large img {
  height: 580px;
}

.project-card div {
  padding: 22px;
}

.process-section {
  background: var(--paper-strong);
}

.process-list {
  display: grid;
  max-width: 1240px;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 48px auto 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.process-list li {
  min-height: 300px;
  background: var(--paper-strong);
  padding: 26px;
}

.process-list span {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--clay);
  font-weight: 950;
}

.trust-section {
  display: grid;
  max-width: 1240px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: 42px;
  margin: 0 auto;
}

.team-section {
  background: var(--paper-strong);
}

.team-grid {
  display: grid;
  max-width: 1240px;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 42px auto 0;
}

.team-grid article {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 24px;
}

.team-grid p:not(.tag) {
  color: var(--ink-soft);
}

.trust-copy p {
  max-width: 620px;
  font-size: 1.08rem;
  line-height: 1.8;
}

.trust-cards {
  display: grid;
  gap: 12px;
}

.trust-cards div {
  padding: 22px;
}

.trust-cards strong,
.trust-cards span {
  display: block;
}

.trust-cards span {
  margin-top: 8px;
}

.faq-section {
  background: #ebe5d9;
}

.faq-list {
  display: grid;
  max-width: 960px;
  gap: 10px;
  margin: 42px auto 0;
}

.faq-list details {
  padding: 20px 22px;
}

.faq-list summary {
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 900;
}

.faq-list p {
  margin-bottom: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.72fr);
  gap: 42px;
  padding: clamp(72px, 10vw, 128px) clamp(18px, 4vw, 54px);
  background:
    linear-gradient(120deg, rgba(22, 32, 37, 0.88), rgba(22, 32, 37, 0.74)),
    url("assets/fliesen-materialberatung.jpg") center / cover;
  color: #fff;
}

.contact-section .eyebrow {
  color: #f1be8e;
}

.contact-copy {
  max-width: 720px;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.8;
}

.contact-links a {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 16px;
  background: rgba(247, 244, 237, 0.96);
  color: var(--ink);
  padding: 24px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 13px 12px;
  color: var(--ink);
}

.check-label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.45;
}

.check-label input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.check-label a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  font-weight: 900;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 54px);
  background: var(--ink);
  color: #fff;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.64);
}

.site-footer a {
  font-weight: 900;
}

.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  width: min(560px, calc(100vw - 36px));
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.97);
  box-shadow: var(--shadow);
  padding: 18px;
  color: var(--ink);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.page-hero {
  display: grid;
  min-height: 520px;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(14, 25, 31, 0.88), rgba(14, 25, 31, 0.54)),
    var(--page-image, url("assets/fliesen-bad-hero.jpg")) center / cover;
  color: #fff;
  padding: 140px clamp(18px, 4vw, 54px) 72px;
}

.page-hero-inner {
  max-width: 900px;
}

.page-hero h1 {
  max-width: 12ch;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
  line-height: 1.75;
}

.content-grid,
.case-grid,
.knowledge-grid,
.contact-grid,
.legal-content {
  max-width: 1240px;
  margin: 0 auto;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.content-card,
.case-card,
.knowledge-card,
.map-placeholder,
.legal-content {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  padding: 24px;
}

.content-card p,
.case-card p,
.knowledge-card p,
.map-placeholder p,
.legal-content p,
.legal-content li {
  color: var(--ink-soft);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.case-card {
  overflow: hidden;
  padding: 0;
}

.case-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.case-card div {
  padding: 24px;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.7fr);
  gap: 24px;
}

.map-placeholder {
  display: grid;
  min-height: 320px;
  align-content: end;
  background:
    linear-gradient(135deg, rgba(30, 90, 97, 0.12), rgba(168, 103, 67, 0.12)),
    var(--paper-strong);
}

.legal-content {
  max-width: 900px;
  margin-top: 72px;
}

.legal-content h1 {
  max-width: none;
  color: var(--ink);
  font-size: clamp(2.6rem, 5vw, 4.5rem);
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 1.45rem;
  line-height: 1.2;
}

@media (max-width: 1060px) {
  .hero-content {
    min-height: 760px;
    padding-bottom: 320px;
  }

  .hero-panel {
    right: auto;
    bottom: 104px;
    left: clamp(18px, 4vw, 54px);
  }

  .trust-strip,
  .service-grid,
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-section,
  .trust-section,
  .team-grid,
  .content-grid,
  .case-grid,
  .knowledge-grid,
  .contact-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .service-card.highlight {
    grid-column: span 2;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card.large {
    grid-row: auto;
  }

  .project-card.large img {
    height: 420px;
  }

  .joint-tool {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .site-header {
    min-height: 84px;
    gap: 12px;
  }

  .menu-toggle {
    display: flex;
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 80;
  }

  .site-nav {
    position: fixed;
    inset: 84px 12px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-strong);
    color: var(--ink);
    padding: 10px;
    box-shadow: var(--shadow);
  }

  body.menu-open .site-nav {
    display: flex;
  }

  .site-nav a {
    min-height: 48px;
  }

  .brand {
    width: clamp(236px, 62vw, 292px);
    min-width: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    display: block;
    min-height: auto;
    padding-top: 112px;
    padding-bottom: 92px;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: 30px;
  }

  .trust-strip,
  .service-grid,
  .compass-layout,
  .process-list {
    grid-template-columns: 1fr;
  }

  .service-card.highlight {
    grid-column: auto;
  }

  .trust-strip div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .segmented {
    grid-template-columns: 1fr;
  }

  .project-card img,
  .project-card.large img {
    height: 320px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand {
    width: min(246px, calc(100vw - 104px));
  }

  .brand-logo {
    border-radius: 8px;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-panel h2 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-content {
    padding-inline: 16px;
    overflow: hidden;
  }

  .hero-panel {
    left: 16px;
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    padding: 18px;
  }

  .hero-copy,
  .hero-text,
  .hero-actions,
  .section-heading,
  .section-lead,
  .trust-strip,
  .service-grid,
  .compass-layout,
  .project-grid,
  .process-list,
  .faq-list {
    width: 300px;
    max-width: 300px;
  }

  .hero-panel {
    width: 300px;
    max-width: 300px;
  }

  .trust-strip {
    margin-left: 16px;
    margin-right: 0;
  }

  .service-grid,
  .compass-layout,
  .project-grid,
  .process-list,
  .faq-list {
    margin-left: 0;
    margin-right: 0;
  }

  .eyebrow,
  .hero-text,
  .hero-panel h2,
  .trust-strip span,
  .service-card p,
  .project-card p,
  .estimate-note,
  .joint-tool p,
  .faq-list p,
  .contact-copy p {
    overflow-wrap: anywhere;
  }

  .hero-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .button,
  .hero-actions a,
  .contact-links a {
    width: 100%;
  }

  .section,
  .contact-section {
    padding-inline: 16px;
  }

  .service-card.highlight img,
  .project-card img,
  .project-card.large img {
    height: 260px;
  }

  .tile-preview {
    min-height: 240px;
  }

  .site-footer,
  .cookie-consent {
    grid-template-columns: 1fr;
  }

  .site-footer nav,
  .cookie-actions {
    justify-content: flex-start;
  }

  .cookie-consent {
    right: auto;
    left: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
    max-width: 320px;
    padding: 16px;
  }

  .cookie-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
