/* ==========================================================================
   KÜHNEZUG AG — globals
   Base element styles and the typographic role map. Components never set
   font-family themselves; they pick up a role from here.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--draft-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--draft-major) 1px, transparent 1px),
    linear-gradient(var(--draft-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--draft-minor) 1px, transparent 1px);
  background-size: var(--grid-major) var(--grid-major), var(--grid-major) var(--grid-major), var(--grid-minor) var(--grid-minor), var(--grid-minor) var(--grid-minor);
  background-position: center top;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

/* role: display — headings and big numerals */
h1, h2, h3, h4, h5,
.mm-link, .curtain__logo, .stat__num, .big-num, .industry figcaption, .gallery__cap,
.lightbox figcaption, .footer__mega, .popup-slide__cap, .pillar-quote {
  font-family: var(--font-display);
}
h1, h2, h3, h4, h5 { line-height: 1.08; margin: 0; letter-spacing: -0.02em; font-weight: 800; }

/* role: mono — labels, indices, dates, machine-ish metadata */
.eyebrow, .mm-link small, .hero__count, .scroll-cue, .breadcrumb, .card__index, .matrix th,
.matrix td[data-label]::before, .partner__head small, .post__date, .industry figcaption small,
.footer h4, .popup-slide__cap small, .group-logo span, .office__foot,
.step small, .service-row__num, .gallery__tag, .lightbox__count, .office-mini small,
.crane-sketch text {
  font-family: var(--font-mono);
}
