@font-face {
  font-family: "Coconat-Regular";
  src: url("assets/fonts/Coconat-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4eee5;
  --paper: #efe6d8;
  --paper-2: #e9dece;
  --text: #171612;
  --muted: #6d675f;
  --line: rgba(23, 22, 18, 0.09);
  --white: #fffdf8;
  --dark: #141310;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 22px 70px rgba(24, 18, 10, 0.08);
  --shadow-soft: 0 14px 34px rgba(24, 18, 10, 0.05);
  --surface-highlight: rgba(255, 255, 255, 0.52);
  --max: 1380px;
}

/* =========================
   RESET
   ========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 253, 248, 0.72), transparent 34%),
    linear-gradient(180deg, #f6f0e7 0%, var(--bg) 32%, #f2ebdf 100%);
  color: var(--text);
  line-height: 1.52;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(23, 22, 18, 0.35);
  outline-offset: 4px;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

/* =========================
   LAYOUT
   ========================= */

.container {
  width: 88%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 104px 0;
  scroll-margin-top: 56px;
}

.text-block,
.center-intro {
  max-width: 900px;
  margin: 0 auto;
}

/* =========================
   TYPOGRAPHY
   ========================= */

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: "Coconat-Regular", sans-serif;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(4rem, 10vw, 8.6rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 26px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  text-align: center;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
}

h5 {
  margin-bottom: 15px;
  font-family: "Coconat-Regular", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.05;
  color: var(--text);
}

p {
  font-size: 1rem;
  color: var(--muted);
}

.lead {
  max-width: 100%;
  font-size: 1.08rem;
  line-height: 1.7;
}

.small {
  font-size: 0.92rem;
}

/* =========================
   BUTTONS
   ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.5);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    transform 220ms ease,
    background 220ms ease,
    color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-dark {
  border-color: var(--dark);
  background: var(--dark);
  color: var(--white);
}

/* =========================
   HEADER
   ========================= */

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 40px);
  max-width: 1440px;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.08) 40%,
    transparent 100%
  );
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-box {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo-box img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.brand-text {
  color: var(--text);
  font-family: "Coconat-Regular", sans-serif;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.nav-links {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: all 220ms ease;
}

.nav-pill:not(.nav-pill-dark):hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark);
  border-color: transparent;
}

.nav-pill.active {
  background: var(--white);
  color: var(--dark);
  border-color: transparent;
}

.nav-pill-dark {
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark);
  border: none;
}

.nav-pill-dark:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Header dark state */

.site-header.header-dark .nav-pill {
  color: var(--text);
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(23, 22, 18, 0.08);
}

.site-header.header-dark .nav-pill:not(.nav-pill-dark):hover {
  background: rgba(255, 253, 248, 0.94);
  color: var(--dark);
  border-color: transparent;
  transform: translateY(-1px);
}

.site-header.header-dark .nav-pill-dark {
  background: var(--dark);
  color: var(--white);
  border: 1px solid var(--dark);
}

.site-header.header-dark .nav-pill-dark:hover {
  background: var(--white);
  color: var(--dark);
  border-color: transparent;
  transform: translateY(-1px);
}

.site-header.header-dark .brand-text {
  color: var(--text);
}

.site-header.header-dark .menu-toggle span {
  background: var(--text);
}

/* =========================
   HERO
   ========================= */

.hero-video-section {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  z-index: 0;
}

.hero-video-wrap {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(20, 19, 16, 0.68) 0%,
    rgba(20, 19, 16, 0.26) 32%,
    rgba(20, 19, 16, 0.08) 62%,
    rgba(20, 19, 16, 0.02) 100%
  );
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: 40px;
  right: 40px;
  bottom: 48px;
  max-width: 820px;
}

.hero-content h1,
.hero-content p,
.hero-content .eyebrow {
  color: var(--white);
}

.hero-content h1 {
  max-width: 9ch;
  margin-bottom: 18px;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.hero-content .lead {
  max-width: 34rem;
  color: rgba(255, 253, 248, 0.9);
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

main {
  position: relative;
  z-index: 2;
  margin-top: 100vh;
  margin-top: 100svh;
  margin-top: 100dvh;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background: var(--bg);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  transform: translateY(32px);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  box-shadow: 0 -26px 60px rgba(22, 16, 10, 0.06);
}

/* =========================
   SHARED CARDS
   ========================= */

.text-card,
.waitlist-form,
.model-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: linear-gradient(
      180deg,
      var(--surface-highlight),
      rgba(255, 255, 255, 0.16)
    ),
    var(--paper);
}

.text-card,
.waitlist-form {
  padding: 28px;
}

/* =========================
   INTRO SECTIONS
   ========================= */

.cards-section {
  padding-top: 72px;
}

.center-intro {
  max-width: 940px;
  margin: 0 auto 42px;
  text-align: center;
}

.center-intro h2 {
  max-width: 14ch;
  margin-inline: auto;
}

.center-intro p {
  margin-inline: auto;
}

.text-section {
  padding-top: 40px;
}

.text-section .text-block {
  display: grid;
  gap: 22px;
  max-width: 100%;
  text-align: center;
}

.text-section .eyebrow,
.text-section h2,
.text-section .lead {
  margin-bottom: 0;
}

.text-section h2 {
  max-width: 80%;
  margin-inline: auto;
}

.text-section .lead {
  max-width: 900px;
  margin-inline: auto;
}

.text-section p {
  text-align: center;
}

/* =========================
   GENERAL LAYOUT BLOCKS
   ========================= */

.waitlist-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 22px;
}

.image-card,
.location-image-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.image-card img,
.location-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   IMAGE PAIR
   ========================= */

.image-pair-section {
  margin-top: 40px;
}

.image-pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.image-pair-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.image-pair-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   LOCATION
   ========================= */

.location-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.location-stack {
  display: grid;
  gap: 24px;
}

.location-stack .location-text-box {
  height: auto;
}

.location-stack .location-image-box {
  min-height: 420px;
  height: auto;
}

.location-text-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.location-image-box {
  min-height: 520px;
  height: 100%;
}

.location-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.location-fact-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(23, 22, 18, 0.08);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.8);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.35;
}

/* =========================
   SLIDERS
   ========================= */

.overview-slider-wrap,
.process-slider-wrap {
  margin-top: 40px;
  padding-top: 10px;
  overflow: visible;
}

.overview-slider-head,
.process-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.overview-nav,
.process-nav {
  display: flex;
  gap: 10px;
}

.overview-nav-btn,
.process-nav-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.76);
  color: var(--text);
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.overview-nav-btn:hover,
.process-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.overview-slider,
.process-slider {
  overflow: visible;
  padding: 12px 0 8px;
  background: transparent;
}

.overview-slider .swiper-wrapper,
.process-slider .swiper-wrapper {
  align-items: stretch;
}

.overview-slider.is-dragging,
.process-slider.is-dragging,
.model-slider-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.overview-slide-card,
.process-slide-card {
  width: 360px;
  min-height: 280px;
  padding: 28px;
  border: 1px solid rgba(23, 22, 18, 0.07);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  height: auto;
}

.overview-slide-card:hover,
.process-slide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.06);
  border-color: rgba(23, 22, 18, 0.1);
}

.overview-slide-card h3,
.process-slide-card h3 {
  margin-bottom: 12px;
}

.overview-slide-card p,
.process-slide-card p:last-child {
  margin: 0;
  max-width: none;
}

.overview-slide-card .info-icon,
.process-slide-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 20px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.overview-slide-card .info-icon {
  height: 150px;
}

.process-slide-icon {
  height: 84px;
}

.overview-slide-card .info-icon img,
.process-slide-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.process-slide-highlight {
  margin-bottom: 10px;
  color: #000000;
  font-weight: 500;
}

.overview-slider,
.process-slider,
.model-slider-track {
  touch-action: pan-y;
}

.overview-nav-btn.swiper-button-disabled,
.process-nav-btn.swiper-button-disabled,
.model-arrow.swiper-button-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
  transform: none;
}

.overview-slider img,
.process-slider img,
.model-slider-track img {
  user-select: none;
  -webkit-user-drag: none;
}

/* =========================
   FULLWIDTH IMAGES
   ========================= */

.fullwidth-image-section {
  width: min(92%, 1600px);
  margin: 0 auto 50px;
  padding: 0;
}

.fullwidth-image-section img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

/* =========================
   IMAGE STACK
   ========================= */

.image-triplet-stack {
  display: grid;
  gap: 22px;
}

.image-triplet-top,
.image-triplet-bottom {
  display: grid;
  gap: 22px;
}

.image-triplet-top {
  grid-template-columns: 1fr;
}

.image-triplet-bottom {
  grid-template-columns: 1fr 1fr;
}

.image-triplet-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  min-height: 320px;
}

.image-triplet-card-wide {
  min-height: 420px;
}

.image-triplet-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 760px) {
  .image-triplet-bottom {
    grid-template-columns: 1fr;
  }

  .image-triplet-card {
    min-height: 260px;
  }

  .image-triplet-card-wide {
    min-height: 300px;
  }
}

/* =========================
   MODELS
   ========================= */

.models-editorial {
  display: grid;
  gap: 34px;
  margin-top: 32px;
}

.model-card {
  overflow: hidden;
}

.model-slider {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.5), rgba(236, 228, 216, 0.82));
  overflow: hidden;
}

.model-slider-track {
  align-items: stretch;
}

.model-slider-track .swiper-slide {
  width: 100%;
}

.model-slider-track img {
  width: 100%;
  height: min(58vw, 620px);
  object-fit: contain;
  background: linear-gradient(180deg, #ece5da 0%, #e5ddd0 100%);
}

.model-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  transform: translateY(-50%);
  border: 1px solid rgba(23, 22, 18, 0.12);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.78);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.model-arrow:hover {
  transform: translateY(-50%) scale(1.03);
  box-shadow: var(--shadow-soft);
}

.model-arrow-left {
  left: 18px;
}

.model-arrow-right {
  right: 18px;
}

.model-card-body {
  padding: 28px;
}

.model-content-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 32px;
  align-items: start;
}

.model-main-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.model-card-title {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.model-intro-text {
  margin-bottom: 0;
  max-width: 62ch;
  font-size: 1.02rem;
  line-height: 1.7;
}

.model-side-specs h4 {
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.model-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.model-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(23, 22, 18, 0.08);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.35;
}

.model-pill strong {
  margin-right: 4px;
  color: var(--text);
  font-weight: 600;
}

.model-cta {
  margin-top: 24px;
  align-self: flex-start;
  min-width: 180px;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.model-cta:hover {
  transform: translateY(-1px);
  background: var(--white);
  color: var(--dark);
  border-color: rgba(23, 22, 18, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.model-cta:focus-visible {
  outline: 2px solid rgba(23, 22, 18, 0.2);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .model-cta {
    width: 100%;
    justify-content: center;
  }
}

/* =========================
   EFFICIENCY
   ========================= */

.efficiency-section .center-intro h2 {
  max-width: 16ch;
}

.efficiency-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.efficiency-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(23, 22, 18, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

/* =========================
   PARTNERS
   ========================= */

.partners-section {
  padding-top: 40px;
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 32px;
}

.partner-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border: 1px solid rgba(23, 22, 18, 0.07);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);

  align-items: center; 
  text-align: center; 
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 90px;
}

.partner-logo img {
  max-width: 220px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-card p {
  margin: 0;
  max-width: 44ch;
  text-align: center; /* optional, aber sauber */
}

.partner-cta:hover {
  transform: translateY(-1px);
  background: var(--white);
  color: var(--dark);
  border-color: rgba(23, 22, 18, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.partner-cta-group {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
  flex-wrap: wrap; /* wichtig für Mobile */
}

.partner-cta {
  margin-top: 0; /* überschreibt dein bisheriges margin */
  align-self: auto;
}

@media (max-width: 760px) {
  .partner-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .partner-cta {
    width: 100%;
    justify-content: center;
  }
}

/* =========================
   FOOTER
   ========================= */

footer {
  position: relative;
  z-index: 3;
  background: var(--bg);
  padding: 34px 0 60px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

footer .small {
  color: var(--muted);
}

footer a {
  color: var(--text);
}

/* =========================
   REVEAL
   ========================= */

.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 560ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.reveal img {
  transform: translateZ(0);
}

/* =========================
   LEGAL MODAL
   ========================= */

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
}

.legal-modal.open {
  display: block;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 19, 16, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.legal-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 32px));
  height: min(85vh, 900px);
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: #fffdf8;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.18);
  padding: 2rem;
}

.legal-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(23, 22, 18, 0.08);
  background: rgba(255, 253, 248, 0.96);
}

.legal-modal-title-spacer {
  display: block;
  min-height: 1px;
  flex: 1;
}

.legal-modal-close {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(23, 22, 18, 0);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.legal-modal-close:hover {
  background: rgba(23, 22, 18, 0.1);
  transform: translateY(-1px);
}

.legal-modal-close span {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition:
    transform 260ms ease,
    opacity 200ms ease,
    top 260ms ease,
    background 180ms ease;
}

.legal-modal-close span:nth-child(1) {
  top: 15px;
}

.legal-modal-close span:nth-child(2) {
  top: 20px;
}

.legal-modal-close span:nth-child(3) {
  top: 25px;
}

.legal-modal-close.is-active span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.legal-modal-close.is-active span:nth-child(2) {
  opacity: 0;
}

.legal-modal-close.is-active span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

.legal-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 24px;
  background: #fffdf8;
}

.legal-modal-body h1,
.legal-modal-body h2,
.legal-modal-body h3 {
  text-align: left;
}

.legal-modal-body p,
.legal-modal-body li {
  color: var(--text);
  line-height: 1.7;
}

.legal-loading {
  color: var(--muted);
}

body.modal-open {
  overflow: hidden;
}

body.nav-open {
  overflow: hidden;
}
.legal-modal-body h3 {
  margin-top: 32px;
}

/* =========================
   COOKIE BANNER
   ========================= */

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 5000;
  display: flex;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  width: 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(23, 22, 18, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cookie-banner-copy {
  max-width: 680px;
}

.cookie-banner-copy strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.cookie-banner-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 180ms ease;
  font-weight: 600;
}

.cookie-btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(23, 22, 18, 0.12);
}

.cookie-btn-ghost:hover {
  background: rgba(23, 22, 18, 0.05);
}

.cookie-btn-primary {
  background: var(--dark);
  color: var(--white);
  border: 1px solid var(--dark);
}

.cookie-btn-primary:hover {
  transform: translateY(-1px);
  background: #000;
}

.cookie-btn:focus-visible,
.legal-modal-close:focus-visible,
.floating-contact-btn:focus-visible,
.nav-pill:focus-visible,
.nav-pill-dark:focus-visible {
  outline: 2px solid rgba(23, 22, 18, 0.35);
  outline-offset: 3px;
}

.heyflow-consent-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid rgba(23, 22, 18, 0.08);
  text-align: center;
}

.heyflow-consent-box p {
  margin: 0;
  max-width: 48ch;
}

.heyflow-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  width: 100%;
}

.heyflow-reopen-btn {
  margin-top: 4px;
}

.heyflow-consent-box {
  min-height: 220px;
}

/* =========================
   BREAKPOINTS LARGE
   ========================= */

@media (min-width: 1200px) {
  .container {
    width: 84%;
    max-width: 1360px;
  }
}

@media (min-width: 1600px) {
  .container {
    width: 78%;
    max-width: 1280px;
  }
}

@media (min-width: 1920px) {
  .container {
    width: 72%;
    max-width: 1300px;
  }
}

/* =========================
   BREAKPOINTS TABLET
   ========================= */

@media (max-width: 1080px) {


  .model-slider-track img {
    height: 460px;
  }

  .text-section h2 {
    max-width: 100%;
  }
}

@media (max-width: 980px) {
  .site-header {
    width: calc(100% - 24px);
  }

  .nav {
    min-height: 68px;
    padding: 10px 12px;
    gap: 16px;
  }

  .brand-text {
    font-size: 0.86rem;
  }

  .nav-pill {
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .model-content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .model-intro-text {
    max-width: none;
  }
}

/* =========================
   BREAKPOINTS MOBILE
   ========================= */

@media (max-width: 760px) {
  .container {
    width: 100%;
    padding: 0 20px;
  }

  .section {
    padding: 42px 0;
  }

  p,
  p.lead,
  p.model-intro-text,
  p.modell-pill {
    font-size: 0.9em;
  }

  h4 {
    font-size: 0.9em;
  }

  h5 {
    font-size: 1.2em;
    margin-bottom: 15px;
  }

  /* Header */

  .site-header {
    top: 10px;
    width: 100%;
    padding: 0 10px;
  }

  .nav {
    min-height: 64px;
    padding: 10px;
    gap: 14px;
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(23, 22, 18, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  }

  .brand-logo-box {
    width: 38px;
    height: 38px;
  }

  .brand-text {
    font-size: 0.82rem;
    max-width: 220px;
    color: var(--text);
  }

  .menu-toggle {
    display: block;
    position: relative;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 2;
    flex-shrink: 0;
  }

  .menu-toggle span {
    position: absolute;
    left: 12px;
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition:
      transform 260ms ease,
      opacity 200ms ease,
      top 260ms ease,
      background 180ms ease;
  }

  .menu-toggle span:nth-child(1) {
    top: 17px;
  }

  .menu-toggle span:nth-child(2) {
    top: 23px;
  }

  .menu-toggle span:nth-child(3) {
    top: 29px;
  }

  .menu-toggle:hover span {
    background: var(--dark);
  }

  .menu-toggle.is-active span:nth-child(1) {
    top: 23px;
    transform: rotate(45deg);
  }

  .menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-active span:nth-child(3) {
    top: 23px;
    transform: rotate(-45deg);
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(20, 19, 16, 0.18);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  .nav-backdrop[hidden] {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 16px;
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(23, 22, 18, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    z-index: 1001;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-pill,
  .nav-pill-dark {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 52px;
    padding: 0;
    border-radius: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--text) !important;
    transform: none !important;
  }

  .nav-pill:hover,
  .nav-pill-dark:hover,
  .nav-pill:focus,
  .nav-pill-dark:focus {
    background: transparent !important;
    color: var(--text) !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .nav-links a {
    border-bottom: 1px solid rgba(23, 22, 18, 0.08);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  /* Hero */

  .hero-video-section {
    height: 100vh;
    height: 100svh;
    height: 100dvh;
  }

  .hero-video-wrap {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 96px;
    max-width: 34rem;
  }

  .hero-content h1 {
    font-size: clamp(2.8rem, 11.5vw, 4.4rem);
    max-width: 9ch;
  }

  .hero-content .lead {
    max-width: 30rem;
    font-size: 1rem;
  }

  main {
    margin-top: 100vh;
    margin-top: 100svh;
    margin-top: 100dvh;
  }

  /* Text / images */

  .text-section {
    padding-top: 24px;
  }

  .text-section .text-block {
    gap: 16px;
  }

  .image-pair-grid,
  .partners-grid,
  .location-dual-grid {
    grid-template-columns: 1fr;
  }

  .image-pair-card,
  .location-image-box {
    min-height: 300px;
  }

  .location-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .location-facts {
    gap: 8px;
  }

  .location-fact-pill {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.9rem;
    white-space: normal;
  }

  /* Sliders */

  .overview-slider-head,
  .process-slider-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .overview-slide-card,
  .process-slide-card {
    width: 82vw;
    min-height: 236px;
    padding: 22px;
    text-align: center;
  }

  .overview-slide-card .info-icon {
    height: 110px;
  }

  .process-slide-icon {
    height: 74px;
  }

  /* Models */

  .model-card-body {
    padding: 22px;
  }

  .model-card-title {
    margin-bottom: 14px;
  }

  .model-slider-track img {
    height: 100%;
    object-fit: contain;
  }

  .model-arrow {
    width: 46px;
    height: 46px;
  }

  .model-pill-group {
    gap: 8px;
  }

  .model-pill {
    width: 100%;
    justify-content: flex-start;
  }

  /* Efficiency */

  .efficiency-pills {
    justify-content: flex-start;
  }

  .efficiency-pill {
    min-height: 40px;
    padding: 9px 14px;
    font-size: 0.8rem;
  }

  .waitlist-form {
    padding: 18px;
  }

  /* Fullwidth images */

  .fullwidth-image-section {
    width: 100%;
    margin: 28px 0;
    padding: 0 20px;
  }

  .fullwidth-image-section img {
    height: 100%;
    object-fit: contain;
  }

  /* Partners */

  .partner-card {
    padding: 24px;
  }

  .partner-cta-group {
    margin-top: 8px;
  }

  .partner-logo {
    height: 72px;
  }

  .partner-logo img {
    max-width: 180px;
    max-height: 72px;
  }

  /* Footer */

  .footer-row {
    flex-direction: column;
    align-items: center;
  }

  /* Modal */

  .legal-modal-close {
    width: 40px;
    height: 40px;
  }

  .legal-modal-close span {
    left: 10px;
    width: 20px;
  }

  .legal-modal-dialog {
    width: calc(100% - 16px);
    height: calc(100vh - 24px);
    margin: 12px auto;
    border-radius: 18px;
  }

  .legal-modal-head {
    padding: 14px 16px;
  }

  .legal-modal-body {
    padding: 20px 16px;
  }

  /* Cookie banner */

  .cookie-banner {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
  }

  .cookie-banner-inner {
    position: relative;
    z-index: 2;
  }

  .cookie-banner-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
  }

  .cookie-banner-actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }

  .section-cta {
    margin-top: 34px;
    padding: 0 20px;
  }
}

.section-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px 0 0px;
}

/* =========================
   FLOATING CONTACT
   ========================= */

.floating-contact {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(23, 22, 18, 0.12);
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.floating-contact-btn:hover {
  transform: translateY(-1px);
  background: var(--white);
  color: var(--dark);
  border-color: rgba(23, 22, 18, 0.18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.floating-contact-btn-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.floating-contact-btn-dark:hover {
  background: var(--white);
  color: var(--dark);
  border-color: rgba(23, 22, 18, 0.18);
}

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

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

  .hero-video,
  .reveal {
    transform: none !important;
    will-change: auto;
  }

  .reveal {
    opacity: 1;
  }
}

.floating-icon {
  display: flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.floating-icon svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 760px) {
  .floating-contact {
    left: 16px;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
  }

  .floating-contact-btn {
    width: auto;
    min-height: 46px;
    padding: 0 16px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .floating-contact-btn {
    width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 0;
    border-radius: 50%;
  }

  .floating-contact-label {
    display: none;
  }
}
