/* Stackwerk — alpine workshop + brand navy/red */

:root {
  --navy: #0b1f3a;
  --navy-deep: #061427;
  --navy-soft: #143056;
  --red: #e11d2e;
  --red-deep: #b81422;
  --ink: #121a24;
  --muted: #5a6675;
  --line: #d8dee6;
  --paper: #f3f5f8;
  --white: #ffffff;
  --teal: #0f8f86;
  --teal-deep: #0a5c56;
  --teal-soft: #e6f6f4;
  --shadow: 0 24px 60px rgba(6, 20, 39, 0.18);
  --radius: 2px;
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(225, 29, 46, 0.06), transparent 55%),
    radial-gradient(900px 500px at 0% 20%, rgba(11, 31, 58, 0.06), transparent 50%),
    linear-gradient(180deg, #eef1f5 0%, var(--paper) 40%, #e9edf2 100%);
  min-height: 100vh;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red);
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1rem; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(243, 245, 248, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover { color: inherit; }

.brand__mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand__stack { color: var(--navy); }
.brand__werk { color: var(--red); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav__link {
  text-decoration: none;
  color: var(--navy-soft);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.25s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--navy);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  transform: scaleX(1);
}

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.site-nav__cta:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-of-type {
  transform: translateY(-4px) rotate(-45deg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.22), transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease);
  pointer-events: none;
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(225, 29, 46, 0.28);
}

.btn--primary:hover {
  background: var(--red-deep);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(225, 29, 46, 0.38);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn--ghost-dark:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(11, 31, 58, 0.04);
}

.btn--teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(15, 143, 134, 0.28);
}

.btn--teal:hover {
  background: var(--teal-deep);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(15, 143, 134, 0.38);
}

.text-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--red);
  border-bottom: 1px solid currentColor;
}

.text-link:hover { color: var(--red-deep); }

/* Hero — full-bleed first viewport */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-deep);
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 48%, #12325a 100%);
}

.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(6, 20, 39, 0.55) 100%),
    radial-gradient(ellipse 80% 50% at 70% 30%, rgba(225, 29, 46, 0.18), transparent 60%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.float-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform 0.45s var(--ease);
}

.float-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.45;
  animation: orbFloat 10s ease-in-out infinite;
}

.float-orb--a {
  width: min(28vw, 220px);
  height: min(28vw, 220px);
  left: 6%;
  top: 18%;
  background: radial-gradient(circle at 30% 30%, rgba(225, 29, 46, 0.55), transparent 70%);
  animation-duration: 11s;
}

.float-orb--b {
  width: min(34vw, 280px);
  height: min(34vw, 280px);
  right: 8%;
  bottom: 12%;
  background: radial-gradient(circle at 40% 40%, rgba(126, 224, 216, 0.35), transparent 68%);
  animation-duration: 13s;
  animation-delay: -3s;
}

.float-orb--c {
  width: min(18vw, 140px);
  height: min(18vw, 140px);
  left: 42%;
  top: 12%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18), transparent 70%);
  animation-duration: 9s;
  animation-delay: -1.5s;
}

.float-chip {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 18px rgba(225, 29, 46, 0.35);
  animation: chipDrift 7s ease-in-out infinite;
}

.float-chip--1 { left: 18%; bottom: 22%; background: var(--red); animation-delay: 0s; }
.float-chip--2 { left: 62%; top: 24%; background: #7ee0d8; animation-delay: -1.2s; width: 9px; height: 9px; }
.float-chip--3 { right: 22%; top: 42%; background: rgba(255, 255, 255, 0.5); animation-delay: -2.4s; }
.float-chip--4 { left: 28%; top: 58%; background: #ff8a93; animation-delay: -3.1s; width: 8px; height: 8px; }
.float-chip--5 { left: 8%; top: 36%; background: rgba(255, 255, 255, 0.4); animation-delay: -0.6s; width: 7px; height: 7px; animation-duration: 8.5s; }
.float-chip--6 { left: 48%; bottom: 28%; background: var(--red); animation-delay: -1.8s; width: 10px; height: 10px; opacity: 0.7; animation-duration: 6.5s; }
.float-chip--7 { right: 12%; bottom: 38%; background: #7ee0d8; animation-delay: -2.8s; width: 8px; height: 8px; animation-duration: 9s; }
.float-chip--8 { left: 72%; top: 58%; background: rgba(255, 255, 255, 0.45); animation-delay: -3.6s; width: 6px; height: 6px; animation-duration: 7.5s; }
.float-chip--9 { left: 38%; top: 18%; background: #ff8a93; animation-delay: -4.2s; width: 9px; height: 9px; animation-duration: 8s; }
.float-chip--10 { right: 32%; top: 16%; background: rgba(126, 224, 216, 0.7); animation-delay: -0.9s; width: 7px; height: 7px; animation-duration: 10s; }
.float-chip--11 { left: 14%; bottom: 42%; background: rgba(225, 29, 46, 0.55); animation-delay: -5s; width: 11px; height: 11px; animation-duration: 6.8s; }
.float-chip--12 { right: 40%; bottom: 18%; background: rgba(255, 255, 255, 0.55); animation-delay: -2.1s; width: 8px; height: 8px; animation-duration: 9.5s; }

@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(12px, -18px, 0) scale(1.06); }
}

@keyframes chipDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.45; }
  50% { transform: translate3d(10px, -22px, 0) rotate(18deg); opacity: 0.9; }
}

.hero__stack-visual {
  position: absolute;
  right: -4%;
  top: 18%;
  width: min(42vw, 420px);
  height: min(52vw, 480px);
  display: grid;
  gap: 1.1rem;
  transform: rotate(-18deg) skewY(4deg) translate3d(var(--mx, 0), var(--my, 0), 0);
  opacity: 0.55;
  transition: transform 0.45s var(--ease);
}

.hero__layer {
  display: block;
  height: 18%;
  border-radius: 4px;
  box-shadow: var(--shadow);
  transform: translateX(40px);
  opacity: 0;
  animation: stackIn 1s var(--ease) forwards;
}

.hero__layer--navy { background: linear-gradient(90deg, #1a3d6d, #0b1f3a); }
.hero__layer--red { background: linear-gradient(90deg, #ff4a58, var(--red)); }
.hero__layer:nth-child(1) { animation-delay: 0.15s; width: 78%; }
.hero__layer:nth-child(2) { animation-delay: 0.3s; width: 92%; margin-left: 8%; }
.hero__layer:nth-child(3) { animation-delay: 0.45s; width: 70%; margin-left: 4%; }
.hero__layer:nth-child(4) { animation-delay: 0.6s; width: 86%; margin-left: 12%; }

.hero__layer.is-floating,
.hero__layer {
  animation: stackIn 1s var(--ease) forwards, layerIdle 5.5s ease-in-out 1.2s infinite;
}

.hero__layer:nth-child(2) { animation-delay: 0.3s, 1.4s; }
.hero__layer:nth-child(3) { animation-delay: 0.45s, 1.7s; }
.hero__layer:nth-child(4) { animation-delay: 0.6s, 2s; }

@keyframes stackIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes layerIdle {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(4px) translateY(-5px); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5rem;
  text-align: center;
}

.hero__brands {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem 1.25rem;
  width: min(100%, 28rem);
  margin: 0 auto 1.75rem;
  opacity: 0;
  transform: translateY(18px);
  animation: heroRise 0.9s var(--ease) 0.1s forwards;
}

.hero__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.75rem 0.85rem;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.hero__brand:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.hero__brand img {
  width: 100%;
  max-width: 168px;
  height: auto;
  margin: 0;
  object-fit: contain;
}

.hero__brands-divider {
  width: 2px;
  height: clamp(2.5rem, 8vw, 3.5rem);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  flex-shrink: 0;
  justify-self: center;
}

.hero__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.25rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--white);
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero__logo-wrap {
  display: inline-flex;
  margin: 0 auto 1.75rem;
  padding: 1.1rem 1.25rem 0.85rem;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  animation: heroRise 0.9s var(--ease) 0.1s forwards;
}

.hero__logo {
  width: min(220px, 52vw);
  margin: 0 auto;
}

.hero__claim {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  color: var(--white);
}

.hero__lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  font-size: 1.08rem;
}

.hero__inline-link {
  color: #7ee0d8;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.hero__inline-link:hover {
  color: var(--white);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.hero [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  animation: heroRise 0.85s var(--ease) forwards;
}

.hero .hero__brands { animation-delay: 0.1s; }
.hero .hero__claim { animation-delay: 0.35s; }
.hero .hero__lead { animation-delay: 0.5s; }
.hero .hero__actions { animation-delay: 0.65s; }

@keyframes heroRise {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Sections */

.section {
  padding: 5.5rem 0;
}

.section__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section__inner--narrow { max-width: 720px; }

.section__inner--split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.section__lead {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 40rem;
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.75rem;
}

.eyebrow--teal { color: var(--teal-deep); }

.section--services {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.service-rows {
  display: grid;
  gap: 0;
}

.service-row {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(12rem, 0.4fr) 1fr;
  gap: 1.5rem;
  align-items: baseline;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease), transform 0.3s var(--ease);
  border-radius: 4px;
}

.service-row:hover {
  background: rgba(11, 31, 58, 0.03);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  transform: translateX(4px);
}

.service-row:last-child { border-bottom: 1px solid var(--line); }

.service-row h3 { margin: 0; }
.service-row p { margin: 0; color: var(--muted); }

.section__cta { margin-top: 2rem; }

.section--flowbix {
  background:
    linear-gradient(180deg, var(--teal-soft), #f7fbfa);
}

.section--flowbix-featured {
  padding: 6.5rem 0;
  border-bottom: 1px solid rgba(15, 143, 134, 0.18);
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.section--flowbix-featured h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.section--flowbix-featured .section__lead {
  font-size: 1.2rem;
  max-width: 36rem;
}

.flowbix-highlights {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.flowbix-highlights li {
  position: relative;
  padding-left: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}

.flowbix-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--teal);
}

.flowbix-visual--featured img {
  width: min(380px, 100%);
}

.flowbix-visual__link {
  position: relative;
  z-index: 1;
  display: block;
  border-radius: 6px;
  transition: transform 0.25s var(--ease);
}

.flowbix-visual__link:hover {
  transform: translateY(-4px);
}

.flowbix-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.flowbix-visual img,
.flowbix-hero-mark img {
  position: relative;
  z-index: 1;
  width: min(320px, 100%);
}

.flow-nodes {
  position: absolute;
  inset: 10% 12%;
  pointer-events: none;
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform 0.45s var(--ease);
}

.flow-nodes span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--teal);
  opacity: 0.55;
  animation: floatNode 4s ease-in-out infinite;
  box-shadow: 0 0 14px rgba(15, 143, 134, 0.35);
}

.flow-nodes span:nth-child(1) { top: 8%; left: 18%; animation-delay: 0s; }
.flow-nodes span:nth-child(2) { top: 22%; right: 12%; animation-delay: 0.7s; background: var(--teal-deep); }
.flow-nodes span:nth-child(3) { bottom: 18%; left: 10%; animation-delay: 1.2s; }
.flow-nodes span:nth-child(4) { bottom: 8%; right: 22%; animation-delay: 1.8s; background: #2bb5ab; }

.flow-nodes--large { inset: 5% 8%; }
.flow-nodes--large span { width: 12px; height: 12px; }

@keyframes floatNode {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(-10px); opacity: 0.9; }
}

.section--place {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
}

.section--place .section__inner {
  position: relative;
  z-index: 1;
}

.section--place h2,
.section--place .eyebrow { color: var(--white); }
.section--place .section__lead { color: rgba(255, 255, 255, 0.72); }
.section--place .eyebrow { color: #ff8a93; }

.mountain-silhouette {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  line-height: 0;
  color: rgba(255, 255, 255, 0.82);
}

.mountain-silhouette img {
  width: 100%;
  height: auto;
  display: block;
}

.mountain-silhouette--hero {
  z-index: 0;
  opacity: 1;
  transform: translateY(4%);
  filter: none;
}

.mountain-silhouette--hero img {
  min-height: 150px;
  object-fit: cover;
  object-position: center bottom;
}

.mountain-silhouette--place {
  z-index: 0;
  opacity: 0.85;
  color: rgba(255, 255, 255, 0.7);
}

.section__cta-sep {
  margin: 0 0.55rem;
  color: var(--muted);
}

.section--tech {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.tech-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 0.5rem;
}

.tech-group {
  padding-top: 1.25rem;
  border-top: 2px solid var(--navy);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.tech-group:hover {
  transform: translateY(-4px);
  border-top-color: var(--red);
}

.tech-group h3 { margin-bottom: 0.5rem; }
.tech-group p { margin: 0; color: var(--muted); }

.tech-note {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 40rem;
}

@media (max-width: 860px) {
  .tech-groups {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.section--cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.section--cta-band h2 { color: var(--white); }
.section--cta-band .section__lead {
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.75);
}

.section--muted {
  background: var(--white);
  border-top: 1px solid var(--line);
}

/* Inner pages */

.page-hero {
  padding: 4rem 0 2.5rem;
}

.page-hero__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.page-hero__inner--split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.page-hero__lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
}

.page-hero--flowbix {
  background: linear-gradient(180deg, var(--teal-soft), transparent);
  padding-bottom: 1rem;
}

.flowbix-hero-mark {
  position: relative;
  display: grid;
  place-items: center;
}

.stack-blocks {
  display: grid;
  gap: 2.5rem;
}

.stack-block {
  padding-top: 2rem;
  border-top: 2px solid var(--navy);
}

.stack-block__index {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.plain-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.plain-list li {
  padding-left: 1rem;
  position: relative;
  color: var(--muted);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--red);
}

.benefit-rows {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.benefit-rows article {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.benefit-rows article:last-child { border-bottom: 0; }

.section--extensions {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.extension-rows {
  display: grid;
  gap: 0;
  margin-top: 0.5rem;
}

.extension-row {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  transition: transform 0.3s var(--ease), padding 0.3s var(--ease), background 0.3s var(--ease);
  border-radius: 4px;
}

.extension-row:hover {
  background: var(--teal-soft);
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  transform: translateX(4px);
}

.extension-row:last-child {
  border-bottom: 1px solid var(--line);
}

.extension-row__status {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.extension-row h3 { margin-bottom: 0.5rem; }
.extension-row p:last-child { margin-bottom: 0; color: var(--muted); }

.about-place {
  margin: 2.5rem 0;
  padding: 1.75rem 0;
  border-block: 1px solid var(--line);
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  background: var(--white);
  padding: 1.75rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--navy);
}

.field em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9em;
}

.field input,
.field textarea {
  font: inherit;
  font-weight: 500;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafbfc;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.12);
  background: var(--white);
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.contact-aside {
  padding-top: 0.5rem;
}

.contact-aside h2 { font-size: 1.35rem; }

.contact-aside__note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.alert {
  padding: 0.95rem 1.1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.alert--success {
  background: #e8f7ef;
  color: #0f5c36;
  border: 1px solid #b7e0c8;
}

.alert--error {
  background: #fdebec;
  color: #8f1520;
  border: 1px solid #f3c0c5;
}

/* Footer */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover { color: #ff8a93; }

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 1.75rem;
}

.site-footer__brand {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.site-footer__brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: var(--white);
  border-radius: 4px;
}

.site-footer__brand strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.site-footer__brand p { margin: 0; }

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-weight: 600;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
}

.site-footer__impressum {
  margin: 0;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.site-footer__impressum strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}

/* Reveal on scroll */

[data-reveal],
[data-reveal-section] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible,
[data-reveal-section].is-visible {
  opacity: 1;
  transform: none;
}

.hero [data-reveal].is-visible {
  /* hero uses its own animation */
}

/* Responsive */

@media (max-width: 860px) {
  :root {
    --header-h: 3.85rem;
  }

  body {
    font-size: 1rem;
  }

  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.35rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav__link,
  .site-nav__cta {
    padding: 0.75rem 0.25rem;
  }

  .site-nav__cta { justify-content: center; }

  .hero {
    min-height: auto;
  }

  .hero__content {
    padding: 2.5rem 1rem 3.5rem;
  }

  .hero__stack-visual {
    opacity: 0.2;
    right: -28%;
    top: 6%;
    width: min(70vw, 280px);
  }

  .float-orb--a,
  .float-orb--b {
    opacity: 0.28;
  }

  .float-chip--5,
  .float-chip--6,
  .float-chip--7,
  .float-chip--8,
  .float-chip--9,
  .float-chip--10,
  .float-chip--11,
  .float-chip--12 {
    display: none;
  }

  .hero__brands {
    width: min(100%, 22rem);
    gap: 0.55rem 0.65rem;
    margin-bottom: 1.35rem;
  }

  .hero__brand {
    padding: 0.55rem 0.6rem;
  }

  .hero__title {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .hero__claim {
    font-size: clamp(1.05rem, 4.2vw, 1.35rem);
  }

  .hero__lead {
    font-size: 0.98rem;
    margin-bottom: 1.35rem;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .section--flowbix-featured {
    padding: 3.5rem 0;
  }

  .section--flowbix-featured h2 {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .section--flowbix-featured .section__lead {
    font-size: 1.05rem;
  }

  .flowbix-visual--featured img,
  .flowbix-visual img,
  .flowbix-hero-mark img {
    width: min(260px, 78vw);
    margin-inline: auto;
  }

  .section__inner--split,
  .page-hero__inner--split,
  .contact-layout,
  .service-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-row { padding: 1.35rem 0; }

  .section { padding: 3.25rem 0; }

  .page-hero {
    padding: 2.75rem 0 1.75rem;
  }

  .contact-form { padding: 1.15rem; }

  .site-footer__links {
    gap: 0.85rem 1.1rem;
  }

  .btn {
    min-height: 2.75rem;
  }
}

@media (max-width: 480px) {
  .brand__text {
    font-size: 0.92rem;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .hero__brands-divider {
    height: 2.25rem;
  }

  .extension-row,
  .stack-block {
    padding-top: 1.35rem;
  }

  .section__inner {
    padding: 0 1rem;
  }

  .site-header__inner {
    padding: 0 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal],
  [data-reveal-section] {
    opacity: 1;
    transform: none;
  }

  .float-field,
  .hero__stack-visual,
  .flow-nodes {
    transform: none !important;
  }

  .btn::after {
    display: none;
  }
}
