/* ===========================================================
   John Sanitär AG — "Wir geben Wasser Lebensraum"
   Editorial / deep-water aesthetic
   Fraunces (display) · Hanken Grotesk (body) · DM Mono (labels)
   =========================================================== */

:root {
  --ink: #0c1c28;
  --deep: #0f3a54;
  --sky: #2ba9e0;
  --sky-ink: #15749e;
  --paper: #e8edee;
  --paper-2: #f1f4f5;
  --card: #ffffff;
  --line: rgba(12, 28, 40, 0.12);
  --line-soft: rgba(12, 28, 40, 0.07);
  --muted: #5a6b76;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", monospace;

  --maxw: 1240px;
  --pad: clamp(1.15rem, 4vw, 3.25rem);
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  hyphens: auto;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  font-optical-sizing: auto;
  hyphens: manual;
}

.serif-it {
  font-style: italic;
  font-weight: 400;
}

p { margin: 0; }

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

/* ---- Grain + skip link ---- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  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='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: 0; top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1rem;
  z-index: 200;
  border-radius: 0 0 10px 0;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---- Shared layout primitives ---- */
.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) var(--pad);
  z-index: 2;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--sky-ink);
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.kicker--light { color: rgba(255, 255, 255, 0.82); }

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 {
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem);
}
.section-lede {
  color: var(--muted);
  max-inline-size: 46ch;
  font-size: 1.05rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  will-change: transform;
}
.btn-sky {
  background: var(--sky);
  color: #042231;
  box-shadow: 0 10px 30px -12px rgba(43, 169, 224, 0.8);
}
.btn-sky:hover { background: #4fbce8; transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
.btn-lg { padding: 1.15rem 2rem; font-size: 1.05rem; }

/* ===========================================================
   HEADER
   =========================================================== */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar[data-scrolled="true"] {
  background: rgba(232, 237, 238, 0.92);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(12, 28, 40, 0.6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 120;
}
.brand img {
  width: 42px; height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}
.brand-word {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  transition: color 0.35s var(--ease);
}
.brand-ag { color: var(--sky); }
.topbar[data-scrolled="true"] .brand-word { color: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1.5px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.topbar[data-scrolled="true"] .nav a { color: var(--ink); }
.nav-cta {
  font-family: var(--mono);
  font-size: 0.82rem !important;
  background: var(--sky);
  color: #042231 !important;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-cta:hover { background: #4fbce8; transform: translateY(-1px); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  cursor: pointer;
  z-index: 120;
}
.menu-toggle span {
  width: 20px; height: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.topbar[data-scrolled="true"] .menu-toggle {
  background: rgba(12, 28, 40, 0.06);
  border-color: var(--line);
}
.topbar[data-scrolled="true"] .menu-toggle span { background: var(--ink); }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) clamp(2rem, 5vw, 4rem);
  color: #fff;
  overflow: hidden;
  z-index: 2;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 22, 33, 0.55) 0%, rgba(8, 22, 33, 0.05) 32%, rgba(8, 22, 33, 0.35) 64%, rgba(8, 22, 33, 0.92) 100%),
    radial-gradient(120% 80% at 20% 100%, rgba(15, 58, 84, 0.55), transparent 70%);
}

.hero-inner {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2.25rem, 1rem + 6.2vw, 6.7rem);
  font-weight: 500;
  text-wrap: balance;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}
.hero h1 .serif-it { color: var(--sky); display: inline-block; }
.hero-lead {
  max-inline-size: 52ch;
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.3rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-stats {
  max-width: var(--maxw);
  width: 100%;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  overflow: hidden;
}
.hero-stats > div {
  min-width: 0;
  background: rgba(8, 22, 33, 0.32);
  padding: 1.1rem 1.25rem;
}
.hero-stats dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
}
.hero-stats dd {
  margin: 0.25rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.85rem);
  font-weight: 500;
}

/* ===========================================================
   INTRO
   =========================================================== */
.intro {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) var(--pad);
}
.intro-kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--sky-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.8rem;
}
.drop {
  width: 10px; height: 14px;
  background: var(--sky);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform: rotate(0deg);
  display: inline-block;
}
.intro-statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3.05rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  max-inline-size: 22ch;
  text-wrap: balance;
}
.intro-statement em { font-style: italic; color: var(--sky-ink); }
.intro-statement {
  max-inline-size: 30ch;
}

/* ===========================================================
   LEISTUNGEN
   =========================================================== */
.services { background: var(--paper); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 2vw, 1.75rem);
}
.service-card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -34px rgba(12, 28, 40, 0.55);
}
.service-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.service-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.service-card:hover .service-img img { transform: scale(1.05); }
.service-body { padding: 1.6rem 1.5rem 1.8rem; position: relative; }
.service-no {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--sky-ink);
  letter-spacing: 0.1em;
}
.service-body h3 {
  font-size: 1.55rem;
  margin: 0.35rem 0 0.7rem;
}
.service-body > p { color: var(--muted); margin-bottom: 1.15rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 9px; height: 9px;
  border: 1.5px solid var(--sky);
  border-radius: 50%;
}

/* ---- Wave rule divider ---- */
.wave-rule {
  height: 26px;
  max-width: var(--maxw);
  margin: 0 auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='26' viewBox='0 0 120 26'%3E%3Cpath d='M0 13 C 20 1, 40 1, 60 13 S 100 25, 120 13' fill='none' stroke='%232ba9e0' stroke-width='1.4' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.8;
}

/* ===========================================================
   IMPRESSIONEN
   =========================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.8rem, 1.5vw, 1.25rem);
}
.gal {
  position: relative;
  min-width: 0;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
.gal img {
  width: 100%; height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.gal-tall { grid-row: span 2; }
.gal-tall img { aspect-ratio: 3 / 5; }
.gal:hover img { transform: scale(1.06); }
.gal figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(transparent, rgba(8, 22, 33, 0.82));
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.gal:hover figcaption { transform: translateY(0); opacity: 1; }

/* ===========================================================
   GESCHICHTE — Timeline
   =========================================================== */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.timeline li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1rem, 4vw, 4rem);
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background 0.3s var(--ease);
}
.timeline li:hover { background: var(--paper-2); }
.tl-year {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem);
  font-weight: 500;
  color: var(--sky-ink);
  line-height: 1;
}
.tl-body { min-width: 0; }
.tl-body h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.tl-body p { color: var(--muted); max-inline-size: 60ch; }

/* ===========================================================
   TEAM
   =========================================================== */
.team-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: stretch;
}
.lead-card {
  min-width: 0;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lead-photo {
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.lead-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.lead-body { padding: 1.7rem 1.8rem 2rem; }
.lead-body .kicker { color: var(--sky); }
.lead-body h3 { font-size: 1.9rem; margin-bottom: 0.7rem; }
.lead-body > p { color: rgba(255, 255, 255, 0.78); }
.lead-contact {
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.lead-contact a { color: var(--sky); }
.lead-contact a:hover { text-decoration: underline; }

.people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.person {
  min-width: 0;
  background: var(--card);
  padding: 1.35rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  transition: background 0.25s var(--ease);
}
.person:hover { background: var(--paper-2); }
.avatar {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--sky-ink);
  background: rgba(43, 169, 224, 0.12);
  border: 1px solid rgba(43, 169, 224, 0.3);
}
.person div { min-width: 0; display: flex; flex-direction: column; }
.person strong { font-weight: 600; font-size: 1.02rem; }
.person span { color: var(--muted); font-size: 0.84rem; }

/* ===========================================================
   NOTFALL BAND
   =========================================================== */
.notfall {
  position: relative;
  z-index: 2;
  background:
    radial-gradient(110% 130% at 88% 10%, rgba(43, 169, 224, 0.3), transparent 55%),
    linear-gradient(135deg, var(--ink), var(--deep));
  color: #fff;
  overflow: hidden;
}
.notfall::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 20 C 20 6, 40 6, 60 20 S 100 34, 120 20' fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.06;
  pointer-events: none;
}
.notfall-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.notfall h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.2rem);
  margin: 0.3rem 0 0.9rem;
}
.notfall h2 .serif-it { color: var(--sky); }
.notfall p { color: rgba(255, 255, 255, 0.85); }
.notfall p strong { color: #fff; }

/* ===========================================================
   KONTAKT
   =========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  align-items: stretch;
}
.contact-cards { display: grid; gap: 1rem; align-content: start; }
.contact-card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
a.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(43, 169, 224, 0.5);
  box-shadow: 0 24px 48px -32px rgba(12, 28, 40, 0.5);
}
.cc-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sky-ink);
}
.cc-value { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.cc-note { color: var(--muted); font-size: 0.9rem; }
.contact-card--static { background: var(--paper-2); }

.contact-map {
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 30px 60px -40px rgba(12, 28, 40, 0.5);
  min-height: 360px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}
.footer-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--pad) 2.5rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
}
.footer-brand { min-width: 0; }
.footer-brand img:first-child { width: 54px; margin-bottom: 1.1rem; }
.footer-brand p { max-inline-size: 34ch; font-size: 0.95rem; }
.footer-badge {
  width: 150px;
  height: auto;
  margin-top: 1.5rem;
  background: #fff;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
}
.footer-col h2 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sky);
  margin-bottom: 1rem;
}
.footer-col p { margin-bottom: 0.6rem; font-size: 0.95rem; }
.footer-col nav { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { transition: color 0.2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem var(--pad);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===========================================================
   LEGAL PAGES
   =========================================================== */
.legal-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(8rem, 14vw, 11rem) var(--pad) clamp(2rem, 4vw, 3rem);
}
.legal-hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem);
  margin: 0.4rem 0 1rem;
}
.legal-hero > p { color: var(--muted); max-inline-size: 52ch; }
.legal-body {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(4rem, 8vw, 7rem);
}
.legal-body-inner { max-inline-size: 70ch; }
.legal-body h2 {
  font-size: 1.5rem;
  margin: 2.2rem 0 0.6rem;
}
.legal-body p { color: #3a4954; margin-bottom: 0.8rem; }
.legal-body a { color: var(--sky-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 0.6rem 0 0.4rem;
  font-family: var(--mono);
  font-size: 0.9rem;
}
.legal-back {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--sky-ink) !important;
  text-decoration: none !important;
}
.legal-back:hover { text-decoration: underline !important; }

/* ===========================================================
   SCROLL REVEAL
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 72px; }

  .menu-toggle { display: flex; }
  .topbar[data-scrolled="true"] { background: rgba(232, 237, 238, 0.96); }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 360px);
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.4rem;
    padding: 5rem 2rem 2rem;
    background: var(--ink);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.6);
  }
  .nav[data-open="true"] { transform: translateX(0); }
  .nav a { color: #fff !important; font-size: 1.25rem; font-family: var(--serif); }
  .topbar[data-scrolled="true"] .nav a { color: #fff !important; }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav-cta {
    font-family: var(--mono) !important;
    font-size: 1rem !important;
    margin-top: 0.5rem;
  }

  body.nav-open { overflow: hidden; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gal-tall { grid-row: span 1; }
  .gal img, .gal-tall img { aspect-ratio: 4 / 3; }
  .gal figcaption { opacity: 1; transform: none; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 0.5rem; }
  .tl-year { color: var(--sky-ink); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; }
  .notfall-inner { flex-direction: column; align-items: flex-start; }
}
