/* ==========================================================================
   Maschinentechnik Brüll: Demo-Redesign
   Designsprache: Industrial Dark Editorial
   Graphit + gebürsteter Edelstahl + Brüll-Orange (#FB5500 aus dem Logo)
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0d0e10;
  --bg-2: #131518;
  --bg-3: #1a1d21;
  --bg-4: #23272c;
  --line: rgba(230, 234, 240, 0.1);
  --line-strong: rgba(230, 234, 240, 0.2);

  --text: #eceef1;
  --text-2: #b3b8bf;
  --text-3: #868c94;

  --orange: #fb5500;
  --orange-hot: #ff7a2e;
  --orange-deep: #c94400;
  --orange-ink: #140700;

  --steel-hi: #e9ecef;
  --steel-mid: #9aa1a9;
  --steel-lo: #4a5058;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(88px, 12vw, 168px);
  --header-h: 72px;
  --chamfer: 14px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* z-index scale */
  --z-base: 1;
  --z-overlay: 10;
  --z-header: 100;
  --z-menu: 200;
  --z-curtain: 300;
  --z-grain: 400;

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--orange); color: var(--orange-ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.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-link {
  position: fixed; left: 16px; top: -60px; z-index: 999;
  background: var(--orange); color: var(--orange-ink); padding: 10px 16px; font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* Grain overlay (fixed, non-interactive) */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(64px, 8vw, 112px); }
.section--alt { background: var(--bg-2); }
.divider { height: 1px; background: var(--line); }

/* ---------- Typography ---------- */
.display, .h1, .h2, .h3 {
  font-family: var(--font);
  font-weight: 800;
  font-stretch: 72%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
}
.display { font-size: clamp(3rem, 6.5vw, 7rem); }
.h1 { font-size: clamp(2.8rem, 6.6vw, 6.4rem); }
.h2 { font-size: clamp(2.2rem, 4.8vw, 4.4rem); line-height: 0.95; }
.h3 {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.05;
  font-stretch: 80%;
  font-weight: 750;
}
.h4 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.005em; }
.accent { color: var(--orange); }
.lead {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 58ch;
}
.body-copy { color: var(--text-2); max-width: 65ch; }
.body-copy p + p { margin-top: 1.1em; }
.body-copy strong { color: var(--text); font-weight: 600; }
.mono {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--orange);
}
.stack-sm > * + * { margin-top: 16px; }
.stack > * + * { margin-top: 28px; }
.stack-lg > * + * { margin-top: 44px; }

/* Split-text helpers (JS) */
.split-line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.split-inner { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  --chamfer-size: 12px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px;
  padding: 0 28px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - var(--chamfer-size)) 0, 100% var(--chamfer-size), 100% 100%, 0 100%);
  transition: transform 0.25s var(--ease-out), background-color 0.3s, color 0.3s;
  isolation: isolate;
  overflow: hidden;
}
.btn i { font-size: 1.15em; transition: transform 0.35s var(--ease-out); }
.btn:hover i { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--orange); color: var(--orange-ink); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--steel-hi);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn--primary:hover::before { transform: translateY(0); }
.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 0.92rem; --chamfer-size: 9px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 6px;
  transition: border-color 0.3s, color 0.3s;
}
.link-arrow i { color: var(--orange); transition: transform 0.35s var(--ease-out); }
.link-arrow:hover { border-color: var(--orange); }
.link-arrow:hover i { transform: translate(3px, -3px); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  transition: transform 0.5s var(--ease-out), background-color 0.4s, box-shadow 0.4s;
}
.site-header.is-scrolled {
  background: rgba(13, 14, 16, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.menu-open { transform: none; }
.nav {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; transition: transform 0.8s var(--ease-out); }
.brand:hover img { transform: rotate(-30deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-weight: 900; font-stretch: 78%; font-size: 1.5rem; letter-spacing: 0.01em;
  text-transform: uppercase; color: var(--orange);
}
.brand__sub {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-2); margin-top: 4px;
}
.nav__menu { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  font-weight: 600; font-size: 0.95rem;
  color: var(--text-2);
  transition: color 0.25s;
}
.nav__link:hover, .nav__link[aria-current="page"], .nav__item.is-active > .nav__link { color: var(--text); }
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__item.is-active > .nav__link::after { transform: scaleX(1); }
.nav__link .ph-caret-down { font-size: 0.8em; transition: transform 0.3s; }
.nav__item { position: relative; }
.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.82rem; color: var(--text-2);
  transition: color 0.25s;
}
.nav__phone i { color: var(--orange); font-size: 1.1rem; }
.nav__phone:hover { color: var(--text); }

/* Mega menu */
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%;
  width: min(760px, 86vw);
  transform: translate(-50%, 10px);
  opacity: 0; visibility: hidden;
  background: rgba(19, 21, 24, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.55);
  padding: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  transition: opacity 0.3s, transform 0.4s var(--ease-out), visibility 0.3s;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__item--mega:hover .mega,
.nav__item--mega:focus-within .mega,
.nav__item--mega.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__item--mega:hover .ph-caret-down, .nav__item--mega.is-open .ph-caret-down { transform: rotate(180deg); }
.mega__link {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center;
  padding: 12px; transition: background-color 0.25s;
}
.mega__link:hover { background: var(--bg-4); }
.mega__icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--bg-3); color: var(--orange); font-size: 1.35rem;
  transition: background-color 0.25s, color 0.25s;
}
.mega__link:hover .mega__icon { background: var(--orange); color: var(--orange-ink); }
.mega__title { font-weight: 700; font-size: 0.98rem; line-height: 1.25; }
.mega__desc { font-size: 0.82rem; color: var(--text-3); line-height: 1.35; }
.mega__all {
  grid-column: 1 / -1; margin-top: 8px; padding: 14px 12px 6px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 0.92rem;
}
.mega__all i { color: var(--orange); }

/* Burger */
.burger {
  display: none;
  width: 48px; height: 48px; position: relative;
  background: var(--bg-3);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}
.burger span {
  position: absolute; left: 14px; right: 14px; height: 2px; background: var(--text);
  transition: transform 0.4s var(--ease-out), opacity 0.2s;
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 24px; }
.burger span:nth-child(3) { top: 30px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: var(--z-menu);
  background: var(--bg);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s 0.7s;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.7s var(--ease-in-out); }
.mobile-menu__group + .mobile-menu__group { margin-top: 28px; }
.mobile-menu__label { color: var(--text-3); margin-bottom: 10px; display: block; }
.mobile-menu a.mm-big {
  display: block; font-weight: 800; font-stretch: 72%; text-transform: uppercase;
  font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.02;
  padding: 4px 0;
}
.mobile-menu a.mm-big[aria-current="page"] { color: var(--orange); }
.mobile-menu a.mm-small {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-weight: 600;
}
.mobile-menu a.mm-small i { color: var(--orange); }
.mobile-menu__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 14px; }
.site-header.menu-open { z-index: calc(var(--z-menu) + 1); background: transparent; box-shadow: none; backdrop-filter: none; }

/* ---------- HOME HERO ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  min-height: max(100dvh, 640px);
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #08090a;
  --hx: 70%; --hy: 50%; --flash: 0;
}
.hero__bg {
  position: absolute; inset: -4%;
  z-index: -3;
  will-change: transform;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) contrast(1.05) brightness(0.62);
  animation: kenburns 22s var(--ease-in-out) infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.12) translate3d(-1.5%, 0, 0); }
  to { transform: scale(1) translate3d(1%, -1%, 0); }
}
.hero__shade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 9, 10, 0.96) 0%, rgba(8, 9, 10, 0.82) 34%, rgba(8, 9, 10, 0.35) 64%, rgba(8, 9, 10, 0.55) 100%),
    linear-gradient(0deg, rgba(8, 9, 10, 1) 0%, rgba(8, 9, 10, 0) 32%),
    linear-gradient(180deg, rgba(8, 9, 10, 0.8) 0%, rgba(8, 9, 10, 0) 22%);
}
/* Welding arc light that illuminates the scene */
.hero__flash {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at var(--hx) var(--hy), rgba(255, 196, 140, 0.55) 0%, rgba(251, 85, 0, 0.22) 14%, rgba(251, 85, 0, 0) 38%);
  mix-blend-mode: screen;
  opacity: var(--flash);
}
.hero__canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero__content {
  position: relative; z-index: 2;
  width: 100%;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 72px;
}
.hero__copy { max-width: 46rem; }
.hero__title { margin-bottom: 30px; font-stretch: 66%; }
.hero__static { display: block; }
/* Wechselnde Leistung: beide Wörter liegen während des Wechsels in derselben Grid-Zelle */
.hero__rotator {
  display: grid;
  justify-items: start;
  overflow: hidden;
  padding: 0.14em 0 0.08em;
  margin: -0.14em 0 -0.08em;
  white-space: nowrap;
}
.rot-word { grid-area: 1 / 1; display: block; perspective: 700px; }
.rot-char { display: inline-block; will-change: transform; transform-origin: 50% 100%; }
.hero__sub { margin-bottom: 40px; max-width: 34rem; color: #c3c7cd; }
.hero__caption {
  position: absolute; z-index: 2;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-2);
  display: flex; align-items: center; gap: 12px;
  opacity: 0;
  transform: translate(-50%, 0);
  white-space: nowrap;
  pointer-events: none;
}
.hero__caption::before, .hero__caption::after { content: ""; width: 32px; height: 1px; background: var(--line-strong); }

/* ---------- Manifest (home intro) ---------- */
.manifest__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 7fr) minmax(0, 3fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.manifest__text {
  font-size: clamp(1.6rem, 3.1vw, 2.9rem);
  line-height: 1.18;
  font-weight: 600;
  font-stretch: 90%;
  letter-spacing: -0.015em;
}
.manifest__text .w { opacity: 0.16; transition: opacity 0.2s; }
.no-js .manifest__text .w, .manifest__text.is-static .w { opacity: 1; }
.manifest__text .hl { color: var(--orange); }
.manifest__aside { position: sticky; top: calc(var(--header-h) + 40px); }
.emblem {
  width: min(260px, 100%);
  aspect-ratio: 1;
  margin-left: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6));
}
.emblem img { width: 100%; height: 100%; object-fit: contain; }
.manifest__facts { margin-top: 40px; display: grid; gap: 0; }
.fact { padding: 18px 0; border-top: 1px solid var(--line); }
.fact__num {
  font-weight: 800; font-stretch: 72%; font-size: 2.6rem; line-height: 1; color: var(--text);
}
.fact__label { color: var(--text-3); font-size: 0.92rem; margin-top: 6px; }
.manifest__index { color: var(--text-3); padding-top: 14px; }

/* ---------- Services index (home) ---------- */
.svc-head { display: flex; flex-direction: column; gap: 22px; margin-bottom: clamp(48px, 6vw, 80px); max-width: 52rem; }
.svc-index { border-top: 1px solid var(--line); position: relative; }
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1.4fr) minmax(0, 1fr) 56px;
  align-items: center;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.svc-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(251, 85, 0, 0.14), rgba(251, 85, 0, 0) 70%);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.5s var(--ease-out);
}
.svc-row:hover::before, .svc-row:focus-visible::before { transform: scaleY(1); }
.svc-row__icon { font-size: 2rem; color: var(--text-3); transition: color 0.3s, transform 0.5s var(--ease-out); padding-left: 8px; }
.svc-row:hover .svc-row__icon { color: var(--orange); transform: translateX(6px); }
.svc-row__title {
  font-weight: 800; font-stretch: 72%; text-transform: uppercase;
  font-size: clamp(1.9rem, 3.6vw, 3.3rem); line-height: 0.95;
  transition: transform 0.5s var(--ease-out);
}
.svc-row:hover .svc-row__title { transform: translateX(14px); }
.svc-row__desc { color: var(--text-2); font-size: 0.98rem; line-height: 1.5; max-width: 40ch; }
.svc-row__go {
  width: 56px; height: 56px; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 1.3rem; transition: background-color 0.3s, color 0.3s;
}
.svc-row:hover .svc-row__go { background: var(--orange); color: var(--orange-ink); box-shadow: none; }
.svc-row__go i, .svc-card__go i, .rel-card__go i { transition: transform 0.5s var(--ease-out); }
.svc-row:hover .svc-row__go i, .svc-card:hover .svc-card__go i, .rel-card:hover .rel-card__go i { transform: rotate(45deg); }
.svc-preview {
  position: fixed; left: 0; top: 0;
  width: 340px; height: 255px;
  margin: -127px 0 0 -170px;
  z-index: var(--z-overlay);
  pointer-events: none;
}
.svc-preview__inner {
  position: absolute; inset: 0; overflow: hidden;
  opacity: 0; transform: scale(0.8) rotate(-3deg);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: opacity 0.3s, transform 0.5s var(--ease-out);
}
.svc-preview.is-visible .svc-preview__inner { opacity: 1; transform: scale(1) rotate(0deg); }
.svc-preview img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.15);
  transition: opacity 0.45s, transform 0.9s var(--ease-out);
}
.svc-preview img.is-active { opacity: 1; transform: scale(1); }

/* ---------- Bento "Warum Brüll" ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(220px, auto);
  gap: 14px;
}
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--bg-3);
  padding: clamp(24px, 2.6vw, 36px);
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 260px;
}
.tile--img { color: var(--text); }
.tile--img img {
  position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; z-index: -2;
  transition: transform 1.2s var(--ease-out);
}
.tile--img::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(8, 9, 10, 0.92) 0%, rgba(8, 9, 10, 0.25) 60%, rgba(8, 9, 10, 0.1) 100%);
}
.tile:hover img { transform: scale(1.05); }
.tile--orange { background: var(--orange); color: var(--orange-ink); }
.tile--orange .tile__text { color: rgba(20, 7, 0, 0.82); }
.tile--steel {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.0) 30%, rgba(255, 255, 255, 0.12) 48%, rgba(255, 255, 255, 0) 62%),
    url("../img/edelstahl-textur.webp") center / cover;
  color: #121417;
}
.tile--steel .tile__text { color: #2a2e33; }
.tile--steel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(210, 214, 219, 0.55), rgba(160, 166, 173, 0.7));
}
.tile__icon { font-size: 2.2rem; margin-bottom: auto; color: var(--orange); }
.tile--orange .tile__icon, .tile--steel .tile__icon { color: inherit; }
.tile__num { font-weight: 800; font-stretch: 70%; font-size: clamp(4.2rem, 8vw, 7.4rem); line-height: 0.85; margin-bottom: 14px; }
.tile__title { margin-bottom: 10px; }
.tile__text { color: var(--text-2); font-size: 0.98rem; line-height: 1.5; max-width: 42ch; }
.tile.span-7 { grid-column: span 7; }
.tile.span-5 { grid-column: span 5; }
.tile.span-4 { grid-column: span 4; }
.tile.span-8 { grid-column: span 8; }
.tile.row-2 { grid-row: span 2; }

/* ---------- Process (horizontal pan) ---------- */
.process { position: relative; overflow: hidden; background: var(--bg-2); }
.process__viewport { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; padding-block: calc(var(--header-h) + 24px) 64px; }
.process__track {
  display: flex; gap: 14px; align-items: stretch;
  padding-inline: var(--gutter);
  width: max-content;
  will-change: transform;
}
.process__intro {
  width: min(500px, 80vw); flex-shrink: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 26px;
  padding-right: clamp(24px, 4vw, 72px);
}
.process__intro .eyebrow { margin-bottom: 0; }
.process__intro p { color: var(--text-2); max-width: 40ch; }
.step-card {
  position: relative;
  width: min(520px, 78vw);
  height: min(600px, calc(100vh - var(--header-h) - 120px));
  min-height: 460px;
  flex-shrink: 0;
  background: var(--bg-3);
  display: grid; grid-template-rows: 46% 1fr;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.step-card__media { position: relative; overflow: hidden; }
.step-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.step-card:hover .step-card__media img { transform: scale(1.06); }
.step-card__body { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.step-card__verb { color: var(--orange); }
.step-card__title { font-weight: 800; font-stretch: 74%; text-transform: uppercase; font-size: 2.1rem; line-height: 1; }
.step-card__text { color: var(--text-2); font-size: 0.98rem; line-height: 1.55; }
.step-card--end {
  background: var(--orange); color: var(--orange-ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px;
}
.step-card--end .step-card__title { font-size: clamp(2.4rem, 3.6vw, 3.4rem); }
.process__progress {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 32px;
  height: 2px; background: var(--line);
}
.process__progress span { display: block; height: 100%; width: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); }

/* ---------- References marquee ---------- */
.refs { overflow: hidden; }
.refs__head { display: flex; flex-direction: column; gap: 22px; margin-bottom: 64px; max-width: 50rem; }
.marquee { position: relative; overflow: hidden; padding-block: 8px; border-block: 1px solid var(--line); }
.marquee + .marquee { border-top: 0; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 36px;
  padding-right: 36px;
  font-weight: 800; font-stretch: 70%; text-transform: uppercase;
  font-size: clamp(2.6rem, 6vw, 5.6rem); line-height: 1.15;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(236, 238, 241, 0.42);
  transition: color 0.3s, -webkit-text-stroke-color 0.3s;
}
.marquee__item:hover { color: var(--text); -webkit-text-stroke-color: transparent; }
.marquee__item::after {
  content: ""; width: 14px; height: 14px; background: var(--orange);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.marquee--solid .marquee__item { color: var(--text); -webkit-text-stroke: 0; }
.marquee--solid .marquee__item:hover { color: var(--orange); }
.refs__foot { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.refs__foot p { color: var(--text-2); max-width: 52ch; }

/* ---------- Big CTA band ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 86vh;
  display: flex; align-items: flex-end;
  padding-block: var(--section);
}
.cta__bg { position: absolute; inset: -10% 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5) saturate(0.9); }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(8, 9, 10, 0.96) 8%, rgba(8, 9, 10, 0.4) 60%, rgba(8, 9, 10, 0.75) 100%);
}
.cta__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.cta__title { max-width: 16ch; }
.cta__side { display: grid; gap: 24px; }
.cta__contact { display: grid; gap: 4px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.cta__contact a { font-weight: 700; font-size: 1.35rem; transition: color 0.25s; }
.cta__contact a:hover { color: var(--orange); }
.cta__contact span { color: var(--text-3); }

/* ---------- Footer ---------- */
.site-footer { background: #08090a; padding-top: clamp(72px, 9vw, 120px); position: relative; overflow: hidden; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: 72px;
}
.footer__brand p { color: var(--text-3); margin-top: 22px; max-width: 34ch; font-size: 0.95rem; }
.footer__col h3 { color: var(--text-3); margin-bottom: 18px; }
.footer__col li { color: var(--text-2); }
.footer__col li + li { margin-top: 10px; }
.footer__col a { color: var(--text-2); transition: color 0.25s; }
.footer__col a:hover { color: var(--orange); }
.footer__col address { font-style: normal; color: var(--text-2); line-height: 1.8; }
.footer__wordmark {
  font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(6rem, 25vw, 26rem); line-height: 0.78;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 238, 241, 0.14);
  user-select: none;
  white-space: nowrap;
  margin-bottom: -0.06em;
  text-align: center;
}
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between;
  color: var(--text-3); font-size: 0.86rem;
}

/* ---------- PAGE HERO (subpages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 88vh;
  min-height: max(88dvh, 600px);
  display: flex; align-items: flex-end;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(56px, 7vw, 96px);
  background: #08090a;
}
.page-hero--short { min-height: 68vh; min-height: max(68dvh, 520px); }
.page-hero__bg { position: absolute; inset: -6% 0; z-index: -3; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6) saturate(0.88); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 9, 10, 0.92) 0%, rgba(8, 9, 10, 0.55) 55%, rgba(8, 9, 10, 0.25) 100%),
    linear-gradient(0deg, rgba(8, 9, 10, 1) 0%, rgba(8, 9, 10, 0) 45%);
}
.fx-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.page-hero__inner { width: 100%; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 30px; color: var(--text-3); }
.crumbs a { color: var(--text-2); transition: color 0.25s; }
.crumbs a:hover { color: var(--orange); }
.crumbs i { font-size: 0.8rem; }
.page-hero__title { max-width: 15ch; margin-bottom: 28px; }
.page-hero__lead { margin-bottom: 36px; color: #c3c7cd; }
.page-hero__meta {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-strong);
  display: flex; flex-wrap: wrap; gap: 12px 48px; color: var(--text-2);
}
.page-hero__meta span { display: inline-flex; align-items: center; gap: 10px; }
.page-hero__meta i { color: var(--orange); font-size: 1.2rem; }

/* ---------- Service: intro split ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px); align-items: center;
}
.split--wide-media { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.split__media { position: relative; }
.frame {
  position: relative; overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  background: var(--bg-3);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 16 / 10; }
.frame--square { aspect-ratio: 1; }
.frame [data-parallax-img] { height: 120%; margin-top: -10%; }
.frame-tag {
  position: absolute; left: -1px; bottom: -1px;
  background: var(--bg); padding: 18px 24px 0 0;
  display: flex; gap: 14px; align-items: baseline;
}
.frame-tag strong { font-weight: 800; font-stretch: 72%; font-size: 3rem; line-height: 1; color: var(--orange); }
.frame-tag span { color: var(--text-2); font-size: 0.92rem; max-width: 18ch; line-height: 1.35; }
.keyfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.keyfact { padding: 20px 18px 0 0; }
.keyfact + .keyfact { padding-left: 18px; border-left: 1px solid var(--line); }
.keyfact dt { color: var(--text-3); margin-bottom: 8px; }
.keyfact dd { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }

/* ---------- Service: scope grid ---------- */
.scope-head { margin-bottom: clamp(48px, 6vw, 72px); display: grid; gap: 22px; max-width: 54rem; }
.scope {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.scope__item {
  position: relative; isolation: isolate;
  padding: clamp(28px, 3vw, 44px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 280px;
  --mx: 50%; --my: 50%;
}
.scope__item::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(251, 85, 0, 0.13), transparent 60%);
  transition: opacity 0.4s;
}
.scope__item:hover::before { opacity: 1; }
.scope__icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  font-size: 1.7rem; color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  margin-bottom: auto;
  transition: background-color 0.3s, color 0.3s;
}
.scope__item:hover .scope__icon { background: var(--orange); color: var(--orange-ink); box-shadow: none; }
.scope__item p { color: var(--text-2); font-size: 0.97rem; line-height: 1.55; }

/* ---------- Full-bleed image band ---------- */
.band { position: relative; height: clamp(380px, 72vh, 760px); overflow: hidden; }
.band img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; filter: brightness(0.78); }
.band__quote {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding-bottom: clamp(36px, 5vw, 72px);
  background: linear-gradient(0deg, rgba(8, 9, 10, 0.9), rgba(8, 9, 10, 0));
  padding-top: 160px;
}
.band__quote p {
  font-weight: 700; font-stretch: 80%; text-transform: uppercase;
  font-size: clamp(1.8rem, 3.8vw, 3.6rem); line-height: 1; max-width: 20ch;
}

/* ---------- Steps (vertical) ---------- */
.steps-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.steps-wrap__head { position: sticky; top: calc(var(--header-h) + 48px); display: grid; gap: 22px; }
.steps { position: relative; padding-left: 48px; }
.steps::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.steps__fill { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--orange); transform-origin: top; transform: scaleY(0); }
.step { position: relative; padding-bottom: 56px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: -44px; top: 6px; width: 16px; height: 16px;
  background: var(--bg); box-shadow: inset 0 0 0 2px var(--orange);
  transform: rotate(45deg);
}
.step__verb { color: var(--orange); margin-bottom: 10px; display: block; }
.step h3 { margin-bottom: 12px; }
.step p { color: var(--text-2); max-width: 56ch; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0;
  font-weight: 700; font-size: 1.12rem; line-height: 1.35;
  transition: color 0.25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--orange); }
.faq summary i {
  flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--orange);
  transition: transform 0.4s var(--ease-out), background-color 0.3s, color 0.3s;
}
.faq details[open] summary i { transform: rotate(45deg); background: var(--orange); color: var(--orange-ink); box-shadow: none; }
.faq__body { overflow: hidden; }
.faq__body p { color: var(--text-2); padding-bottom: 26px; max-width: 62ch; }

/* ---------- Related services ---------- */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rel-card { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; isolation: isolate; }
.rel-card:nth-child(2) { margin-top: 64px; }
.rel-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.rel-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 9, 10, 0.92), rgba(8, 9, 10, 0.1) 65%); }
.rel-card:hover img { transform: scale(1.07); }
.rel-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.rel-card__go {
  width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--orange); color: var(--orange-ink); font-size: 1.2rem;
  transition: transform 0.5s var(--ease-out);
}


/* ---------- Leistungen overview grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px); }
.svc-card { display: block; position: relative; }
.svc-card:nth-child(even) { margin-top: clamp(0px, 10vw, 140px); }
.svc-card .frame { aspect-ratio: 5 / 4; }
.svc-card .frame img { transition: transform 1.2s var(--ease-out); }
.svc-card:hover .frame img { transform: scale(1.06); }
.svc-card__body { padding-top: 26px; display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: start; }
.svc-card__body p { color: var(--text-2); grid-column: 1 / 2; max-width: 48ch; font-size: 0.98rem; line-height: 1.55; }
.svc-card__go {
  grid-row: 1 / 3; grid-column: 2; width: 56px; height: 56px; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 1.3rem;
  transition: background-color 0.3s, color 0.3s, transform 0.5s var(--ease-out);
}
.svc-card:hover .svc-card__go { background: var(--orange); color: var(--orange-ink); box-shadow: none; }
.svc-card__num { position: absolute; top: 18px; left: 18px; z-index: 2; width: 52px; height: 52px; display: grid; place-items: center; background: rgba(8, 9, 10, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 1.5rem; color: var(--orange); }

.extras { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: var(--bg-3); overflow: hidden; }
.extras__media { position: relative; min-height: 420px; }
.extras__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.extras__body { padding: clamp(32px, 5vw, 72px); display: grid; gap: 24px; align-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; box-shadow: inset 0 0 0 1px var(--line-strong);
  font-weight: 600; font-size: 0.92rem; color: var(--text);
}
.chip i { color: var(--orange); }

/* ---------- Projekte ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.filter button {
  padding: 12px 20px; font-weight: 600; font-size: 0.95rem; color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.filter button:hover { color: var(--text); }
.filter button[aria-pressed="true"] { background: var(--orange); color: var(--orange-ink); box-shadow: none; }
.filter button span { font-family: var(--mono); font-size: 0.78rem; margin-left: 6px; opacity: 0.7; }
.ref-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ref {
  position: relative; isolation: isolate;
  padding: 28px 24px; min-height: 190px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
  --mx: 50%; --my: 50%;
}
.ref::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(251, 85, 0, 0.14), transparent 65%);
  transition: opacity 0.35s;
}
.ref:hover::before { opacity: 1; }
.ref__cat { color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.ref__cat i { color: var(--orange); font-size: 1.05rem; }
.ref__name { font-weight: 800; font-stretch: 76%; text-transform: uppercase; font-size: 1.7rem; line-height: 1; }
.ref__city { color: var(--text-2); font-size: 0.92rem; display: flex; align-items: center; gap: 6px; }
.ref.is-hidden { display: none; }

.types { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 14px; }
.types .tile:first-child { grid-row: span 2; min-height: 560px; }

/* ---------- Über uns ---------- */
.gen-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.gen { padding: 32px 28px 8px 0; position: relative; }
.gen + .gen { padding-left: 28px; border-left: 1px solid var(--line); }
.gen__num { font-weight: 800; font-stretch: 66%; font-size: clamp(4rem, 7vw, 6.6rem); line-height: 0.85; color: var(--orange); }
.gen h3 { margin: 18px 0 10px; }
.gen p { color: var(--text-2); font-size: 0.97rem; line-height: 1.55; }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.value { background: var(--bg-3); padding: clamp(28px, 3.4vw, 48px); display: grid; gap: 14px; align-content: start; }
.value i { font-size: 2rem; color: var(--orange); }
.value p { color: var(--text-2); }
.value--photo { padding: 0; position: relative; min-height: 360px; overflow: hidden; }
.value--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact-cards { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-card { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-card i {
  width: 56px; height: 56px; display: grid; place-items: center;
  font-size: 1.5rem; color: var(--orange); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.contact-card small { display: block; color: var(--text-3); }
.contact-card a, .contact-card address { font-style: normal; font-weight: 700; font-size: 1.12rem; transition: color 0.25s; }
.contact-card a:hover { color: var(--orange); }
.map {
  margin-top: 40px; position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--bg-3);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) contrast(0.9) brightness(0.9); }
.form {
  background: var(--bg-2);
  padding: clamp(28px, 4vw, 56px);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.field label span { color: var(--orange); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 15px 16px;
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 256 256'><path fill='%23fb5500' d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 44px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #80868e; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(251, 85, 0, 0.25); }
.field__hint { font-size: 0.84rem; color: var(--text-3); }
.field__error { font-size: 0.86rem; color: #ff8a5c; display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #ff6a3d; }
.field.is-invalid .field__error { display: block; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.92rem; color: var(--text-2); }
.check input {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 2px 0 0;
  border: 1px solid var(--line-strong); background: var(--bg); display: grid; place-items: center; cursor: pointer;
}
.check input:checked { background: var(--orange); border-color: var(--orange); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--orange-ink); border-bottom: 2px solid var(--orange-ink); transform: rotate(-45deg) translate(1px, -1px); }
.form__foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.form__note { font-size: 0.84rem; color: var(--text-3); max-width: 36ch; }
.form__success {
  display: none; text-align: left; gap: 18px; padding: 12px 0;
}
.form__success i { font-size: 3rem; color: var(--orange); }
.form.is-sent .form__fields { display: none; }
.form.is-sent .form__success { display: grid; }
.btn.is-loading { pointer-events: none; opacity: 0.8; }
.btn.is-loading i { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Page transition curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: var(--z-curtain);
  pointer-events: none;
  display: grid; place-items: center;
  background: var(--bg);
  transform: translateY(-100%);
}
.curtain__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--orange); transform-origin: left; }
.curtain img { width: 76px; height: 76px; position: relative; }
.js .curtain { transform: translateY(0); animation: curtainSafety 0.01s 3.5s forwards; }
@keyframes curtainSafety { to { transform: translateY(-100%); } }
.no-js .curtain { display: none; }

/* Split words (JS) */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-word > span { display: inline-block; will-change: transform; }

/* ---------- JS-dependent initial states ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); }
.js [data-clip] { clip-path: inset(100% 0 0 0); }
.js .hero [data-hero-in] { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__phone { display: none; }
  .manifest__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }
  .manifest__index { display: none; }
  .ref-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .nav__menu, .nav__actions .btn { display: none; }
  .burger { display: block; }
  .svc-row { grid-template-columns: 56px minmax(0, 1fr) 48px; }
  .svc-row__desc { grid-column: 2 / 3; grid-row: 2; }
  .svc-row__go { grid-row: 1 / 3; grid-column: 3; width: 48px; height: 48px; }
  .svc-row__icon { grid-row: 1 / 3; }
  .svc-preview { display: none; }
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile.span-7, .tile.span-5, .tile.span-4, .tile.span-8 { grid-column: span 6; }
  .tile.row-2 { grid-row: span 1; }
  .tile.half-md { grid-column: span 3; }
  .process__viewport { min-height: 0; padding-block: var(--section); }
  .process__track { width: 100%; flex-direction: column; }
  .process__intro { width: 100%; padding: 0 0 32px; }
  .step-card { width: 100%; height: auto; min-height: 0; grid-template-rows: 240px auto; }
  .process__progress { display: none; }
  .cta__grid, .split, .split--wide-media, .steps-wrap, .faq-wrap, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .steps-wrap__head { position: static; }
  .scope { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
  .gen-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gen:nth-child(3) { padding-left: 0; border-left: 0; }
  .types { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .types .tile:first-child { grid-column: 1 / -1; grid-row: auto; min-height: 420px; }
  .extras { grid-template-columns: minmax(0, 1fr); }
  .extras__media { min-height: 320px; }
}
@media (max-width: 900px) {
  .hero { align-items: flex-end; }
  .hero__shade {
    background:
      linear-gradient(0deg, rgba(8, 9, 10, 1) 0%, rgba(8, 9, 10, 0.88) 42%, rgba(8, 9, 10, 0.35) 70%, rgba(8, 9, 10, 0.7) 100%);
  }
  .hero__content { padding-bottom: 48px; }
  .manifest__grid { grid-template-columns: minmax(0, 1fr); }
  .manifest__aside { position: static; display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: center; }
  .manifest__facts { margin-top: 0; }
  .emblem { width: 140px; margin: 0; }
  .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related { grid-template-columns: minmax(0, 1fr); }
  .rel-card { aspect-ratio: 16 / 10; }
  .rel-card:nth-child(2) { margin-top: 0; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-card:nth-child(even) { margin-top: 0; }
  .values { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --header-h: 64px; }
  .brand img { width: 38px; height: 38px; }
  .brand__name { font-size: 1.3rem; }
  .btn { height: 52px; padding: 0 22px; }
  .btn-row .btn { flex: 1 1 auto; }
  .svc-row { grid-template-columns: minmax(0, 1fr) 44px; padding: 24px 0; gap: 10px 16px; }
  .svc-row__icon { display: none; }
  .svc-row__desc { grid-column: 1; }
  .svc-row__go { grid-column: 2; width: 44px; height: 44px; }
  .svc-row__title { font-size: 1.8rem; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile.span-7, .tile.span-5, .tile.span-4, .tile.span-8, .tile.half-md { grid-column: auto; }
  .scope { grid-template-columns: minmax(0, 1fr); }
  .scope__item { min-height: 0; }
  .scope__icon { margin-bottom: 8px; }
  .keyfacts { grid-template-columns: minmax(0, 1fr); }
  .keyfact, .keyfact + .keyfact { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .ref-grid { grid-template-columns: minmax(0, 1fr); }
  .ref { min-height: 0; }
  .gen-list { grid-template-columns: minmax(0, 1fr); }
  .gen, .gen + .gen { padding: 28px 0 8px; border-left: 0; }
  .types { grid-template-columns: minmax(0, 1fr); }
  .manifest__aside { grid-template-columns: 96px 1fr; }
  .emblem { width: 96px; }
  .frame-tag strong { font-size: 2.3rem; }
  .page-hero__meta { gap: 10px 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-clip] { clip-path: none; }
  .js .hero [data-hero-in] { opacity: 1; }
  .manifest__text .w { opacity: 1; }
  .curtain { display: none; }
}
