/* ==========================================================================
   Fliesen Furchert – Stylesheet
   No inline styles anywhere (Content-Security-Policy "style-src 'self'").
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL 1.1) ----------------------------- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Design tokens ------------------------------------------------- */
:root {
  --paper: #f6f3ee;
  --paper-deep: #ece6dc;
  --surface: #ffffff;
  --ink: #1b1e21;
  --ink-2: #4d535a;
  --line: #e0d8cb;
  --grout: #cfc6b8;

  --clay: #a8471e;
  --clay-strong: #8c3a17;
  --clay-soft: #f3e2d7;
  --petrol: #163a40;
  --petrol-2: #224c53;
  --petrol-3: #3b6a70;
  --sand: #d9c5a3;
  --stone: #e9e2d6;

  --on-dark: #f1f4f2;
  --on-dark-2: #b7c9c7;
  --line-dark: rgba(241, 244, 242, 0.14);

  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-accent: "Instrument Serif", Georgia, "Times New Roman", serif;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --shadow-s: 0 1px 2px rgba(27, 30, 33, 0.06), 0 2px 8px rgba(27, 30, 33, 0.05);
  --shadow-m: 0 2px 6px rgba(27, 30, 33, 0.06), 0 16px 40px rgba(27, 30, 33, 0.1);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

/* ---------- Base ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--clay);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--clay-strong);
}

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

address {
  font-style: normal;
}

::selection {
  background: var(--clay);
  color: #fff;
}

/* Accent words in headings: italic serif, e.g. "Fuge für <em>Fuge</em>." */
.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -0.01em;
  color: var(--clay);
}

/* ---------- Utilities ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
  color: #fff;
}

/* Placeholder for data that is still missing – must be gone before go-live (see README). */
.todo {
  padding: 0 0.3em;
  border-radius: 4px;
  background: repeating-linear-gradient(-45deg, #fff4c2 0 6px, #ffe98a 6px 12px);
  color: #5b4300;
  font-weight: 700;
  outline: 1px dashed #b38b00;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--clay);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: currentColor;
  box-shadow: 18px 0 0 -4px var(--sand);
  margin-right: 12px;
}

.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.section--flush-top {
  padding-top: 0;
}

.section--tint {
  background: var(--paper-deep);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-title {
  font-size: clamp(2rem, 3.2vw + 1rem, 3.25rem);
}

.section-intro {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
}

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease),
    box-shadow 0.2s;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
  transition: transform 0.2s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(168, 71, 30, 0.55);
}

.btn--primary:hover {
  background: var(--clay-strong);
  color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: rgba(27, 30, 33, 0.2);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--light {
  background: var(--on-dark);
  color: var(--petrol);
}

.btn--light:hover {
  background: #fff;
  color: var(--petrol);
  transform: translateY(-1px);
}

.btn--small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

/* ---------- Header -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 238, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(27, 30, 33, 0.35);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand__tagline {
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

.site-nav a:not(.btn) {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.site-nav a:not(.btn):hover {
  background: rgba(27, 30, 33, 0.05);
}

.site-nav a:not(.btn).is-active {
  color: var(--clay);
}

.site-nav .btn {
  margin-left: 12px;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(27, 30, 33, 0.16);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle__bars {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  left: 0;
  margin-left: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.hero__title {
  font-size: clamp(2.6rem, 4.6vw + 1rem, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero__title .accent {
  display: inline-block;
  letter-spacing: -0.015em;
}

.hero__lead {
  max-width: 34em;
  margin-top: 26px;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 0.5vw + 1rem, 1.25rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 600;
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__meta svg {
  width: 18px;
  height: 18px;
  color: var(--clay);
}

/* Tile wall illustration */
.hero__visual {
  position: relative;
  max-width: 520px;
  justify-self: end;
  width: 100%;
}

.tilewall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  aspect-ratio: 5 / 6;
  padding: 6px;
  border-radius: var(--radius-l);
  background: var(--grout);
  box-shadow: var(--shadow-m);
  transform: rotate(1.5deg);
}

.tile {
  position: relative;
  border-radius: 5px;
  background: var(--stone);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* Soft glaze highlight */
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 45%);
}

.tile--paper {
  background: #f8f5f0;
}

.tile--sand {
  background: var(--sand);
}

.tile--petrol {
  background: var(--petrol);
}

.tile--petrol-2 {
  background: var(--petrol-2);
}

.tile--petrol-3 {
  background: var(--petrol-3);
}

.tile--clay {
  background: var(--clay);
}

.tile--petrol::after,
.tile--petrol-2::after,
.tile--petrol-3::after,
.tile--clay::after {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 45%);
}

.tile--lift {
  z-index: 2;
  animation: tile-settle 1.5s 0.5s var(--ease) both;
}

@keyframes tile-settle {
  0% {
    transform: translate(26px, -34px) rotate(-7deg) scale(1.04);
    box-shadow: 0 30px 40px -12px rgba(22, 58, 64, 0.45);
  }
  70% {
    box-shadow: 0 6px 10px -6px rgba(22, 58, 64, 0.3);
  }
  100% {
    transform: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.05);
  }
}

.hero__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-m);
  font-size: 0.875rem;
  line-height: 1.3;
}

.hero__badge strong {
  display: block;
  font-size: 0.9375rem;
}

.hero__badge span {
  color: var(--ink-2);
}

.hero__badge--location {
  left: -28px;
  bottom: 36px;
}

.hero__badge--level {
  right: -18px;
  top: 34px;
}

.hero__badge-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: var(--clay-soft);
  color: var(--clay);
}

.hero__badge-icon svg {
  width: 20px;
  height: 20px;
}

/* Small spirit level in the badge */
.level {
  position: relative;
  width: 64px;
  height: 18px;
  flex: none;
  border-radius: 5px;
  background: #f2c94c;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.level::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 22px;
  height: 10px;
  margin-left: -11px;
  border-radius: 5px;
  background: #d8f0c8;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.level::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 8px;
  height: 6px;
  margin-left: -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  animation: level-bubble 1.5s 0.5s var(--ease) both;
}

@keyframes level-bubble {
  0% {
    transform: translateX(-7px);
  }
  60% {
    transform: translateX(1.5px);
  }
  100% {
    transform: none;
  }
}

/* ---------- USP strip ----------------------------------------------------- */
.usps {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.usps__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.usps__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 24px;
}

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

.usps__item svg {
  width: 26px;
  height: 26px;
  flex: none;
  margin-top: 2px;
  color: var(--clay);
}

.usps__item strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
}

.usps__item span {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- Services ------------------------------------------------------ */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: var(--shadow-s);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.service:hover {
  transform: translateY(-4px);
  border-color: var(--sand);
  box-shadow: var(--shadow-m);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--petrol);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.3s, color 0.3s;
}

.service:hover .service__icon {
  background: var(--petrol);
  color: var(--on-dark);
}

.service__icon svg {
  width: 30px;
  height: 30px;
}

.service h3 {
  font-size: 1.25rem;
}

.service p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.975rem;
}

.services-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 28px;
  padding: 22px 26px;
  border: 1px dashed var(--grout);
  border-radius: var(--radius-m);
  color: var(--ink-2);
  font-size: 0.975rem;
}

.services-note strong {
  color: var(--ink);
}

/* ---------- Patterns (dark section) -------------------------------------- */
.section--dark {
  position: relative;
  background: var(--petrol);
  color: var(--on-dark);
  overflow: hidden;
}

/* Faint tile grid in the background */
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse at 80% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 80% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}

.section--dark > .container {
  position: relative;
}

.section--dark .eyebrow {
  color: var(--sand);
}

.section--dark .eyebrow::before {
  box-shadow: 18px 0 0 -4px var(--petrol-3);
}

.section--dark .section-intro {
  color: var(--on-dark-2);
}

.section--dark .accent {
  color: var(--sand);
}

.patterns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pattern {
  padding: 14px 14px 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.04);
  transition: background-color 0.3s, transform 0.3s var(--ease);
}

.pattern:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-4px);
}

.pattern__art {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 12px;
}

.pattern h3 {
  margin: 20px 10px 0;
  font-size: 1.1875rem;
}

.pattern p {
  margin: 8px 10px 0;
  color: var(--on-dark-2);
  font-size: 0.95rem;
  line-height: 1.55;
}

.patterns-note {
  margin-top: 36px;
  color: var(--on-dark-2);
  text-align: center;
}

.patterns-note a {
  color: var(--on-dark);
  font-weight: 700;
}

.patterns-note a:hover {
  color: #fff;
}

/* ---------- Process ------------------------------------------------------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  counter-increment: step;
}

/* Grout line connecting a step with the next one */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 31px;
  left: 80px;
  right: -12px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--grout) 0 10px, transparent 10px 18px);
}

.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--petrol);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-s);
  font-size: 1.125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.step__num::before {
  content: counter(step, decimal-leading-zero);
}

.step:last-child .step__num {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(168, 71, 30, 0.7);
}

.step h3 {
  font-size: 1.1875rem;
}

.step p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.975rem;
}

/* ---------- About --------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}

/* Monogram made of tiles – replace with a portrait once available (see README) */
.monogram {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 440px;
  aspect-ratio: 1;
  padding: 8px;
  border-radius: var(--radius-l);
  background: var(--grout);
  box-shadow: var(--shadow-m);
  transform: rotate(-1.5deg);
}

.monogram .tile {
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.monogram__letter {
  position: relative;
  z-index: 1;
  font-family: var(--font-accent);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-style: italic;
  line-height: 1;
  color: var(--on-dark);
}

.about__text p + p {
  margin-top: 18px;
}

.about__text > p:not(.eyebrow) {
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.about__text .section-title {
  margin-bottom: 26px;
}

.checklist {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-weight: 600;
}

.checklist svg {
  width: 24px;
  height: 24px;
  flex: none;
  padding: 4px;
  border-radius: 7px;
  background: var(--clay-soft);
  color: var(--clay);
}

/* ---------- Contact ------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact__intro > p:not(.eyebrow) {
  color: var(--ink-2);
}

.contact__intro .section-title {
  margin-bottom: 22px;
}

.contact__prep {
  margin-top: 36px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
}

.contact__prep h3 {
  font-size: 1.0625rem;
}

.contact__prep ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: prep;
}

.contact__prep li {
  display: flex;
  gap: 14px;
  color: var(--ink-2);
  font-size: 0.975rem;
  counter-increment: prep;
}

.contact__prep li::before {
  content: counter(prep);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 7px;
  background: var(--paper-deep);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 800;
}

.contact-card {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-l);
  background: var(--petrol);
  color: var(--on-dark);
  box-shadow: var(--shadow-m);
  overflow: hidden;
}

/* Tile cluster in the top right corner */
.contact-card__deco {
  position: absolute;
  top: -22px;
  right: -22px;
  width: 128px;
  height: 128px;
  opacity: 0.9;
  pointer-events: none;
}

.contact-card > :not(.contact-card__deco) {
  position: relative;
  z-index: 1;
}

.contact-card h3 {
  font-size: 1.5rem;
}

.contact-card__lines {
  display: grid;
  gap: 4px;
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark);
  text-decoration: none;
}

a.contact-line:hover {
  color: #fff;
}

a.contact-line:hover .contact-line__value {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact-line__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--sand);
}

.contact-line__icon svg {
  width: 22px;
  height: 22px;
}

.contact-line__label {
  display: block;
  color: var(--on-dark-2);
  font-size: 0.8125rem;
  font-weight: 600;
}

.contact-line__value {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.area {
  margin-top: 36px;
}

.area h4 {
  color: var(--on-dark-2);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.area ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.area li {
  padding: 6px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.area li:first-child {
  border-color: var(--sand);
  color: var(--sand);
}

/* ---------- Footer -------------------------------------------------------- */
.site-footer {
  padding-block: 56px 36px;
  background: var(--ink);
  color: #c9ccd0;
  font-size: 0.9375rem;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .brand,
.site-footer .brand:hover {
  color: #fff;
}

.site-footer .brand__tagline {
  color: #a3a9af;
}

.site-footer address {
  margin-top: 18px;
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.footer-nav a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--sand);
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  color: #a3a9af;
  font-size: 0.875rem;
}

.site-footer a {
  color: #fff;
}

/* ---------- Sub pages (legal, 404) --------------------------------------- */
.page-hero {
  padding-block: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 56px);
}

.page-hero .section-title {
  font-size: clamp(2.25rem, 3.6vw + 1rem, 3.75rem);
  letter-spacing: -0.035em;
}

.legal {
  max-width: 780px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}

.legal h2 {
  margin: 44px 0 14px;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal h3 {
  margin: 28px 0 10px;
  font-size: 1.0625rem;
}

.legal p,
.legal ul,
.legal address {
  color: var(--ink-2);
}

.legal p + p,
.legal p + ul,
.legal ul + p,
.legal address + p,
.legal p + address {
  margin-top: 14px;
}

.legal ul {
  margin: 14px 0 0;
  padding-left: 1.2em;
}

.legal li + li {
  margin-top: 6px;
}

.legal strong {
  color: var(--ink);
}

.legal .updated {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.error-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  min-height: calc(100vh - var(--header-h) - 220px);
  padding-block: clamp(56px, 8vw, 104px);
}

.error-page__code {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius-l);
  background: var(--grout);
  box-shadow: var(--shadow-m);
}

.error-page__code .tile {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--petrol);
}

.error-page__code .tile--clay {
  color: #fff;
  transform: rotate(-8deg) translateY(10px);
  box-shadow: 0 18px 30px -12px rgba(22, 58, 64, 0.5);
}

/* ---------- Scroll reveal (progressive enhancement, no JS) --------------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }

    @keyframes reveal {
      from {
        opacity: 0;
        transform: translateY(28px);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 1080px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .patterns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .usps__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .usps__item:nth-child(3) {
    border-left: 0;
  }

  .usps__item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }

  .step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 940px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 24px 40px -24px rgba(27, 30, 33, 0.35);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s 0.25s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s;
  }

  .site-nav a:not(.btn) {
    padding: 14px 12px;
    font-size: 1.0625rem;
  }

  .site-nav .btn {
    margin: 12px 0 0;
  }

  .hero__grid,
  .about,
  .contact,
  .error-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__visual {
    justify-self: center;
    max-width: 460px;
    margin-top: 12px;
  }

  .about__visual {
    order: 2;
  }

  .monogram {
    max-width: 360px;
    margin-inline: auto;
  }

  .error-page__code {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .brand__tagline {
    display: none;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .hero__badge--location {
    left: -6px;
    bottom: 20px;
  }

  .hero__badge--level {
    right: -6px;
    top: 20px;
  }

  .services,
  .patterns,
  .usps__list,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .usps__item + .usps__item,
  .usps__item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .usps__item {
    padding: 20px 4px;
  }

  .service {
    padding: 26px 22px;
  }

  .contact__prep {
    padding: 22px;
  }

  .pattern {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 16px;
    padding: 12px;
  }

  .pattern__art {
    grid-row: 1 / span 2;
    border-radius: 10px;
  }

  .pattern h3 {
    margin: 2px 0 0;
    font-size: 1.0625rem;
  }

  .pattern p {
    margin: 6px 0 0;
    font-size: 0.9rem;
  }
}
