/* =========================================================
   Kirchhof Bedachungen – "Schicht für Schicht"
   ========================================================= */
:root {
  --slate-900: #1d2427;
  --slate-800: #263034;
  --slate-700: #354247;
  --slate-500: #6c7b80;
  --sage: #8a9b98;          /* Grünton der bisherigen Seite */
  --paper: #f3efe8;
  --paper-2: #e9e3d8;
  --ink: #1d2427;
  --pink: #e2187f;          /* Kirchhof-Magenta */
  --pink-dark: #b80f66;
  --brick: #a7472f;

  --display: "Archivo", "Arial Narrow", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--pink); color: #fff; }

/* subtle paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typo helpers ---------- */
.h2 {
  font: 800 clamp(2.2rem, 5.2vw, 4.4rem)/.95 var(--display);
  font-stretch: 72%;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0;
}
.h2 em, .hero__title em, .quote em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  font-stretch: 100%;
  color: var(--pink);
  letter-spacing: 0;
}
.h3 { font: 700 1.35rem/1.1 var(--display); font-stretch: 85%; text-transform: uppercase; margin: 0 0 1.2rem; letter-spacing: .02em; }
.kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--slate-500); margin: 0 0 1.2rem;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--pink); }
.kicker--light { color: var(--sage); }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.section-head__note { max-width: 34ch; margin: 0; color: var(--slate-500); }

section { padding: clamp(4.5rem, 10vw, 9rem) var(--gutter); }
section > * { max-width: var(--max); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; gap: .7em;
  padding: 1em 1.6em;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 600 .95rem/1 var(--sans);
  text-decoration: none; border: 1.5px solid var(--bg);
  cursor: pointer;
  transition: transform .35s var(--ease), background .25s, color .25s;
}
.btn span { transition: transform .35s var(--ease); }
.btn:hover span { transform: translate(3px, 3px); }
.btn:hover { transform: translateY(-2px); }
.btn--pink { --bg: var(--pink); }
.btn--pink:hover { --bg: var(--pink-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* =========================================================
   HEADER
   ========================================================= */
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 14px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, padding .3s;
}
/* Blur auf Pseudo-Element, damit das mobile Menü (position: fixed) nicht im Header gefangen ist */
.site-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.site-head.is-scrolled { border-color: rgba(29,36,39,.1); padding-block: 10px; }
.brand { text-decoration: none; display: grid; line-height: 1; }
.brand__word { font: 900 1.65rem/1 var(--display); font-stretch: 80%; letter-spacing: -.01em; }
.brand__sub { font: 600 .62rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--pink); margin-top: 4px; }
.nav { display: flex; gap: 1.8rem; margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--pink);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__jobs { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(226,24,127,.6); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(226,24,127,0); } 100% { box-shadow: 0 0 0 0 rgba(226,24,127,0); } }
.head-call {
  display: inline-flex; align-items: center; gap: .55em; text-decoration: none;
  font-weight: 600; font-size: .92rem; padding: .7em 1.1em; border-radius: 999px;
  background: var(--ink); color: #fff; transition: background .25s;
}
.head-call:hover { background: var(--pink); }
.head-call svg { width: 16px; height: 16px; fill: currentColor; }
.burger { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-template-areas: "text house" "facts house";
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-top: clamp(2.5rem, 6vw, 5rem);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
}
.hero > * { max-width: none; margin: 0; }
.hero__text { grid-area: text; }
.eyebrow { display: flex; align-items: center; gap: .9em; font-weight: 500; color: var(--slate-500); margin: 0 0 1.6rem; font-size: .95rem; }
.pitch {
  display: inline-grid; place-items: center; min-width: 3.4em; height: 2.1em; padding: 0 .6em;
  border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink);
  font: 700 .85rem/1 var(--display); font-variant-numeric: tabular-nums;
}
.hero__title {
  font: 900 clamp(3.6rem, 10.5vw, 9.6rem)/.86 var(--display);
  font-stretch: 68%;
  text-transform: uppercase; letter-spacing: -.02em;
  margin: 0 0 1.8rem;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > * , .hero__title .line { }
.hero__title em { font-size: 1.04em; padding-right: .06em; }
.js .hero__title .line { opacity: 0; transform: translateY(40%); animation: rise 1s var(--ease) forwards; }
.js .hero__title .line:nth-child(2) { animation-delay: .12s; }
.js .hero__title .line:nth-child(3) { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 44ch; margin: 0 0 2.2rem; color: var(--slate-700); }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; }

.hero__house { grid-area: house; position: relative; aspect-ratio: 4 / 5; margin: 0; }
.hero__img {
  position: absolute; inset: 0;
  clip-path: polygon(50% 0, 100% 40%, 100% 100%, 0 100%, 0 40%);
  overflow: hidden; background: var(--slate-700);
}
.hero__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.hero__house:hover .hero__img img { transform: scale(1.02); }
.hero__outline {
  position: absolute; left: 0; top: -14px; width: 100%; height: calc(100% + 14px); overflow: visible; z-index: 2; pointer-events: none;
}
.hero__outline polyline {
  fill: none; stroke: var(--pink); stroke-width: 3.5; vector-effect: non-scaling-stroke;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 2000; stroke-dashoffset: 2000;
  animation: draw 1.8s .4s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.stamp {
  position: absolute; left: -46px; bottom: 9%; width: 150px; height: 150px; z-index: 3;
  background: var(--paper); border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 14px 40px -12px rgba(29,36,39,.35);
}
.stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.stamp text { font: 700 16px var(--sans); fill: var(--ink); }
.stamp__k { font: 900 3.2rem/1 var(--display); font-stretch: 70%; color: var(--pink); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__facts {
  grid-area: facts; list-style: none; padding: 1.6rem 0 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  border-top: 1px solid rgba(29,36,39,.15);
}
.hero__facts li { display: grid; gap: .3rem; }
.hero__facts strong { font: 800 clamp(1.8rem, 3vw, 2.6rem)/1 var(--display); font-stretch: 75%; }
.hero__facts span { font-size: .82rem; line-height: 1.35; color: var(--slate-500); }

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
}
.about > * { max-width: none; margin: 0; }
.about__media { position: relative; }
.about__media::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: var(--radius);
  background: repeating-linear-gradient(-24deg, var(--pink) 0 2px, transparent 2px 14px);
  opacity: .5;
}
.about__media img { position: relative; border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; object-position: 70% 40%; width: 100%; }
.about__caption {
  position: absolute; right: -14px; bottom: 28px; margin: 0;
  background: var(--ink); color: #fff; padding: .9rem 1.2rem; border-radius: 10px;
  font: 700 1.05rem/1.2 var(--display); font-stretch: 85%; text-transform: uppercase;
}
.about__caption span { font: 400 .78rem/1.3 var(--sans); text-transform: none; color: var(--sage); }
.quote {
  margin: 0 0 2rem; font: 700 clamp(1.7rem, 3.2vw, 2.6rem)/1.08 var(--display); font-stretch: 78%;
  text-transform: uppercase; letter-spacing: -.005em;
}
.about__text p { color: var(--slate-700); max-width: 58ch; }

/* =========================================================
   VALUES – Biberschwanz tiles
   ========================================================= */
.values { background: var(--slate-800); color: var(--paper); position: relative; overflow: hidden; }
.values::after { /* faint roof pattern */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background:
    radial-gradient(ellipse 40px 26px at 50% 0, transparent 96%, #fff 100%) 0 0 / 80px 44px,
    radial-gradient(ellipse 40px 26px at 50% 0, transparent 96%, #fff 100%) 40px 22px / 80px 44px;
}
.tiles {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  position: relative; z-index: 1;
}
.tile {
  position: relative;
  background: var(--slate-700);
  padding: 2.2rem 1.8rem 4.6rem;
  margin-right: -14px;
  border-radius: 10px 10px 50% 50% / 10px 10px 22% 22%;
  box-shadow: -14px 18px 30px -18px rgba(0,0,0,.6);
  transition: transform .5s var(--ease), background .3s;
}
.tile:nth-child(odd) { transform: translateY(40px); }
.tile:nth-child(1) { z-index: 4; } .tile:nth-child(2) { z-index: 3; } .tile:nth-child(3) { z-index: 2; } .tile:nth-child(4) { z-index: 1; margin-right: 0; }
.tile:hover { transform: translateY(-10px); background: #3e4c52; z-index: 5; }
.tile:nth-child(odd):hover { transform: translateY(26px); }
.tile--pink { background: var(--pink); }
.tile--pink:hover { background: var(--pink-dark); }
.tile__no { font: 700 .8rem/1 var(--display); letter-spacing: .15em; color: var(--sage); }
.tile--pink .tile__no { color: rgba(255,255,255,.7); }
.tile h3 { font: 800 clamp(1.6rem, 2.4vw, 2.2rem)/1 var(--display); font-stretch: 72%; text-transform: uppercase; margin: .9rem 0 1rem; }
.tile p { margin: 0; font-size: .95rem; color: rgba(243,239,232,.8); }
.tile--pink p { color: #fff; }

/* =========================================================
   SERVICES – Dachquerschnitt
   ========================================================= */
.layers {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  grid-template-areas: "fig list" "detail detail";
  gap: 2rem clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.layers > * { min-width: 0; }
.layers__figure { grid-area: fig; position: relative; }
.roof { width: 100%; height: auto; overflow: visible; }
.layer { transition: opacity .45s var(--ease), transform .55s var(--ease), filter .45s; cursor: pointer; }
.roof.has-active .layer { opacity: .28; filter: saturate(.3); }
.roof.has-active .layer.is-on { opacity: 1; filter: drop-shadow(0 -8px 14px rgba(29,36,39,.28)); transform: translateY(-14px); }
.roof .tiles-svg path { transition: fill .3s; }
.hs { cursor: pointer; }
.hs circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; transition: fill .25s, r .25s; }
.hs text { font: 700 13px var(--display); text-anchor: middle; fill: var(--ink); pointer-events: none; }
.hs.is-on circle, .hs:hover circle { fill: var(--pink); stroke: var(--pink); }
.hs.is-on text, .hs:hover text { fill: #fff; }
.roof.mode-service .layer { opacity: 1; filter: none; }

.layers__list { grid-area: list; display: grid; gap: 2px; }
.svc {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.1rem; border-radius: 10px;
  font: 700 clamp(1.1rem, 1.7vw, 1.45rem)/1.1 var(--display); font-stretch: 80%; text-transform: uppercase;
  color: var(--slate-500);
  transition: background .25s, color .25s, padding .35s var(--ease);
}
.svc__no {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid currentColor; font-size: .8rem; font-stretch: 100%;
}
.svc:hover { color: var(--ink); padding-left: 1.5rem; }
.svc.is-active { background: var(--ink); color: var(--paper); padding-left: 1.5rem; }
.svc.is-active .svc__no { background: var(--pink); border-color: var(--pink); color: #fff; }
.svc:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

.detail {
  grid-area: detail;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 0;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(29,36,39,.45);
}
.detail__img { position: relative; min-height: 260px; background: var(--slate-700); }
.detail__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform .8s var(--ease); }
.detail.is-swapping .detail__img img { opacity: 0; transform: scale(1.04); }
.detail__body { padding: clamp(1.6rem, 3.5vw, 3rem); transition: opacity .3s; }
.detail.is-swapping .detail__body { opacity: 0; }
.detail__title { font: 800 clamp(1.8rem, 3vw, 2.6rem)/1 var(--display); font-stretch: 72%; text-transform: uppercase; margin: 0 0 1rem; }
.detail__text { color: var(--slate-700); margin: 0 0 1.4rem; }
.detail__tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.detail__tags li { font-size: .8rem; font-weight: 600; padding: .45em .9em; border-radius: 999px; background: var(--paper); color: var(--slate-700); }

.expertise { margin-top: clamp(3rem, 6vw, 5rem); }
.expertise__row { display: flex; gap: 1rem; flex-wrap: wrap; }
.exp-card {
  display: flex; align-items: center; gap: 1rem; text-decoration: none;
  background: #fff; border-radius: 12px; padding: .6rem 1.4rem .6rem .6rem;
  border: 1px solid rgba(29,36,39,.08); transition: transform .35s var(--ease), box-shadow .35s;
}
.exp-card img { width: 120px; height: 54px; object-fit: cover; border-radius: 8px; }
.exp-card span { font-weight: 600; }
.exp-card i { font-style: normal; font-size: .75rem; color: var(--pink); margin-left: .4em; }
.exp-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(29,36,39,.4); }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects { background: var(--slate-900); color: var(--paper); }
.projects .section-head__note { color: var(--sage); }
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 230px); grid-auto-flow: dense; gap: 12px;
}
.g {
  all: unset; cursor: zoom-in; position: relative; overflow: hidden; border-radius: 10px; background: var(--slate-700);
}
.g--tall { grid-row: span 2; }
.g--wide { grid-column: span 2; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; filter: saturate(.85); }
.g::after {
  content: "+"; position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pink); color: #fff; font: 400 1.5rem/1 var(--sans);
  transform: scale(0); transition: transform .4s var(--ease);
}
.g:hover img { transform: scale(1.06); filter: saturate(1.05); }
.g:hover::after, .g:focus-visible::after { transform: scale(1); }
.g:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.insta {
  display: inline-flex; gap: .5em; align-items: baseline; margin-top: 2.2rem; text-decoration: none; color: var(--sage);
  border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: color .25s;
}
.insta b { color: var(--paper); font-weight: 600; }
.insta:hover { color: var(--pink); }
.projects > .insta { display: flex; width: fit-content; margin-left: max(0px, calc((100% - var(--max)) / 2)); }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
}
.lightbox::backdrop { background: rgba(18,22,24,.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 84vh; border-radius: 8px; object-fit: contain; }
.lightbox button {
  position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--paper); color: var(--ink); font-size: 1.2rem; transition: background .2s, color .2s;
}
.lightbox button:hover { background: var(--pink); color: #fff; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; translate: 0 -50%; }
.lb-next { right: 20px; top: 50%; translate: 0 -50%; }

/* =========================================================
   JOBS
   ========================================================= */
.jobs { background: var(--paper-2); }
.jobs__intro { display: grid; gap: 0; }
.jobs__intro > p:last-child { max-width: 60ch; color: var(--slate-700); margin-top: 1.6rem; }
.week {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-block: clamp(2.5rem, 5vw, 4rem);
}
.day {
  position: relative; aspect-ratio: 1 / 1.15; border-radius: 12px; padding: .9rem;
  display: flex; flex-direction: column; justify-content: space-between;
  font: 800 clamp(1rem, 2.4vw, 1.8rem)/1 var(--display); font-stretch: 75%; text-transform: uppercase;
}
.day.on { background: var(--ink); color: var(--paper); }
.day.on::after { /* roofing hammer stripes */
  content: ""; height: 6px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--sage) 0 10px, transparent 10px 14px);
}
.day.off { background: var(--pink); color: #fff; }
.day.off i { font: italic 400 clamp(1rem, 2.2vw, 1.7rem)/1 var(--serif); text-transform: none; }
.js .day { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .6s var(--ease); }
.js .week.in .day { opacity: 1; transform: none; }
.js .week.in .day:nth-child(2) { transition-delay: .06s; } .js .week.in .day:nth-child(3) { transition-delay: .12s; }
.js .week.in .day:nth-child(4) { transition-delay: .18s; } .js .week.in .day:nth-child(5) { transition-delay: .34s; }
.js .week.in .day:nth-child(6) { transition-delay: .40s; } .js .week.in .day:nth-child(7) { transition-delay: .46s; }

.jobs__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.perks { list-style: none; padding: 0; margin: 0; counter-reset: p; }
.perks li {
  counter-increment: p; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem;
  padding: 1.1rem 0; border-top: 1px solid rgba(29,36,39,.14); color: var(--slate-700);
}
.perks li::before { content: counter(p, decimal-leading-zero); grid-row: span 2; font: 700 .8rem/1.9 var(--display); color: var(--pink); letter-spacing: .1em; }
.perks b { display: block; color: var(--ink); font: 700 1.15rem/1.3 var(--display); font-stretch: 85%; text-transform: uppercase; }
.checks { list-style: none; padding: 0; margin: 0 0 2rem; }
.checks li { position: relative; padding: .5rem 0 .5rem 2rem; color: var(--slate-700); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .85rem; width: 16px; height: 9px;
  border-left: 2.5px solid var(--pink); border-bottom: 2.5px solid var(--pink); transform: rotate(-45deg);
}
.jobs__side { position: sticky; top: 100px; }
.apply { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 1.8rem; display: grid; gap: 1rem; justify-items: start; }
.apply p { margin: 0; color: var(--sage); }
.apply strong { color: var(--paper); font-size: 1.1rem; }
.apply__tel { font-size: .9rem; color: var(--sage); }

/* =========================================================
   PARTNERS
   ========================================================= */
.partners { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.partners .kicker { display: flex; }
.partners__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.partners__row a {
  aspect-ratio: 16 / 7; border-radius: 10px; background: #fff var(--logo) center / contain no-repeat;
  border: 1px solid rgba(29,36,39,.08);
  filter: grayscale(1) contrast(1.05); opacity: .75;
  transition: filter .35s, opacity .35s, transform .35s var(--ease);
}
.partners__row a:hover { filter: none; opacity: 1; transform: translateY(-3px); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  background: var(--slate-800); color: var(--paper);
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem);
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2));
}
.contact > * { max-width: none; margin: 0; }
.contact { align-items: center; }
.contact__lead { color: var(--sage); max-width: 40ch; margin: 1.8rem 0 2.2rem; }
.contact__address {
  font-style: normal; line-height: 1.7; color: var(--sage);
  padding-left: 1.2rem; border-left: 2px solid var(--pink);
}
.contact__address strong { display: block; color: var(--paper); }
.maplink { display: block; width: fit-content; margin-top: .8rem; color: var(--paper); font-size: .9rem; font-weight: 600; transition: color .2s; }
.maplink:hover { color: var(--pink); }

.contact__cards { list-style: none; padding: 0; display: grid; gap: 12px; }
.ccard {
  position: relative; display: grid; gap: .5rem; text-decoration: none;
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.4rem, 3vw, 2.4rem);
  padding-right: 4.5rem;
  border-radius: var(--radius); background: var(--slate-700); color: var(--paper);
  transition: transform .4s var(--ease), background .3s;
}
.ccard:hover { transform: translateX(8px); background: #3e4c52; }
.ccard--pink { background: var(--pink); }
.ccard--pink:hover { background: var(--pink-dark); }
.ccard__label { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.ccard__value { font: 800 clamp(1.7rem, 4vw, 3rem)/1 var(--display); font-stretch: 72%; letter-spacing: -.005em; }
.ccard__value--mail { font-size: clamp(1.15rem, 2.6vw, 2rem); font-stretch: 80%; overflow-wrap: anywhere; }
.ccard__arrow {
  position: absolute; right: clamp(1.2rem, 2.5vw, 2rem); top: 50%; translate: 0 -50%;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid currentColor; font-size: 1.1rem; transition: transform .4s var(--ease);
}
.ccard:hover .ccard__arrow { transform: rotate(45deg); }
.ccard:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

/* =========================================================
   FOOTER
   ========================================================= */
.foot { background: var(--slate-900); color: var(--sage); padding: 0 var(--gutter) 2rem; overflow: hidden; }
.foot__big {
  font: 900 clamp(5rem, 22vw, 22rem)/.8 var(--display); font-stretch: 62%; text-align: center;
  color: transparent; -webkit-text-stroke: 1.5px rgba(243,239,232,.14);
  padding-top: 3rem; letter-spacing: -.02em; user-select: none;
  background: linear-gradient(transparent 55%, var(--pink) 55% 57%, transparent 57%);
  -webkit-background-clip: text; background-clip: text;
}
.foot__row {
  max-width: var(--max); margin: 1.6rem auto 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: .88rem; border-top: 1px solid rgba(243,239,232,.1); padding-top: 1.4rem;
}
.foot nav { display: flex; gap: 1.4rem; }
.foot a { text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--pink); }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav { gap: 1.2rem; }
  .head-call span { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
  .tile:nth-child(odd) { transform: none; }
  .tile:nth-child(even) { transform: translateY(40px); }
  .tile:nth-child(2) { margin-right: 0; }
  .layers { grid-template-columns: 1fr; grid-template-areas: "fig" "list" "detail"; }
  .layers__list { grid-template-columns: repeat(3, 1fr); }
  .svc { font-size: 1rem; padding: .8rem; }
  .svc:hover, .svc.is-active { padding-left: .8rem; }
  .partners__row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .burger {
    display: grid; gap: 6px; margin-left: auto; width: 44px; height: 44px; place-content: center;
    background: var(--ink); border: 0; border-radius: 50%; cursor: pointer; z-index: 2;
  }
  .burger span { width: 18px; height: 2px; background: #fff; transition: transform .3s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .head-call { margin-left: auto; padding: .75em; }
  .head-call + .burger { margin-left: 0; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: flex-start; gap: .6rem;
    padding: 0 var(--gutter); background: var(--slate-900); margin: 0;
    clip-path: polygon(50% 0, 50% 0, 50% 0); transition: clip-path .6s var(--ease);
  }
  .nav.open { clip-path: polygon(-100% 0, 50% -60%, 200% 0, 200% 200%, -100% 200%); }
  .nav a { color: var(--paper); font: 900 clamp(2.4rem, 11vw, 3.6rem)/1.05 var(--display); font-stretch: 70%; text-transform: uppercase; }
  .brand { position: relative; z-index: 2; }
  .site-head:has(.nav.open) .brand { color: var(--paper); }

  .hero { grid-template-columns: 1fr; grid-template-areas: "text" "house" "facts"; }
  .hero__house { max-width: 520px; width: 100%; justify-self: center; }
  .stamp { width: 112px; height: 112px; left: -8px; }
  .stamp text { font-size: 17px; }
  .stamp__k { font-size: 2.4rem; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; margin-right: 22px; }
  .about__caption { right: -10px; }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .detail__img { min-height: 0; aspect-ratio: 845 / 380; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .jobs__grid { grid-template-columns: 1fr; }
  .jobs__side { position: static; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile:nth-child(even) { transform: none; margin-right: 0; margin-bottom: -30px; padding-bottom: 4rem; }
  .layers__list { grid-template-columns: 1fr; }
  .week { gap: 4px; }
  .day { padding: .45rem; border-radius: 8px; aspect-ratio: auto; height: 84px; }
  .day.on::after { height: 4px; }
  .partners__row { grid-template-columns: repeat(2, 1fr); }
  .hero__facts { gap: .6rem; }
  .hero__facts span { font-size: .74rem; }
  .eyebrow { font-size: .85rem; }
  .lb-prev, .lb-next { top: auto !important; bottom: 20px; translate: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
