/* ========================================================================
   WERKBLICK — Design System & Styles
   Brutalist-Luxury / Architecture Portfolio Aesthetic
   ======================================================================== */

/* --- Design Tokens --- */
:root {
  /* Colors */
  --color-snow: #F6F6F6;
  --color-amber: #E59136;
  --color-amber-hover: #F0A040;
  --color-charcoal: #131415;
  --color-graphite: #34373A;
  --color-muted: #7A7D80;
  --color-glass: rgba(52, 55, 58, 0.6);
  --color-glass-light: rgba(255, 255, 255, 0.03);
  --color-border: rgba(246, 246, 246, 0.08);
  --color-divider: rgba(246, 246, 246, 0.06);
  --color-text-muted: rgba(246, 246, 246, 0.5);

  /* Typography */
  --font-headline: 'Bebas Neue', 'Oswald', sans-serif;
  --font-body: 'Satoshi', 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --container-max: 1400px;
  --container-padding: clamp(20px, 4vw, 60px);
  /* Distance from container's inner edge to the viewport edge.
     Used for full-bleed elements that should touch the screen border. */
  --bleed: calc((100vw - min(100vw, var(--container-max)) + 2 * var(--container-padding)) / 2);
  --section-padding: clamp(80px, 12vw, 200px);
  --gap-lg: 80px;
  --gap-md: 48px;
  --gap-sm: 24px;
  --gap-xs: 12px;

  /* Animation */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.8s;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.2;
  color: var(--color-snow);
  background-color: var(--color-charcoal);
  overflow-x: hidden;
  overflow-x: clip;
  /* iOS safe area padding for notch devices */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* --- Noise Overlay (cinematic grain) --- */
/* Applied via JS canvas to avoid rendering issues with CSS pseudo-element noise */

/* --- Cursor Glow --- */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 145, 54, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.cursor-glow--visible {
  opacity: 1;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 60px);
  padding-right: clamp(20px, 4vw, 60px);
}

/* --- Section Base --- */
.section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  overflow-x: hidden;
  overflow-x: clip;
}

/* --- Section Numbers --- */
.section__number {
  font-family: var(--font-headline);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 400;
  color: var(--color-muted);
  opacity: 0.3;
  position: absolute;
  top: var(--section-padding);
  left: clamp(20px, 4vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* --- Typography --- */
.headline {
  font-family: var(--font-headline);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--color-snow);
}

.headline--hero {
  font-size: clamp(43px, 8.1vw, 108px);
}

.headline--xl {
  font-size: clamp(48px, 6vw, 100px);
}

.headline--lg {
  font-size: clamp(40px, 5vw, 72px);
}

.headline--md {
  font-size: clamp(32px, 3.5vw, 54px);
}

.headline--sm {
  font-size: clamp(24px, 2.5vw, 42px);
}

.headline--muted {
  color: var(--color-muted);
}

.headline--indent {
  padding-left: clamp(40px, 8vw, 120px);
}

.label {
  font-family: var(--font-body);
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.label--lg {
  font-size: clamp(14px, 1.4vw, 16px);
}

.body-text {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--color-snow);
}

.body-text--muted {
  color: var(--color-muted);
}

/* --- Divider --- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-divider);
}

.divider--short {
  width: 200px;
}

.divider--amber {
  background: var(--color-amber);
  opacity: 0.2;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 32px;
  border-radius: 0;
  transition: all 0.4s var(--ease-out);
  white-space: nowrap;
}

.btn--outline {
  border: 1px solid var(--color-amber);
  color: var(--color-amber);
  background: transparent;
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--color-amber);
  color: var(--color-charcoal);
  box-shadow: 0 0 40px rgba(229, 145, 54, 0.15);
}

.btn--wide {
  min-width: 300px;
}

.btn--text {
  color: var(--color-muted);
  padding: 16px 0;
  gap: 8px;
}

.btn--text:hover,
.btn--text:focus-visible {
  color: var(--color-snow);
}

.btn--text .btn__arrow {
  transition: transform 0.3s var(--ease-out);
}

.btn--text:hover .btn__arrow {
  transform: translateX(4px);
}

/* --- Glass Card --- */
.glass-card {
  background: var(--color-glass-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: clamp(28px, 3vw, 40px);
  transition: box-shadow 0.5s var(--ease-out);
}

.glass-card:hover {
  box-shadow: 0 0 60px rgba(229, 145, 54, 0.08);
}

.glass-card__number {
  font-family: var(--font-headline);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 400;
  color: var(--color-amber);
  line-height: 1;
  margin-bottom: var(--gap-sm);
}

/* --- Trust Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 100px;
  transition: border-color 0.3s var(--ease-out);
}

.badge:hover {
  border-color: var(--color-amber);
  color: var(--color-snow);
}

/* --- Scroll Reveal (Apple-style directional) --- */
:root {
  --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1); /* Apple ease-out-expo */
  --reveal-duration: 1s;
  --reveal-distance: 80px;
}

.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition: opacity var(--reveal-duration) var(--reveal-ease),
              transform var(--reveal-duration) var(--reveal-ease);
  will-change: opacity, transform;
}

/* Directional variants */
.reveal--from-left {
  transform: translateX(calc(-1 * var(--reveal-distance)));
}

.reveal--from-right {
  transform: translateX(var(--reveal-distance));
}

.reveal--from-left-far {
  --reveal-distance: 120px;
  transform: translateX(calc(-1 * var(--reveal-distance)));
}

.reveal--from-right-far {
  --reveal-distance: 120px;
  transform: translateX(var(--reveal-distance));
}

/* Scale-up variant (for cards, images) */
.reveal--scale {
  transform: scale(0.92) translateY(30px);
}

/* Combined: from-right + scale */
.reveal--from-right.reveal--scale {
  transform: translateX(var(--reveal-distance)) scale(0.92);
}

/* Visible state — shared for all directions.
   Listed selectors ensure equal/higher specificity than combined hidden states. */
.reveal--visible,
.reveal--from-right.reveal--scale.reveal--visible,
.reveal--from-left.reveal--scale.reveal--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Reset transition-delay when hidden again (instant hide) */
.reveal:not(.reveal--visible) {
  transition-delay: 0s;
}

/* Stagger delays */
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }
.reveal--delay-5 { transition-delay: 0.5s; }
.reveal--delay-6 { transition-delay: 0.6s; }

/* Slower variant for hero elements */
.reveal--slow {
  --reveal-duration: 1.4s;
}

/* ========================================================================
   NAVIGATION
   ======================================================================== */
.snap-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  gap: 12px;
  pointer-events: none;
}
.snap-nav__btn {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(19, 20, 21, 0.85);
  border: 1px solid var(--color-amber);
  color: var(--color-amber);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.snap-nav__btn:hover,
.snap-nav__btn:focus-visible {
  background: var(--color-amber);
  color: var(--color-charcoal);
}
.snap-nav__btn svg { width: 22px; height: 22px; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 29px 0;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), background 0.4s var(--ease-out);
  background: transparent;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}
.nav--scrolled {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  background: rgba(19, 20, 21, 0.45);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-sm);
  padding: clamp(24px, 3vh, 40px) clamp(40px, 6vw, 96px);
  background: rgba(19, 20, 21, 0.42);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  width: min(960px, 85vw);
  align-self: center;
  margin: auto auto 50px auto;
}

.hero__description {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.55;
  color: var(--color-snow);
  max-width: 64ch;
  text-align: center;
  margin: 0;
}

.nav--scrolled {
  padding: 19px 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo-text {
  font-family: "Eight One", var(--font-headline);
  letter-spacing: 0.08em;
}
.nav__logo {
  font-family: "Eight One", var(--font-headline);
  font-size: 22px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-snow);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav__logo-img {
  height: 43px;
  width: auto;
  display: block;
  opacity: var(--logo-progress, 0);
  transform: scale(calc(0.6 + 0.4 * var(--logo-progress, 0)));
  transition: opacity 0.25s ease;
}

.hero__logo {
  display: block;
  width: min(260px, 22vw);
  height: auto;
  margin-top: 0;
  transform-origin: left center;
  will-change: transform, opacity;
  /* Move toward top-left of viewport as user scrolls */
  --p: var(--logo-progress, 0);
  transform:
    translate3d(
      calc((var(--logo-target-x, 0px) - var(--logo-origin-x, 0px)) * var(--p)),
      calc((var(--logo-target-y, 0px) - var(--logo-origin-y, 0px)) * var(--p)),
      0
    )
    scale(calc(1 - 0.85 * var(--p)));
  opacity: calc(1 - var(--p));
}

.nav__logo-dot {
  color: var(--color-amber);
  margin: 0 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 40px);
}

.nav__link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  transition: color 0.3s var(--ease-out);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-snow);
}

.nav__cta {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-amber);
  border: 1px solid var(--color-amber);
  padding: 12px 29px;
  transition: all 0.3s var(--ease-out);
}

.nav__cta:hover,
.nav__cta:focus-visible {
  background: var(--color-amber);
  color: var(--color-charcoal);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.nav__hamburger-line {
  width: 100%;
  height: 1px;
  background: var(--color-snow);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.nav__hamburger--open .nav__hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(5px);
}

.nav__hamburger--open .nav__hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav__hamburger--open .nav__hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-5px);
}

/* Mobile Menu */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(19, 20, 21, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  z-index: 999;
}

.nav__mobile-menu--open {
  display: flex;
}

.nav__mobile-link {
  font-family: var(--font-headline);
  font-size: 48px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--color-snow);
  transition: color 0.3s var(--ease-out);
}

.nav__mobile-link:hover {
  color: var(--color-amber);
}

/* ========================================================================
   HERO SECTION
   ======================================================================== */
.hero {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 25%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.1) 85%, rgba(0,0,0,0) 100%), url('CI/Website Stock Photos/website header.png') center/cover no-repeat;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: clamp(6px, 1vh, 14px);
  padding-top: clamp(30px, 5vh, 70px);
  padding-bottom: clamp(80px, 12vh, 140px);
  margin-left: auto;
  margin-right: auto;
  min-height: 100vh;
  min-height: 100dvh;
}

.hero__divider { display: none; }

.hero__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.5vh, 16px);
  padding: 0;
  margin-top: 300px;
}

.hero__logo-box {
  position: relative;
  display: inline-block;
  line-height: 0;
  isolation: isolate;
}
.hero__logo-box::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 15%, rgba(0,0,0,0.85) 28%, rgba(0,0,0,0.5) 42%, rgba(0,0,0,0.22) 56%, rgba(0,0,0,0.06) 72%, rgba(0,0,0,0) 88%);
          mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 15%, rgba(0,0,0,0.85) 28%, rgba(0,0,0,0.5) 42%, rgba(0,0,0,0.22) 56%, rgba(0,0,0,0.06) 72%, rgba(0,0,0,0) 88%);
}

.hero__headline-wrap {
  position: relative;
  isolation: isolate;
  margin-bottom: var(--gap-md);
}
.hero__headline-wrap::before {
  content: "";
  position: absolute;
  inset: -40% -10%;
  z-index: -1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 15%, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.06) 75%, rgba(0,0,0,0) 90%);
          mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 15%, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.06) 75%, rgba(0,0,0,0) 90%);
}

@font-face {
  font-family: "Eight One";
  src: url("fonts/Eight One.ttf") format("truetype");
  font-display: swap;
}

.hero__headline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6em;
  white-space: nowrap;
  letter-spacing: 0.1125em;
  font-family: "Eight One", var(--font-headline);
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.6), 0 0 42px rgba(0, 0, 0, 0.45), 0 0 80px rgba(0, 0, 0, 0.25);
}
.hero__headline .headline--hero {
  font-family: inherit;
  letter-spacing: 0.1125em;
}

.hero__headline-wrap {
  margin-top: clamp(-48px, -5vh, -24px);
}
.hero__headline .headline--indent {
  padding-left: 0;
}

.hero__headline-line {
  display: block;
}


.hero__divider {
  width: 200px;
  height: 1px;
  background: var(--color-divider);
  margin: var(--gap-md) 0;
}

.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: var(--gap-md);
}

.hero__sub-dot {
  margin: 0 12px;
  color: var(--color-amber);
}

.hero__buttons {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  flex-wrap: wrap;
}

/* Hero Background Elements */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.hero__orb--gold {
  width: 600px;
  height: 600px;
  background: var(--color-amber);
  opacity: 0.06;
  top: 20%;
  right: -10%;
}

.hero__orb--dark {
  width: 500px;
  height: 500px;
  background: #1a1a2e;
  opacity: 0.3;
  bottom: -20%;
  left: -10%;
}

/* Scroll Indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-muted), transparent);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--color-amber), transparent);
  animation: scrollLine 2s var(--ease-out) infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* Grid Lines Background */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.03;
}

.hero__grid-line {
  position: absolute;
  background: var(--color-snow);
}

.hero__grid-line--h {
  width: 100%;
  height: 1px;
}

.hero__grid-line--v {
  width: 1px;
  height: 100%;
}

/* ========================================================================
   SHOWCASE SECTIONS — Image + Text Side-by-Side
   ======================================================================== */

.showcase {
  position: relative;
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
  overflow-x: hidden;
  overflow-x: clip;
}

/* Slant amount — percentage of width offset for the diagonal cut */
.showcase {
  --slant-x: 12%;
}

.showcase__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.showcase__grid--image-left {
  grid-template-columns: 1.5fr 0.8fr;
}

.showcase__content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.showcase__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-amber);
}

.showcase__headline {
  font-family: var(--font-headline);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--color-snow);
  margin: 0;
}

.showcase__text {
  max-width: 480px;
}

/* Image bleeds all the way to the viewport edge */
.showcase__media {
  position: relative;
  width: calc(100% + var(--bleed));
  /* Diagonal cut on the interior edge only — bleed side stays straight */
  clip-path: polygon(var(--slant-x) 0, 100% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.5));
}

.showcase__grid--image-right .showcase__media {
  margin-right: calc(-1 * var(--bleed));
}

.showcase__grid--image-left .showcase__media {
  margin-left: calc(-1 * var(--bleed));
}

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

/* Mirrored: image bleeds LEFT, cut on the right (interior) edge only */
.showcase--slant-b .showcase__media {
  clip-path: polygon(0 0, calc(100% - var(--slant-x)) 0, 100% 100%, 0 100%);
}

/* ========================================================================
   PARALLAX BACKGROUNDS (legacy — kept for any future use)
   ======================================================================== */

.parallax-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

/* ========================================================================
   PROBLEM SECTION
   ======================================================================== */
.problem {
  position: relative;
}

.problem__header {
  margin-bottom: var(--gap-lg);
  max-width: 800px;
}

.problem__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-sm);
  margin-bottom: var(--gap-lg);
}

.problem__transition {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.problem__transition-line {
  flex: 1;
  height: 1px;
  background: var(--color-divider);
}

.problem__transition-text {
  font-family: var(--font-headline);
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--color-amber);
  white-space: nowrap;
  padding: 0 clamp(20px, 3vw, 48px);
  text-shadow: 0 0 60px rgba(245, 178, 76, 0.35);
}

#problem .problem__transition {
  margin-top: clamp(60px, 8vh, 120px);
  opacity: 0;
  transform: translateY(40px) scale(0.92);
  filter: blur(14px);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1),
              transform 0.9s cubic-bezier(0.22,1,0.36,1),
              filter 0.9s cubic-bezier(0.22,1,0.36,1);
}
#problem .problem__transition.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ========================================================================
   FEATURES SECTION
   ======================================================================== */
.features {
  padding-top: 0;
  padding-bottom: 0;
}

.feature {
  min-height: 80vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  border-bottom: 1px solid var(--color-divider);
  position: relative;
}

.feature:last-child {
  border-bottom: none;
}

.feature__label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: var(--section-padding);
  left: 0;
  right: 0;
}

.feature__content {
  padding-right: var(--gap-md);
}

.feature__headline {
  margin-bottom: var(--gap-sm);
}

.feature__desc {
  max-width: 400px;
}

/* Feature Visuals */
.feature__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 300px;
}

/* Network SVG Visual */
.visual-network {
  width: 100%;
  height: 300px;
}

.visual-network__node {
  fill: var(--color-amber);
  opacity: 0.8;
}

.visual-network__line {
  stroke: var(--color-amber);
  stroke-width: 0.5;
  opacity: 0.2;
}

.visual-network__pulse {
  fill: var(--color-amber);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; r: 3; }
  50% { opacity: 0.8; r: 6; }
}

/* Dashboard Visual */
.visual-dashboard {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 16 / 10;
  background: var(--color-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.visual-dashboard__header {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.visual-dashboard__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-graphite);
}

.visual-dashboard__dot--active {
  background: var(--color-amber);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.visual-dashboard__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.visual-dashboard__row {
  height: 8px;
  background: var(--color-graphite);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.visual-dashboard__row::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--color-amber), rgba(229, 145, 54, 0.3));
  border-radius: 4px;
  animation: barGrow 2s var(--ease-out) forwards;
}

.visual-dashboard__row:nth-child(1)::after { width: 75%; animation-delay: 0.2s; }
.visual-dashboard__row:nth-child(2)::after { width: 60%; animation-delay: 0.4s; }
.visual-dashboard__row:nth-child(3)::after { width: 88%; animation-delay: 0.6s; }
.visual-dashboard__row:nth-child(4)::after { width: 45%; animation-delay: 0.8s; }

@keyframes barGrow {
  from { width: 0; }
}

/* Chart Visual */
.visual-chart {
  width: 100%;
  height: 200px;
}

.visual-chart__line {
  fill: none;
  stroke: var(--color-amber);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawLine 3s var(--ease-out) forwards;
}

.visual-chart__area {
  fill: url(#chartGradient);
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.5s forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Alert Visual */
.visual-alerts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.visual-alert-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-amber);
  position: relative;
}

.visual-alert-dot::before,
.visual-alert-dot::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--color-amber);
  animation: alertRipple 2s var(--ease-out) infinite;
}

.visual-alert-dot::after {
  animation-delay: 0.6s;
}

.visual-alert-dot:nth-child(2)::before { animation-delay: 0.3s; }
.visual-alert-dot:nth-child(2)::after { animation-delay: 0.9s; }
.visual-alert-dot:nth-child(3)::before { animation-delay: 0.6s; }
.visual-alert-dot:nth-child(3)::after { animation-delay: 1.2s; }

@keyframes alertRipple {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3); opacity: 0; }
}

/* Converge Visual */
.visual-converge {
  width: 100%;
  height: 250px;
}

.visual-converge__line {
  fill: none;
  stroke: var(--color-amber);
  stroke-width: 1;
  opacity: 0.4;
}

.visual-converge__center {
  fill: var(--color-amber);
}

/* Shield Visual */
.visual-shield {
  width: 120px;
  height: 140px;
}

.visual-shield__path {
  fill: none;
  stroke: var(--color-amber);
  stroke-width: 1.5;
  opacity: 0.6;
}

.visual-shield__check {
  fill: none;
  stroke: var(--color-amber);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ========================================================================
   ZAHLEN (STATS) SECTION
   ======================================================================== */
.zahlen__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--color-divider);
}

.zahlen__item {
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--color-divider);
  margin: -1px;
}

.zahlen__value {
  font-family: var(--font-headline);
  font-size: clamp(56px, 7vw, 100px);
  font-weight: 400;
  color: var(--color-snow);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: var(--gap-xs);
}

.zahlen__label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

/* ========================================================================
   PROZESS (PROCESS) SECTION
   ======================================================================== */
#prozess {
  min-height: 100vh;
  display: flex;
  align-items: center;
  --slant-x: 12%;
}

.prozess__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  width: 100%;
}

.prozess__media {
  margin-right: calc(-1 * var(--bleed));
  width: calc(100% + var(--bleed));
}

.prozess__header {
  margin-bottom: clamp(20px, 3vh, 40px);
}

#prozess .headline--lg {
  font-size: clamp(36px, 4.2vw, 64px);
}

#prozess .prozess__step-number {
  font-size: clamp(32px, 3.4vw, 48px);
}

#prozess .prozess__step-title {
  font-size: clamp(18px, 1.8vw, 24px);
  margin-bottom: 4px;
}

#prozess .prozess__step-card {
  padding: clamp(12px, 1.4vh, 18px) clamp(16px, 1.6vw, 22px);
}

#prozess .prozess__step-card .body-text {
  font-size: clamp(13px, 1vw, 15px);
}

#prozess .prozess__connector {
  height: clamp(20px, 3vh, 36px);
}

.prozess__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.prozess__connector {
  width: 1px;
  height: 60px;
  background: var(--color-amber);
  opacity: 0.2;
  margin-left: clamp(24px, 3vw, 36px);
}

.prozess__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--gap-md);
  align-items: start;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  filter: blur(8px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
              transform 0.7s cubic-bezier(0.22,1,0.36,1),
              filter 0.7s cubic-bezier(0.22,1,0.36,1);
}

.prozess__step.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

#problem .problem__cards .glass-card {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  filter: blur(8px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
              transform 0.7s cubic-bezier(0.22,1,0.36,1),
              filter 0.7s cubic-bezier(0.22,1,0.36,1);
}
#problem .problem__cards .glass-card.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.prozess__step-number {
  font-family: var(--font-headline);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 400;
  color: var(--color-amber);
  line-height: 1;
}

.prozess__step-card {
  max-width: 600px;
}

.prozess__step-title {
  font-family: var(--font-headline);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--color-snow);
  margin-bottom: var(--gap-xs);
}

/* ========================================================================
   UEBER (ABOUT) SECTION
   ======================================================================== */
#ueber {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
#ueber::before {
  content: "";
  position: absolute;
  top: 25%;
  left: 0;
  right: 0;
  height: 50%;
  background: url('CI/Website Stock Photos/founders.png') center 25%/cover no-repeat;
  opacity: 0.55;
  z-index:-2;
}
#ueber::after {
  content: "";
  position: absolute;
  top: 25%;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(rgba(10,10,12,0.35), rgba(10,10,12,0.45));
  z-index:-1;
}

.ueber__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: start;
  margin-bottom: var(--gap-lg);
}

.ueber__headline-line {
  display: block;
}

.ueber__headline-line:nth-child(2) {
  padding-left: clamp(20px, 3vw, 40px);
}

.ueber__headline-line:nth-child(3) {
  padding-left: clamp(40px, 6vw, 80px);
}

.ueber__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-xs);
}

#ueber .ueber__grid {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "headline ."
    "card .";
  row-gap: clamp(80px, 14vh, 180px);
  margin-bottom: 0;
  align-items: start;
}
#ueber .ueber__grid > div:first-child {
  grid-area: headline;
  transform: translateY(-95px);
}
#ueber .ueber__grid > .glass-card {
  grid-area: card;
  justify-self: start;
  max-width: 520px;
  transform: translate(0, -200px);
  margin-top: 0;
}

#ueber .ueber__badges {
  justify-content: flex-end;
  margin-top: clamp(-180px, -22vh, -80px);
  position: relative;
  z-index: 2;
  transform: translateX(100px);
}

/* ========================================================================
   CTA SECTION
   ======================================================================== */
.cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  padding-top: 0;
  padding-bottom: 0;
}

.cta__content {
  flex: 1;
  justify-content: center;
}

.cta__footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  width: 100%;
}

.cta__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta__headline {
  margin-bottom: var(--gap-sm);
}

.cta__sub {
  margin-bottom: var(--gap-md);
}

.cta__alt {
  margin-top: var(--gap-sm);
  font-size: 14px;
  color: var(--color-muted);
}

.cta__alt a {
  transition: color 0.3s var(--ease-out);
}

.cta__alt a:hover {
  color: var(--color-amber);
}

.cta__orb {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: var(--color-amber);
  opacity: 0.05;
  filter: blur(150px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ========================================================================
   FOOTER
   ======================================================================== */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--color-divider);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--gap-sm);
}

.footer__logo {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-snow);
}

.footer__logo-dot {
  color: var(--color-amber);
}

.footer__links {
  display: flex;
  gap: var(--gap-sm);
}

.footer__link {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  transition: color 0.3s var(--ease-out);
}

.footer__link:hover {
  color: var(--color-snow);
}

.footer__copy {
  font-size: 12px;
  color: var(--color-muted);
  width: 100%;
  text-align: center;
  margin-top: var(--gap-sm);
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .feature {
    grid-template-columns: 1fr;
    gap: var(--gap-md);
    min-height: auto;
  }

  .feature__content {
    padding-right: 0;
  }

  .feature__label-row {
    position: relative;
    top: 0;
    margin-bottom: var(--gap-sm);
  }

  .ueber__grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================================================
   MOBILE — Complete rewrite for iPhone/small screens
   Nuclear approach: force display:block on all complex containers,
   bypass all grid/flex/track/viewport desktop structures entirely.
   ====================================================================== */
@media (max-width: 768px) {

  /* === GLOBAL RESETS === */
  main > section {
    min-height: auto !important;
    height: auto !important;
    display: block !important;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .snap-nav { display: none !important; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .section__number {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 16px;
    font-size: 36px;
  }

  /* === HERO === */
  .hero {
    display: flex !important;
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding: 0 !important;
  }

  .hero__content {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0 16px 40px;
    justify-content: center;
    gap: 8px;
  }

  .hero__brand { margin-top: 0; gap: 8px; }
  .hero__logo { width: min(140px, 35vw); }
  .headline--hero { font-size: clamp(36px, 11vw, 56px); }
  .hero__headline-wrap { margin-bottom: 12px; margin-top: -12px; }
  .hero__panel {
    width: 92%;
    padding: 16px 20px;
    gap: 12px;
    border-radius: 16px;
  }
  .hero__description { font-size: 14px; }
  .hero__sub { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
  .hero__sub-dot { display: none; }
  .hero__buttons { flex-direction: column; align-items: center; width: 100%; gap: 12px; }
  .hero__scroll-indicator { display: none; }

  /* === PROBLEM === */
  .problem__cards { grid-template-columns: 1fr; }
  #problem .problem__cards .glass-card {
    opacity: 1 !important; transform: none !important; filter: none !important;
  }
  #problem .problem__transition {
    opacity: 1 !important; transform: none !important; filter: none !important;
    margin-top: 40px;
  }
  .problem__transition-text { font-size: clamp(28px, 7vw, 48px); }

  /* === OPS-PINNED: NUCLEAR RESET ===
     Force every nested container to display:block, full width.
     This bypasses all grid, flex, track, viewport, mask, clip issues. */
  .ops-pinned {
    height: auto !important;
    display: block !important;
    overflow: visible !important;
  }

  .ops-pinned__sticky {
    position: relative !important;
    height: auto !important;
    display: block !important;
    padding: 60px 0 !important;
    overflow: visible !important;
  }

  .ops-pinned__grid {
    display: block !important;
    width: 100% !important;
  }

  .ops-pinned__viewport {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    -webkit-mask-image: none !important;
            mask-image: none !important;
    -webkit-mask-size: unset !important;
            mask-size: unset !important;
    overflow: visible !important;
  }

  .ops-pinned__track {
    display: block !important;
    width: 100% !important;
    transform: none !important;
    transition: none !important;
  }

  .ops-panel {
    display: block !important;
    width: 100% !important;
    flex: none !important;
    padding: 0 0 40px 0 !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    --d: 0 !important;
    position: relative !important;
  }

  .ops-panel .showcase__headline { font-size: clamp(32px, 9vw, 48px); }
  .ops-panel .showcase__text {
    font-size: 15px;
    max-width: 100%;
    line-height: 1.6;
  }

  /* Hide ALL decorative elements on mobile */
  .ops-pinned__media,
  .ops-pinned__visuals,
  .ops-visual,
  .ops-pinned__snaps,
  .ops-pinned__progress,
  .visual-network,
  .visual-dashboard,
  .visual-alerts,
  .visual-converge,
  .visual-shield,
  .feature__visual {
    display: none !important;
  }

  /* Image-left variant (Zahlen section) */
  .ops-pinned--image-left .ops-pinned__grid,
  .ops-pinned--image-left .ops-pinned__viewport {
    display: block !important;
    width: 100% !important;
  }

  .ops-pinned--image-left .ops-pinned__track {
    display: block !important;
    width: 100% !important;
    grid-template-columns: unset !important;
    grid-template-areas: unset !important;
    transform: none !important;
  }

  .ops-pinned--image-left .ops-panel {
    display: block !important;
    width: 100% !important;
    grid-area: unset !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    padding: 0 0 40px 0 !important;
  }

  .ops-pinned--image-left.is-past-intro .ops-panel:nth-child(1) {
    display: block !important;
  }

  .ops-pinned--image-left.is-past-intro .ops-pinned__track {
    grid-template-areas: unset !important;
  }

  /* Stat values */
  .ops-panel--stat .zahlen__value {
    font-size: clamp(48px, 14vw, 80px) !important;
  }

  /* === SHOWCASE === */
  .showcase__grid,
  .showcase__grid--image-left {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .showcase__grid--image-left .showcase__media { order: -1; }
  .showcase__media {
    width: 100% !important;
    margin: 0 !important;
    clip-path: none !important;
  }

  /* === SUBTLE BACKGROUND PHOTOS ON MOBILE === */
  .ops-pinned,
  .showcase,
  #prozess {
    position: relative;
    overflow: hidden;
  }

  /* Features section — opsconnect */
  #features::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('CI/Website Stock Photos/opsconnect.png') center/cover no-repeat;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
  }

  /* Zahlen section — grafana */
  #zahlen::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('CI/Website Stock Photos/grafana.png') center/cover no-repeat;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
  }

  /* Showcase — full setup */
  .showcase.showcase--slant-b:not(#zahlen)::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('CI/Website Stock Photos/full setup.png') center/cover no-repeat;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
  }

  /* Prozess — datenmann */
  #prozess::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('CI/Website Stock Photos/datenmann.png') center/cover no-repeat;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
  }

  /* Dark gradient vignettes top & bottom on each photo */
  #features::after,
  #zahlen::after,
  #prozess::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
      var(--color-charcoal) 0%,
      transparent 18%,
      transparent 82%,
      var(--color-charcoal) 100%
    );
    z-index: 0;
    pointer-events: none;
  }

  .showcase.showcase--slant-b:not(#zahlen)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
      var(--color-charcoal) 0%,
      transparent 18%,
      transparent 82%,
      var(--color-charcoal) 100%
    );
    z-index: 0;
    pointer-events: none;
  }

  /* Ensure text sits above the background photos */
  .ops-pinned__sticky,
  .showcase .container,
  #prozess > .container {
    position: relative;
    z-index: 1;
  }

  /* === PROZESS === */
  .prozess__layout { grid-template-columns: 1fr; }
  .prozess__media { display: none !important; }
  .prozess__step {
    grid-template-columns: auto 1fr;
    gap: 16px;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  #prozess { min-height: auto !important; display: block !important; }

  /* === UEBER (FOUNDERS) === */
  #ueber {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  #ueber::before {
    top: 0;
    height: 55%;
    opacity: 0.5;
  }
  #ueber::after {
    top: 0;
    height: 55%;
  }

  #ueber .ueber__grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin-bottom: 24px !important;
    align-items: center !important;
  }
  #ueber .ueber__grid > div:first-child {
    transform: none !important;
    margin-bottom: 200px;
    text-align: center;
  }
  #ueber .ueber__grid > .glass-card {
    transform: none !important;
    max-width: 100% !important;
    margin-top: -40px;
  }

  /* Hide the showcase photo that shows below ueber — it's already the bg */
  #ueber + .showcase .showcase__media {
    display: none !important;
  }
  #ueber .ueber__badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
    transform: none !important;
  }
  .ueber__headline-line:nth-child(2),
  .ueber__headline-line:nth-child(3) { padding-left: 0; }

  /* === CTA === */
  .cta {
    height: auto !important;
    min-height: auto !important;
    padding: 80px 0 0 !important;
    display: block !important;
  }
  .cta__headline { font-size: clamp(36px, 10vw, 56px); }
  .btn--wide { min-width: auto; width: 100%; }

  /* === FOOTER === */
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }

  /* === ZAHLEN === */
  .zahlen__grid { grid-template-columns: 1fr; }
}

/* --- Mobile performance: disable expensive blur transitions --- */
@media (max-width: 768px) {
  /* Remove filter: blur() from transitions — extremely expensive on iOS GPU */
  .prozess__step {
    filter: none;
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
                transform 0.7s cubic-bezier(0.22,1,0.36,1);
  }
  .prozess__step.is-revealed {
    filter: none;
  }

  #problem .problem__cards .glass-card {
    filter: none;
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
                transform 0.7s cubic-bezier(0.22,1,0.36,1);
  }
  #problem .problem__cards .glass-card.is-revealed {
    filter: none;
  }

  #problem .problem__transition {
    filter: none;
    transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1),
                transform 0.9s cubic-bezier(0.22,1,0.36,1);
  }
  #problem .problem__transition.is-revealed {
    filter: none;
  }

  .ops-pinned--image-left .ops-panel {
    filter: none;
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
                transform 0.7s cubic-bezier(0.22,1,0.36,1);
  }
  .ops-pinned--image-left .ops-panel.is-revealed {
    filter: none;
  }

  .ops-pinned--image-left .ops-visual {
    filter: none;
    transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1),
                transform 0.6s cubic-bezier(0.22,1,0.36,1);
  }
  .ops-pinned--image-left .ops-visual.is-revealed {
    filter: none;
  }

  .ops-visual {
    filter: none;
    transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1),
                transform 0.6s cubic-bezier(0.22,1,0.36,1);
  }
  .ops-visual.is-active {
    filter: none;
  }

  /* Reduce backdrop-filter intensity on mobile for better perf */
  .glass-card {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .hero__panel {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  /* Simplify snap transition animations — no blur */
  .snap-enter-down { animation: snap-enter-down-simple 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .snap-enter-up   { animation: snap-enter-up-simple   0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .snap-leave-up   { animation: snap-leave-up-simple   0.5s cubic-bezier(0.55, 0, 0.68, 0.18) both; }
  .snap-leave-down { animation: snap-leave-down-simple 0.5s cubic-bezier(0.55, 0, 0.68, 0.18) both; }

  /* Reduce hero orb blur */
  .hero__orb { filter: blur(80px); }

  /* Reduce cursor glow size */
  .cursor-glow { display: none; }

  /* content-visibility for off-screen sections */
  .section,
  .showcase,
  .ops-pinned {
    content-visibility: auto;
    contain-intrinsic-size: auto 100vh;
    contain-intrinsic-size: auto 100dvh;
  }
}

@keyframes snap-enter-down-simple {
  0%   { opacity: 0; transform: translate3d(0, 8%, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes snap-enter-up-simple {
  0%   { opacity: 0; transform: translate3d(0, -8%, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes snap-leave-up-simple {
  0%   { opacity: 1; transform: translate3d(0, 0, 0); }
  100% { opacity: 0.4; transform: translate3d(0, -4%, 0); }
}
@keyframes snap-leave-down-simple {
  0%   { opacity: 1; transform: translate3d(0, 0, 0); }
  100% { opacity: 0.4; transform: translate3d(0, 4%, 0); }
}

/* Small Mobile */
@media (max-width: 480px) {
  .headline--hero {
    font-size: 64px;
  }

  .headline--indent {
    padding-left: 32px;
  }

  .ueber__badges {
    flex-direction: column;
  }
}

/* Large Desktop */
@media (min-width: 1440px) {
  :root {
    --container-padding: 80px;
  }
  .container {
    padding-left: 80px;
    padding-right: 80px;
  }
}

/* --- 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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .parallax-bg,
  .section__bg-image {
    transform: none !important;
  }

  .hero__scroll-line::after {
    animation: none;
  }
}

/* ========================================================================
   SNAP LAYOUT — every top-level section fills the viewport
   ======================================================================== */
main > section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
main > section.ops-pinned { display: block; } /* keeps its own sticky layout */
main > section[hidden],
main > section[style*="display:none"],
main > section[style*="display: none"] { display: none !important; }

.cta__footer { min-height: 0; display: block; padding: 24px 0; }

/* ========================================================================
   SNAP TRANSITIONS — vertical section-to-section flourish
   ======================================================================== */
@keyframes snap-enter-down {
  0%   { opacity: 0; transform: translate3d(0, 12%, 0) scale(0.96); filter: blur(14px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}
@keyframes snap-enter-up {
  0%   { opacity: 0; transform: translate3d(0, -12%, 0) scale(0.96); filter: blur(14px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}
@keyframes snap-leave-up {
  0%   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
  100% { opacity: 0.35; transform: translate3d(0, -6%, 0) scale(0.98); filter: blur(6px); }
}
@keyframes snap-leave-down {
  0%   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
  100% { opacity: 0.35; transform: translate3d(0, 6%, 0) scale(0.98); filter: blur(6px); }
}

.snap-enter-down { animation: snap-enter-down 0.95s cubic-bezier(0.22, 1, 0.36, 1) both; }
.snap-enter-up   { animation: snap-enter-up   0.95s cubic-bezier(0.22, 1, 0.36, 1) both; }
.snap-leave-up   { animation: snap-leave-up   0.6s  cubic-bezier(0.55, 0, 0.68, 0.18) both; }
.snap-leave-down { animation: snap-leave-down 0.6s  cubic-bezier(0.55, 0, 0.68, 0.18) both; }

/* ========================================================================
   OPS PINNED — vertical scroll → horizontal panel reveal
   ======================================================================== */
.ops-pinned {
  /* Section is one viewport tall — wheel events advance panels one by one */
  height: 100vh;
  height: 100dvh;
  position: relative;
  --slant-x: 12%;
}

.ops-pinned__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ops-pinned__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr;
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  width: 100%;
}

/* Image-left variant: media on the left, text panels on the right */
.ops-pinned--image-left .ops-pinned__grid {
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(60px, 8vw, 140px);
}
.ops-pinned--image-left .ops-pinned__grid {
  align-items: center;
}
.ops-pinned--image-left .ops-pinned__viewport {
  padding-left: 0;
  margin-left: 0;
  -webkit-mask-image: none;
          mask-image: none;
  clip-path: none;
  overflow: visible;
  position: relative;
  align-self: center;
  display: flex;
  align-items: center;
}

/* In image-left mode, panel 0 is the intro (full width). Panels 1..4 form a
   2×2 grid that fills in left-to-right, top-to-bottom as the user scrolls. */
.ops-pinned--image-left .ops-pinned__track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "intro intro"
    "s1 s2"
    "s3 s4";
  gap: clamp(20px, 2.5vh, 40px) clamp(20px, 2vw, 36px);
  width: 100%;
  transform: none !important;
  transition: none;
  height: auto;
  justify-content: stretch;
  align-content: center;
}
.ops-pinned--image-left .ops-panel {
  width: 100%;
  padding-right: 0;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  filter: blur(10px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
              transform 0.7s cubic-bezier(0.22,1,0.36,1),
              filter 0.7s cubic-bezier(0.22,1,0.36,1);
}
.ops-pinned--image-left .ops-panel.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.ops-pinned--image-left .ops-panel:nth-child(1) {
  grid-area: 1 / 1 / -1 / -1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ops-pinned--image-left .ops-panel:nth-child(2) { grid-area: s1; }
.ops-pinned--image-left .ops-panel:nth-child(3) { grid-area: s2; }
.ops-pinned--image-left .ops-panel:nth-child(4) { grid-area: s3; }
.ops-pinned--image-left .ops-panel:nth-child(5) { grid-area: s4; }

.ops-pinned--image-left.is-past-intro .ops-pinned__track {
  grid-template-areas:
    "s1 s2"
    "s3 s4";
}
.ops-pinned--image-left.is-past-intro .ops-panel:nth-child(1) {
  display: none;
}

/* Compact stat panels in 2x2 grid */
.ops-pinned--image-left .ops-panel--stat .showcase__label {
  display: block;
  margin-bottom: 12px;
}
.ops-pinned--image-left .ops-panel--stat .zahlen__value {
  font-size: clamp(56px, 6vw, 96px);
  margin-top: 0;
  line-height: 0.9;
}
.ops-pinned--image-left .ops-panel--stat .zahlen__label {
  margin-top: 8px;
  font-size: clamp(13px, 1vw, 16px);
}
.ops-pinned--image-left .ops-panel:not(.ops-panel--stat) .showcase__headline {
  font-size: clamp(36px, 4.5vw, 64px);
}

/* Visuals overlay in image-left mode: 2×2 grid centered on the photo */
.ops-pinned--image-left .ops-pinned__visuals {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(220px, 22vw, 340px);
  height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ops-pinned--image-left .ops-visual {
  position: relative;
  inset: auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 18px;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  filter: blur(8px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1),
              transform 0.6s cubic-bezier(0.22,1,0.36,1),
              filter 0.6s cubic-bezier(0.22,1,0.36,1);
}
.ops-pinned--image-left .ops-visual.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.ops-pinned--image-left .ops-pinned__media {
  margin-right: 0;
  margin-left: calc(-1 * var(--bleed));
}
.ops-pinned--image-left .ops-pinned__media.showcase__media {
  /* mirror the diagonal cut to the opposite edge */
  clip-path: polygon(0 0, calc(100% - var(--slant-x)) 0, 100% 100%, 0 100%);
}

/* Stat panels — big numeric value, prominent label */
.ops-panel--stat .zahlen__value {
  font-family: var(--font-headline);
  font-size: clamp(96px, 14vw, 200px);
  font-weight: 400;
  line-height: 0.9;
  color: var(--color-snow);
  margin-top: 24px;
}
.ops-panel--stat .zahlen__label {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.3vw, 22px);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  margin-top: 16px;
}

.ops-pinned__viewport {
  overflow: visible;
  position: relative;
  z-index: 2;
  min-width: 0;
  padding-left: 80px;
  margin-left: -80px;
  /* Extend the clip rectangle far to the right so visuals can drift over the photo */
  clip-path: inset(-50vh -50vw -50vh 0);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px);
          mask-image: linear-gradient(90deg, transparent 0, #000 80px);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: 200% 100%;
          mask-size: 200% 100%;
}

.ops-pinned__track {
  display: flex;
  width: 600%;
  /* --ops-eased is set by JS (discrete per panel: 0, 1/5, 2/5, …, 1) */
  transform: translate3d(calc(var(--ops-eased, 0) * -83.3333%), 0, 0);
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

.ops-panel {
  flex: 0 0 calc(100% / 6);
  width: calc(100% / 6);
  padding-right: 40px;
  box-sizing: border-box;
  /* Per-panel fade/lift driven by JS via --d (distance to active, 0..N) */
  --d: 1;
  opacity: clamp(0, calc(1 - var(--d) * 1.2), 1);
  transform: translateY(calc(var(--d) * 24px)) scale(calc(1 - var(--d) * 0.06));
  transition: opacity 0.9s cubic-bezier(0.77,0,0.18,1), transform 0.9s cubic-bezier(0.77,0,0.18,1);
}

.ops-panel .showcase__label {
  display: inline-block;
  margin-bottom: 20px;
}

.ops-panel .showcase__text {
  margin-top: 24px;
  max-width: 520px;
}

/* Per-panel visual — sits at right edge of panel, drifts into the photo area */
.ops-panel {
  position: relative;
}

/* Visuals overlay — centered on the robot photo, fades between active panel */
.ops-pinned__media { position: relative; }

.ops-pinned__visuals {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(170px, 15vw, 240px);
  height: clamp(170px, 15vw, 240px);
  pointer-events: none;
  z-index: 3;
}

.ops-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border-radius: 16px;
  background: rgba(15, 16, 17, 0.22);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: scale(0.92);
  filter: blur(10px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1),
              transform 0.6s cubic-bezier(0.22,1,0.36,1),
              filter 0.6s cubic-bezier(0.22,1,0.36,1);
}

.ops-visual.is-active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.ops-visual .visual-network,
.ops-visual .visual-converge,
.ops-visual .visual-dashboard {
  width: 100%;
  height: auto;
  margin: 0;
}

.ops-visual .visual-shield {
  width: 60%;
  height: auto;
}

/* Black icon palette inside the centered overlay (except dashboard) */
.ops-visual .visual-network__node,
.ops-visual .visual-network__pulse,
.ops-visual .visual-converge__center {
  fill: #0a0a0a;
}
.ops-visual .visual-network__node {
  r: 7;
  animation: opsNodePulse 2.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.ops-visual .visual-network__node:nth-of-type(2) { animation-delay: 0.2s; }
.ops-visual .visual-network__node:nth-of-type(3) { animation-delay: 0.4s; }
.ops-visual .visual-network__node:nth-of-type(4) { animation-delay: 0.6s; }
.ops-visual .visual-network__node:nth-of-type(5) { animation-delay: 0.8s; }
.ops-visual .visual-network__node:nth-of-type(6) { animation-delay: 1.0s; }
.ops-visual .visual-network__node:nth-of-type(7) { animation-delay: 1.2s; }
@keyframes opsNodePulse {
  0%, 100% { transform: scale(0.7); opacity: 0.4; }
  50%      { transform: scale(2.2); opacity: 1; }
}
.ops-visual .visual-network__line,
.ops-visual .visual-converge__line {
  stroke: #0a0a0a;
  opacity: 0.7;
}
.ops-visual .visual-shield__path,
.ops-visual .visual-shield__check {
  stroke: #0a0a0a;
}
.ops-visual .visual-alert-dot {
  background: #0a0a0a;
}
.ops-visual .visual-alert-dot::before,
.ops-visual .visual-alert-dot::after {
  border-color: #0a0a0a;
}

/* Generic stroke/fill helpers for new icon SVGs */
.ops-visual .viz-stroke { stroke: #0a0a0a; fill: none; }
.ops-visual .viz-fill { fill: #0a0a0a; }
.ops-visual svg { width: 70%; height: auto; }

.ops-panel .showcase__headline {
  font-size: clamp(56px, 7vw, 96px);
}

.ops-panel .showcase__text {
  font-size: clamp(17px, 1.3vw, 22px);
  line-height: 1.55;
  max-width: 560px;
}

.ops-panel .showcase__label {
  font-size: 13px;
}

/* Robot media — bleed to right edge with diagonal cut, like other showcases */
.ops-pinned__media {
  margin-right: calc(-1 * var(--bleed));
  position: relative;
  z-index: 1;
}

/* Scroll-snap anchors */
.ops-pinned__snaps {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ops-pinned__snap {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  scroll-snap-align: start;
}
.ops-pinned__snap:nth-child(1) { top: 0; }
.ops-pinned__snap:nth-child(2) { top: 100vh; }
.ops-pinned__snap:nth-child(3) { top: 200vh; }
.ops-pinned__snap:nth-child(4) { top: 300vh; }
.ops-pinned__snap:nth-child(5) { top: 400vh; }
.ops-pinned__snap:nth-child(6) { top: 500vh; }

.ops-pinned__progress {
  position: absolute;
  bottom: 6vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.ops-pinned__dot {
  width: 36px;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.3s var(--ease-out);
}

.ops-pinned__dot.is-active {
  background: var(--color-amber);
}

/* ops-pinned mobile overrides merged into main mobile block above */
