/* starep GmbH – Mobilwerkstatt für Linienbusse & LKW */

@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }

:root {
  /* Brand colours sampled from the starep logo */
  --teal: #43797e;
  --teal-dark: #2f5c60;
  --teal-light: #e6eff0;
  --ink: #1d1d1b;
  --ink-soft: #3b3b38;
  --muted: #6b6b66;
  --line: #dcdcd6;
  --paper: #ffffff;
  --paper-alt: #f4f4f1;

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Barlow", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 10vw, 128px);
  --header-h: 76px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 16px; z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

/* ---------- Brand motif: the stripes + arrow from the logo ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 14px; flex: none;
  background: repeating-linear-gradient(115deg, currentColor 0 4px, transparent 4px 9px);
}
.eyebrow--light { color: #9cc6c9; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px;
  padding: 12px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--teal-dark); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
}
.brand { display: block; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav ul a:hover { border-color: var(--teal); color: var(--ink); }
.nav .btn { min-height: 44px; padding: 8px 18px; font-size: 1rem; color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background-color .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 20px; min-height: 50px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--ink);
  isolation: isolate;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg img {
  width: 100%; height: calc(100% + 120px); margin-top: -60px;
  object-fit: cover; object-position: center 40%;
  transform: translate3d(0, var(--hero-shift, 0px), 0);
  will-change: transform;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20,22,21,.92) 0%, rgba(20,22,21,.78) 45%, rgba(20,22,21,.35) 100%);
}
.hero .wrap {
  min-height: min(82vh, 760px);
  min-height: min(82svh, 760px);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(72px, 12vw, 140px);
  padding-bottom: clamp(88px, 14vw, 160px);
}
.hero h1 {
  font-size: clamp(2.9rem, 7.4vw, 5.8rem);
  text-transform: uppercase;
  max-width: 15ch;
}
.hero h1 em { font-style: italic; color: #8fc0c4; font-weight: 600; }
.hero .lead {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  max-width: 44ch;
  color: rgba(255,255,255,.86);
  margin: 26px 0 36px;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* stripes + arrow running along the bottom of the hero */
.hero-rule {
  position: absolute; left: 0; right: 0; bottom: 34px;
  display: flex; align-items: center; gap: 0;
  padding-left: var(--gutter);
  pointer-events: none;
}
.hero-rule svg { width: min(720px, 90vw); height: auto; color: var(--teal); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--alt { background: var(--paper-alt); }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); text-transform: uppercase; }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; margin: 18px 0 0; }

/* ---------- Leistungen ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0 clamp(24px, 3vw, 40px);
}
.service {
  grid-column: span 2;
  position: relative;
  padding: 30px 0 44px;
  border-top: 2px solid var(--ink);
}
.service .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .1em;
  color: var(--teal-dark);
}
.service svg { display: block; width: 52px; height: 52px; color: var(--ink); margin: 22px 0 20px; }
.service h3 { font-size: 1.85rem; text-transform: uppercase; margin-bottom: 12px; }
.service p { color: var(--ink-soft); margin: 0; max-width: 46ch; }

@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .service { grid-column: auto; }
}
@media (max-width: 640px) {
  .services { grid-template-columns: 1fr; }
  .service { padding: 26px 0 32px; }
}

/* ---------- Über uns ---------- */
.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.about h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); text-transform: uppercase; margin-bottom: 24px; }
.about p { color: var(--ink-soft); margin: 0 0 18px; max-width: 60ch; }
.about .facts {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.about .facts li { border-left: 3px solid var(--teal); padding-left: 14px; line-height: 1.3; }
.about .facts strong { display: block; font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; }
.about .facts span { color: var(--muted); font-size: .95rem; }
.about-media { position: relative; }
.about-media figure { margin: 0; background: #fff; box-shadow: 0 24px 60px -24px rgba(29,29,27,.35); position: relative; }
.about-media img { width: 100%; height: auto; }
.about-media figcaption { font-size: .9rem; color: var(--muted); padding: 12px 16px; border-top: 1px solid var(--line); }
.about-media::before {
  content: ""; position: absolute;
  right: -18px; bottom: -18px; width: 60%; height: 60%;
  background: repeating-linear-gradient(115deg, var(--teal) 0 6px, transparent 6px 16px);
  opacity: .35;
}

@media (max-width: 880px) {
  .about { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .about .facts { gap: 12px; }
  .about .facts li { padding-left: 10px; }
  .about .facts strong { font-size: 1.15rem; }
  .about .facts span { font-size: .85rem; }
}
@media (max-width: 440px) {
  .about .facts { grid-template-columns: 1fr; }
  .about .facts span { font-size: .95rem; }
  .about-media::before { right: -8px; bottom: -8px; }
}

/* ---------- Für wen (icon row, like a client roster) ---------- */
.clients { margin-top: clamp(64px, 9vw, 104px); }
.clients h3 {
  font-size: 1.1rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px; text-align: center;
}
.client-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  background: var(--paper);
}
.client-grid li {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 30px 12px 26px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-soft);
  border-right: 1px solid var(--line);
}
.client-grid li:last-child { border-right: 0; }
.client-grid svg { width: 54px; height: 54px; color: #8a8a84; transition: color .2s; }
.client-grid li:hover svg { color: var(--teal); }

@media (max-width: 880px) {
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .client-grid li { border-bottom: 1px solid var(--line); }
  .client-grid li:nth-child(2n) { border-right: 0; }
  .client-grid li:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

/* ---------- Quote band ---------- */
.quote {
  background: var(--teal);
  color: #fff;
  padding: clamp(56px, 8vw, 96px) 0;
  position: relative; overflow: hidden;
}
.quote-portrait {
  position: absolute; right: 0; top: 0; bottom: 0; width: 42%;
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.quote-portrait img {
  width: auto; height: 100%; max-width: none;
  object-fit: contain; object-position: bottom center;
}
.quote blockquote { margin: 0; position: relative; z-index: 1; }
.quote p {
  font-family: var(--font-display);
  font-style: italic; font-weight: 600;
  font-size: clamp(2rem, 5.2vw, 3.8rem);
  line-height: 1.05;
  margin: 0; max-width: 18ch;
}
.quote cite { display: block; margin-top: 18px; font-style: normal; letter-spacing: .14em; text-transform: uppercase; font-size: .95rem; color: #fff; }

/* Reversed variant – portrait left, quote right */
.quote--reversed { background: var(--ink); }
.quote-portrait--left {
  position: absolute; left: 0; top: 0; bottom: 0; width: 42%;
  right: auto;
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.quote-portrait--left img {
  width: auto; height: 100%; max-width: none;
  object-fit: contain; object-position: bottom center;
}
.quote--reversed .wrap { display: flex; justify-content: flex-end; }
.quote--reversed blockquote { text-align: right; }
.quote--reversed blockquote p { margin-left: auto; }

/* ---------- Warum starep ---------- */
.why {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.why-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px 30px 34px;
  position: relative;
}
.why-card::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--teal);
  transform: scaleX(.18); transform-origin: left; transition: transform .35s ease;
}
.why-card:hover::before { transform: scaleX(1); }
.why-card .num { font-family: var(--font-display); font-weight: 600; color: var(--teal-dark); letter-spacing: .1em; }
.why-card h3 { font-size: 2.2rem; text-transform: uppercase; margin: 14px 0 10px; }
.why-card p { margin: 0; color: var(--ink-soft); }

@media (max-width: 880px) { .why { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); text-transform: uppercase; }
.contact .intro p { color: var(--ink-soft); font-size: 1.15rem; margin: 18px 0 32px; max-width: 42ch; }
.contact-person {
  display: grid; gap: 2px;
  margin: -8px 0 32px; padding-left: 16px;
  border-left: 3px solid var(--teal);
  line-height: 1.3;
}
.contact .intro p.contact-person { margin: -8px 0 32px; font-size: 1rem; }
.contact-person small { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-person strong { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--ink); }
.contact-person span { color: var(--ink-soft); }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a, .contact-list .row {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 16px;
  padding: 22px 0;
  color: var(--ink); text-decoration: none;
}
.contact-list .ico {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--teal-light); color: var(--teal-dark);
}
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list strong { display: block; line-height: 1.15; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 3vw, 1.7rem); letter-spacing: .01em; overflow-wrap: anywhere; }
.contact-list .go { width: 22px; height: 22px; color: var(--teal); transition: transform .2s; }
.contact-list a:hover .go { transform: translateX(4px); }
.contact-list a:hover strong { color: var(--teal-dark); }

@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); font-size: .98rem; }
.site-footer .top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding: 64px 0 48px;
}
.site-footer img { width: 170px; margin-bottom: 18px; }
.site-footer .footer-title {
  margin: 0 0 14px; color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer address { font-style: normal; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 22px 0 28px; font-size: .9rem; color: rgba(255,255,255,.55);
}
.site-footer .legal-links { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.site-footer .credit { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .04em; color: rgba(255,255,255,.55); }
.site-footer .credit:hover { color: #fff; text-decoration: none; }
.site-footer .zfix { height: 11px; width: auto; flex: none; }
.site-footer .zfix path { fill: none; stroke: currentColor; stroke-width: 1.2px; vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
@media (max-width: 880px) { .site-footer .top { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(56px, 8vw, 96px) 0 var(--section); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); text-transform: uppercase; margin-bottom: 36px; }
.legal h2 { font-size: 1.6rem; text-transform: uppercase; margin: 40px 0 10px; }
.legal p, .legal address { color: var(--ink-soft); font-style: normal; margin: 0 0 14px; }
.legal ul { color: var(--ink-soft); margin: 0 0 14px; padding-left: 1.2em; }
.legal li { margin-bottom: 4px; }
.todo { background: #fff4d6; border-left: 3px solid #d9a400; padding: 2px 8px; }

/* ---------- Google Maps (click to load) ---------- */
.map {
  position: relative;
  margin-top: clamp(40px, 6vw, 64px);
  height: clamp(300px, 38vw, 440px);
  background: #dfe8e6;
  border: 1px solid var(--line);
  overflow: hidden;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.map-consent {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 24px;
  color: var(--teal);
  background: linear-gradient(0deg, rgba(223,232,230,.6), rgba(223,232,230,.6)),
    repeating-linear-gradient(0deg, transparent 0 59px, rgba(67,121,126,.08) 59px 60px),
    repeating-linear-gradient(90deg, transparent 0 59px, rgba(67,121,126,.08) 59px 60px);
}
.map-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  max-width: 420px;
  padding: 28px 28px 22px;
  background: var(--paper);
  box-shadow: 0 24px 60px -24px rgba(29,29,27,.35);
  text-align: center;
  color: var(--ink);
}
.map-card .map-title { margin: 0;  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: .02em; }
.map-card small { font-size: .85rem; color: var(--muted); line-height: 1.45; }
.map-card .btn { cursor: pointer; font-size: 1rem; min-height: 46px; }
.map-pin { width: 44px; height: 44px; color: var(--teal); }
.map-pin svg { width: 100%; height: 100%; }
.map.is-loaded .map-consent { display: none; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: 100%; height: 3px;
  background: var(--teal);
  transform-origin: left; transform: scaleX(var(--progress, 0));
  pointer-events: none;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance */
  .js .hero h1 .line { display: block; overflow: hidden; padding-bottom: .04em; }
  .js .hero-in { display: inline-block; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 120ms + 100ms); }
  .js .hero .lead.hero-in, .js .hero .actions.hero-in { display: block; }
  .js .hero .actions.hero-in { display: flex; }
  .js .hero .eyebrow.hero-in { display: inline-flex; }
  .js .hero h1 .hero-in { animation-name: rise-line; }
  .js .hero-rule svg { animation: draw 1.4s cubic-bezier(.6,0,.2,1) .7s both; }

  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  @keyframes rise-line { from { transform: translateY(105%); } to { transform: none; } }
  @keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

  /* Reveal on scroll */
  .js .reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1), clip-path 1s cubic-bezier(.6,0,.2,1);
    transition-delay: var(--delay, 0ms);
  }
  .js .reveal--left { transform: translateX(-48px); }
  .js .reveal--right { transform: translateX(48px); }
  /* Wipe the children, not the observed element: a fully clipped target never reports as intersecting */
  .js .reveal--wipe { transform: none; opacity: 1; }
  .js .reveal--wipe > * { clip-path: inset(0 100% 0 0); transition: clip-path 1s cubic-bezier(.6,0,.2,1); }
  .js .reveal.is-visible, .js .reveal:focus-within { opacity: 1; transform: none; }
  .js .reveal--wipe.is-visible > *, .js .reveal--wipe:focus-within > * { clip-path: inset(-40px); }

  /* Eyebrow stripes slide in with their section head */
  .js .reveal .eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2,.7,.2,1) .25s; }
  .js .reveal.is-visible .eyebrow::before { transform: none; }

  /* Rule above each service draws across */
  .js .service { border-top-color: transparent; }
  .js .service::before {
    content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--ink);
    transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.6,0,.2,1) var(--delay, 0ms);
  }
  .js .service.is-visible::before { transform: none; }

  /* Client icons pop */
  .js .client-grid .reveal { transform: translateY(18px) scale(.96); }
  .js .client-grid .reveal.is-visible { transform: none; }

  /* Why cards: teal bar grows once visible */
  .js .why-card::before { transform: scaleX(0); }
  .js .why-card.is-visible::before { transform: scaleX(.18); transition-delay: calc(var(--delay, 0ms) + .4s); }
  .js .why-card.is-visible:hover::before { transform: scaleX(1); transition-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .scroll-progress { display: none; }
}

/* ---------- Touch devices: no hover-only lifts, bigger targets ---------- */
@media (hover: none) {
  .why-card::before { transform: scaleX(.18); }
}
@media (pointer: coarse) {
  .site-footer li a { display: inline-block; padding: 6px 0; }
}

/* ---------- Forced colours (Windows high contrast) ---------- */
@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .eyebrow::before, .hero-rule, .quote-portrait, .quote-portrait--left, .about-media::before, .scroll-progress { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .hero-bg, .hero-rule, .scroll-progress, .map, .quote-portrait, .quote-portrait--left, .nav-toggle, .skip { display: none !important; }
  .hero { color: #000; background: none; }
  .hero::before { display: none; }
  .hero .wrap { min-height: 0; padding: 0 0 24px; }
  .hero .lead, .hero h1 em { color: #000; }
  .reveal, .reveal > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .section { padding: 24px 0; }
  .site-footer { background: none; color: #000; }
  .site-footer a { color: #000; }
  a[href^="tel:"]::after, a[href^="mailto:"]::after { content: ""; }
}
