@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --color-bg: #0f172a;
  --color-bg-deep: #080d1b;
  --color-surface: #141e33;
  --color-indigo: #4f46e5;
  --color-violet: #8b5cf6;
  --color-violet-strong: #7c3aed;
  --color-violet-light: #a98bfa;
  --color-text: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-border: rgb(255 255 255 / 0.12);
  --color-error: #fda4af;
  --shell-width: 1280px;
  --page-gutter: clamp(1.25rem, 4.5vw, 5rem);
  --section-space: clamp(5rem, 10vw, 9rem);
  --radius: 16px;
  --header-height: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background: var(--color-bg-deep);
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Inter", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.shell {
  width: min(100%, calc(var(--shell-width) + (2 * var(--page-gutter))));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.section {
  position: relative;
  padding-block: var(--section-space);
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.section h2 {
  max-width: 12ch;
  margin-bottom: clamp(2.75rem, 6vw, 5rem);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.accent-text {
  color: var(--color-violet-light);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--color-text);
  color: var(--color-bg-deep);
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Layer scale: 10 media content, 30 header, 40 mobile navigation, 100 skip link. */
.header-sentinel {
  position: absolute;
  inset: 0 0 auto;
  height: 16px;
  pointer-events: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  transition:
    background-color 280ms ease,
    border-color 280ms ease;
}

.site-header.is-scrolled,
.site-header.menu-is-open {
  border-color: var(--color-border);
  /* Avoid re-blurring a moving full-screen video behind the fixed header. */
  background: rgb(8 13 27 / 0.96);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 44px;
}

.brand img {
  width: auto;
  height: 48px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
  white-space: nowrap;
}

.desktop-nav > a:not(.button) {
  position: relative;
  padding-block: 0.65rem;
  color: var(--color-text-secondary);
  font-size: 0.94rem;
  font-weight: 520;
  text-decoration: none;
  transition: color 180ms ease;
}

.desktop-nav > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: 0.35rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--ease-out);
}

.desktop-nav > a:not(.button):hover,
.desktop-nav > a:not(.button):focus-visible {
  color: var(--color-text);
}

.desktop-nav > a:not(.button):hover::after,
.desktop-nav > a:not(.button):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.45rem;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  background: linear-gradient(115deg, var(--color-indigo), var(--color-violet-strong));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.2),
    0 12px 28px rgb(25 18 88 / 0.28);
  color: var(--color-text);
  font-weight: 720;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms ease,
    filter 220ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.28),
    0 16px 34px rgb(25 18 88 / 0.4);
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px) scale(0.98);
}

.button-small {
  min-height: 44px;
  padding: 0.68rem 1.15rem;
  font-size: 0.92rem;
}

:focus-visible {
  outline: 3px solid var(--color-violet-light);
  outline-offset: 4px;
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.portal-intro {
  min-height: 100svh;
  background: var(--color-bg);
}

.portal-intro.is-enhanced,
.portal-intro.is-deferred {
  min-height: 300svh;
}

.portal-scene {
  position: sticky;
  top: 0;
  min-height: 100svh;
  overflow: hidden;
  background: var(--color-bg);
  isolation: isolate;
}

.portal-media,
.portal-poster,
.portal-video,
.portal-contrast,
.portal-end-fade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.portal-media {
  z-index: -1;
  contain: paint;
  background: var(--color-bg);
}

.portal-poster,
.portal-video {
  object-fit: cover;
  object-position: center;
}

.portal-poster {
  z-index: 0;
}

.portal-video {
  z-index: 1;
  opacity: 0;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: opacity;
}

.portal-intro.video-visible .portal-video {
  opacity: 1;
}

.portal-contrast {
  z-index: 3;
  background:
    linear-gradient(90deg, rgb(5 10 23 / 0.64) 0%, rgb(5 10 23 / 0.32) 36%, transparent 60%),
    linear-gradient(180deg, rgb(4 8 18 / 0.2), transparent 34%, rgb(4 8 18 / 0.22));
  pointer-events: none;
}

.portal-end-fade {
  z-index: 4;
  background: var(--color-bg);
  opacity: var(--end-overlay, 0);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  padding-top: calc(var(--header-height) + env(safe-area-inset-top));
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

.hero-copy {
  width: min(51rem, 58vw);
  opacity: var(--hero-opacity, 1);
  transform: translate3d(0, var(--hero-shift, 0), 0);
  will-change: transform, opacity;
}

.hero-copy h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3.5rem, 6.8vw, 7rem);
  font-weight: 790;
  letter-spacing: -0.067em;
  line-height: 0.98;
}

.hero-copy h1 span {
  display: block;
  white-space: nowrap;
}

.hero-copy p {
  max-width: 38rem;
  margin-bottom: 2rem;
  color: var(--color-text-secondary);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.5;
}

.scroll-hint {
  position: absolute;
  bottom: max(1.65rem, env(safe-area-inset-bottom));
  left: var(--page-gutter);
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.32);
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  opacity: var(--hint-opacity, 1);
  text-decoration: none;
  transition: color 180ms ease;
}

.scroll-hint:hover,
.scroll-hint:focus-visible {
  color: var(--color-text);
}

.services {
  position: relative;
  overflow: clip;
  background: var(--color-bg);
  isolation: isolate;
}

.services::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 24% 48%, rgb(139 92 246 / 0.09), transparent 31%),
    radial-gradient(circle at 78% 31%, rgb(79 70 229 / 0.055), transparent 28%),
    linear-gradient(180deg, var(--color-bg) 0%, #0d1527 54%, var(--color-bg) 100%);
  content: "";
  pointer-events: none;
}

.services-sticky {
  position: relative;
}

.services-composition {
  display: grid;
  width: min(100%, calc(1500px + (2 * var(--page-gutter))));
  min-height: 100dvh;
  margin-inline: auto;
  padding: calc(var(--header-height) + clamp(3.25rem, 7vw, 7rem)) var(--page-gutter) clamp(5rem, 8vw, 8rem);
  align-items: center;
  column-gap: clamp(3rem, 7vw, 8.5rem);
  grid-template-areas:
    "visual heading"
    "visual list"
    "visual cta";
  grid-template-columns: minmax(27rem, 0.9fr) minmax(34rem, 1.1fr);
  grid-template-rows: auto auto auto;
}

.services-visual {
  position: relative;
  width: 100%;
  max-width: 43rem;
  height: min(76dvh, 49rem);
  min-height: 35rem;
  margin-inline: auto;
  overflow: visible;
  contain: layout paint style;
  grid-area: visual;
  isolation: isolate;
}

.services-visual-backdrop {
  position: absolute;
  inset: 12% -12% 3%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(139 92 246 / 0.115), rgb(79 70 229 / 0.035) 45%, transparent 72%);
  filter: blur(22px);
  opacity: 0.75;
  pointer-events: none;
}

.services-fallback,
.services-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.services-fallback {
  object-fit: contain;
  opacity: 1;
  transition: opacity 420ms ease;
}

.services-canvas {
  opacity: 0;
  outline: none;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.services.is-webgl-ready .services-fallback {
  opacity: 0;
}

.services.is-webgl-ready .services-canvas {
  opacity: 1;
}

.services-heading {
  align-self: end;
  grid-area: heading;
}

.services-eyebrow {
  margin-bottom: clamp(1.1rem, 2.5vh, 1.8rem);
  color: #e2e8f0;
  font-size: 0.74rem;
  font-weight: 590;
  letter-spacing: 0.28em;
  line-height: 1.2;
  text-transform: uppercase;
}

.services-heading h2 {
  max-width: none;
  margin: 0;
  color: #f8fafc;
  font-size: clamp(3rem, 4vw, 4.85rem);
  font-weight: 780;
  letter-spacing: -0.064em;
  line-height: 0.95;
  text-wrap: balance;
}

.services-heading h2 span {
  display: block;
  white-space: nowrap;
}

.services-heading h2 strong {
  color: var(--color-violet-light);
  font: inherit;
}

.services-intro {
  margin: clamp(1.35rem, 3vh, 2.1rem) 0 0;
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 1.35vw, 1.23rem);
  line-height: 1.55;
}

.services-list {
  display: grid;
  align-self: center;
  margin-top: clamp(1.6rem, 3.8vh, 3rem);
  border-top: 1px solid rgb(248 250 252 / 0.2);
  grid-area: list;
}

.service-row {
  text-decoration: none;
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: clamp(5.65rem, 10.2vh, 7rem);
  padding: clamp(1rem, 2.1vh, 1.45rem) 0;
  border: 0;
  border-bottom: 1px solid rgb(248 250 252 / 0.2);
  border-radius: 0;
  background: transparent;
  color: #f8fafc;
  cursor: pointer;
  text-align: left;
  transition:
    color 220ms var(--ease-out),
    opacity 220ms var(--ease-out);
  grid-template-columns: clamp(3rem, 4.7vw, 4.2rem) minmax(0, 1fr) 2.6rem;
}

.service-row::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: clamp(4.5rem, 18%, 8rem);
  height: 2px;
  background: linear-gradient(90deg, var(--color-violet), var(--color-violet-light));
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition:
    opacity 260ms ease,
    transform 480ms var(--ease-out);
}

.service-row:hover,
.service-row:focus-visible,
.service-row.is-active {
  color: #f8fafc;
}

.service-row:focus-visible {
  z-index: 1;
  outline-offset: 5px;
}

.service-row.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.service-number {
  padding-top: 0.24rem;
  color: #aebbd0;
  font-size: clamp(0.83rem, 1.05vw, 0.96rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: color 260ms ease;
}

.service-copy {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.service-name {
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 735;
  letter-spacing: -0.04em;
  line-height: 1.08;
  transition: color 220ms ease;
}

.service-description {
  color: var(--color-text-secondary);
  font-size: clamp(0.93rem, 1.13vw, 1.05rem);
  line-height: 1.48;
}

.service-arrow {
  align-self: center;
  justify-self: end;
  color: #dbe4f0;
  font-size: 1.75rem;
  font-weight: 280;
  line-height: 1;
  transition:
    color 260ms ease,
    transform 340ms var(--ease-out);
}

.service-row:hover .service-arrow,
.service-row:focus-visible .service-arrow {
  transform: translateX(0.22rem);
}

.service-row.is-active .service-number,
.service-row.is-active .service-name,
.service-row.is-active .service-arrow {
  color: var(--color-violet-light);
}

.services-cta {
  display: inline-flex;
  width: max-content;
  min-height: 44px;
  margin-top: clamp(1.75rem, 3.5vh, 2.75rem);
  padding: 0 0.1rem 0.4rem 0;
  align-items: center;
  align-self: start;
  border-bottom: 1px solid rgb(248 250 252 / 0.42);
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 560;
  text-decoration: none;
  white-space: nowrap;
  gap: 1rem;
  grid-area: cta;
  transition:
    border-color 220ms ease,
    color 220ms ease;
}

.services-cta::after {
  position: absolute;
  content: none;
}

.services-cta span:last-child {
  font-size: 1.45rem;
  font-weight: 280;
  transition: transform 300ms var(--ease-out);
}

.services-cta:hover,
.services-cta:focus-visible {
  border-color: var(--color-violet-light);
  color: var(--color-violet-light);
}

.services-cta:hover span:last-child,
.services-cta:focus-visible span:last-child {
  transform: translateX(0.25rem);
}

@media (min-width: 1024px) and (min-height: 640px) and (prefers-reduced-motion: no-preference) {
  .services.is-scroll-story {
    height: 220svh;
  }

  .services.is-scroll-story .services-sticky {
    position: sticky;
    top: var(--services-header-height, var(--header-height));
    display: flex;
    height: calc(100dvh - var(--services-header-height, var(--header-height)));
    min-height: 0;
    align-items: center;
  }

  .services.is-story-layout .services-composition {
    min-height: 0;
    padding-block: 1rem;
    row-gap: clamp(0.75rem, 1.5vh, 1.25rem);
  }

  .services.is-story-layout .services-visual {
    height: min(calc(100dvh - var(--services-header-height, var(--header-height)) - 2rem), 50rem);
    min-height: 0;
  }

  .services.is-story-layout .services-heading h2 {
    font-size: clamp(2.5rem, min(4vw, 6.5vh), 4.85rem);
  }

  .services.is-story-layout .services-eyebrow {
    margin-bottom: clamp(0.75rem, 1.8vh, 1.25rem);
  }

  .services.is-story-layout .services-intro {
    margin-top: clamp(0.75rem, 2vh, 1.35rem);
    font-size: clamp(1rem, 1.35vw, 1.23rem);
    line-height: 1.45;
  }

  .services.is-story-layout .services-list,
  .services.is-story-layout .services-cta {
    margin-top: 0;
  }

  .services.is-story-layout .service-row {
    min-height: clamp(3.75rem, 8vh, 7rem);
    padding-block: clamp(0.5rem, 1.5vh, 1.45rem);
  }

  .services.is-story-layout .service-name {
    font-size: clamp(1.3rem, min(2vw, 3.4vh), 2rem);
  }

  .services.is-story-layout .service-description {
    font-size: clamp(0.88rem, 1.13vw, 1.05rem);
    line-height: 1.4;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .services-visual-backdrop {
    display: none;
  }
}

@media (min-width: 1024px) and (min-height: 640px) and (max-height: 739px) {
  .services.is-story-layout .services-composition {
    padding-block: 0.75rem;
    row-gap: 0.5rem;
  }

  .services.is-story-layout .services-visual {
    height: calc(100dvh - var(--services-header-height, var(--header-height)) - 1.5rem);
  }

  .services.is-story-layout .services-eyebrow {
    margin-bottom: 0.5rem;
  }

  .services.is-story-layout .services-intro {
    margin-top: 0.5rem;
  }

  .services.is-story-layout .service-row {
    min-height: 3.5rem;
    padding-block: 0.35rem;
  }
}

.text-link {
  color: var(--color-violet-light);
  font-weight: 680;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.32em;
}

.projects {
  position: relative;
  overflow: clip;
  padding-block: clamp(7rem, 10vw, 9.5rem) clamp(4.5rem, 8vw, 7rem);
  background: var(--color-bg-deep);
  background:
    radial-gradient(circle at 12% 34%, rgb(79 70 229 / 0.13), transparent 28%),
    radial-gradient(circle at 89% 52%, rgb(139 92 246 / 0.08), transparent 31%),
    #080d1b;
  scroll-margin-top: var(--header-height);
}

.projects::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(180deg, transparent, black 16%, black 76%, transparent);
  pointer-events: none;
}

.projects-inner {
  position: relative;
  width: min(100%, 96rem);
  padding-inline: clamp(1.25rem, 3.4vw, 3.25rem);
}

.projects-intro {
  display: grid;
  align-items: end;
  margin-bottom: clamp(1.7rem, 3vw, 2.5rem);
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.projects-eyebrow,
.project-index,
.project-services p {
  text-transform: uppercase;
}

.projects-eyebrow {
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
  font-size: 0.74rem;
  font-weight: 560;
  letter-spacing: 0.34em;
}

.projects-heading h2 {
  display: grid;
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.5rem, 5.7vw, 5.2rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.projects-heading h2 span {
  display: block;
}

.projects-lead {
  margin: 0.8rem 0 0;
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem clamp(1.1rem, 2.2vw, 2rem);
}

.project-filters button {
  position: relative;
  min-height: 44px;
  padding: 0.55rem 0;
  border: 0;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: 0.91rem;
  transition: color 200ms ease;
}

.project-filters button::after {
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-violet), var(--color-violet-light));
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--ease-out);
}

.project-filters button:hover,
.project-filters button:focus-visible,
.project-filters button[aria-pressed="true"] {
  color: var(--color-text);
}

.project-filters button[aria-pressed="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.projects-story {
  position: relative;
}

.projects-scene {
  position: relative;
}

.project-showcases {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.project-showcase-tafel {
  order: 1;
}

.project-showcase-wortschatz {
  order: 2;
}

.project-showcase-biohof {
  order: 3;
}

.project-showcase {
  position: relative;
  display: grid;
  min-height: clamp(35rem, 45vw, 38.5rem);
  overflow: hidden;
  border: 1px solid rgb(116 143 190 / 0.32);
  border-radius: var(--radius);
  background: #080f1f;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.025),
    0 2rem 6rem rgb(0 0 0 / 0.18);
  grid-template-columns: minmax(0, 2.15fr) minmax(19rem, 0.92fr);
}

.project-showcase[hidden] {
  display: none;
}

.project-showcase-media {
  position: relative;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 19% 77%, rgb(101 69 255 / 0.28), transparent 29%),
    radial-gradient(circle at 73% 20%, rgb(43 76 200 / 0.23), transparent 31%),
    linear-gradient(140deg, #080d1b, #0d1733 58%, #080d1b);
}

.project-showcase-media::before,
.project-showcase-media::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.project-showcase-media::before {
  inset: 0;
  z-index: 4;
  background:
    linear-gradient(90deg, transparent 80%, rgb(8 13 27 / 0.52)),
    linear-gradient(180deg, rgb(255 255 255 / 0.02), transparent 34%, rgb(3 7 17 / 0.22));
}

.project-showcase-media::after {
  right: -6%;
  bottom: -1.5rem;
  left: -4%;
  z-index: 0;
  height: 25%;
  background:
    radial-gradient(ellipse at 45% 64%, rgb(139 92 246 / 0.82), transparent 7%),
    radial-gradient(ellipse at 48% 65%, rgb(79 70 229 / 0.44), transparent 32%),
    linear-gradient(180deg, transparent, rgb(2 5 13 / 0.74));
  filter: blur(0.25rem);
  transform: perspective(25rem) rotateX(66deg);
  transform-origin: bottom;
}

.project-device-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  perspective: 90rem;
  transform-origin: 48% 56%;
  transform-style: preserve-3d;
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .project-showcase-biohof .project-device-stage.is-pointer-active {
    will-change: transform;
  }
}

.project-light {
  position: absolute;
  z-index: -1;
  display: block;
  border-radius: 999px;
  filter: blur(2.2rem);
  pointer-events: none;
}

.project-light-violet {
  right: 14%;
  bottom: 4%;
  width: 49%;
  height: 7%;
  background: rgb(139 92 246 / 0.92);
  box-shadow: 0 0 5rem rgb(139 92 246 / 0.78);
}

.project-light-indigo {
  top: 19%;
  left: 9%;
  width: 45%;
  height: 15%;
  background: rgb(79 70 229 / 0.35);
}

.showcase-monitor {
  position: absolute;
  top: 15%;
  left: 8%;
  width: 78%;
  transform: rotateX(1.5deg) rotateY(-2deg) rotateZ(1.1deg);
  transform-origin: 50% 75%;
  transform-style: preserve-3d;
  will-change: auto;
}

.showcase-monitor-frame {
  position: relative;
  z-index: 2;
  padding: clamp(0.38rem, 0.62vw, 0.62rem);
  border: 1px solid rgb(255 255 255 / 0.27);
  border-radius: 1.2rem;
  background: linear-gradient(145deg, #202635, #080a10 52%, #2d3342);
  box-shadow:
    0 2rem 4rem rgb(0 0 0 / 0.48),
    0 0 0 1px rgb(0 0 0 / 0.78),
    inset 0 1px 0 rgb(255 255 255 / 0.18);
}

.showcase-monitor-screen {
  position: relative;
  overflow: hidden;
  border-radius: 0.72rem;
  background: #f4f2e8;
  aspect-ratio: 16 / 10;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.7);
}

.showcase-monitor-screen img,
.showcase-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.showcase-monitor-neck {
  position: absolute;
  top: 99%;
  left: 50%;
  z-index: 1;
  width: 19%;
  height: 19%;
  background: linear-gradient(90deg, #191d28, #b6b7c0 44%, #4c5260 72%, #0b0e15);
  box-shadow: 0 1rem 2rem rgb(0 0 0 / 0.36);
  clip-path: polygon(27% 0, 73% 0, 88% 100%, 12% 100%);
  transform: translateX(-50%);
}

.showcase-monitor-base {
  position: absolute;
  top: 114%;
  left: 50%;
  z-index: 3;
  width: 42%;
  height: 4.5%;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 50% 50% 22% 22%;
  background: linear-gradient(90deg, #11151f, #aeb1bc 45%, #4c5260 72%, #11151f);
  box-shadow: 0 0.7rem 1.2rem rgb(0 0 0 / 0.42);
  transform: translateX(-50%);
}

.showcase-phone {
  position: absolute;
  z-index: 5;
  padding: clamp(0.26rem, 0.38vw, 0.42rem);
  border: 1px solid rgb(255 255 255 / 0.45);
  border-radius: 13% / 6%;
  background: linear-gradient(105deg, #777d89, #11151d 12%, #bec2ca 25%, #161b25 58%, #747b88);
  box-shadow:
    -1.3rem 2rem 3.5rem rgb(0 0 0 / 0.56),
    0 0 0 1px rgb(0 0 0 / 0.8),
    inset 0.2rem 0 0.4rem rgb(255 255 255 / 0.13);
  transform-style: preserve-3d;
  will-change: auto;
}

.showcase-phone.is-pointer-active,
.showcase-monitor.is-pointer-active {
  will-change: transform;
}

.showcase-phone-biohof {
  right: 5.5%;
  bottom: 4.5%;
  width: 21.5%;
  transform: translateZ(3rem) rotateX(1deg) rotateY(-3deg) rotateZ(-0.7deg);
}

.showcase-phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 11.5% / 5.35%;
  background: #f7f5ed;
  aspect-ratio: 390 / 844;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.86);
}

.showcase-phone-island {
  position: absolute;
  top: 1.35%;
  left: 50%;
  width: 28%;
  height: 2.15%;
  border-radius: 999px;
  background: #020306;
  box-shadow: 0 0.12rem 0.3rem rgb(0 0 0 / 0.62);
  transform: translateX(-50%);
}

.showcase-phone-button {
  position: absolute;
  left: -0.2rem;
  z-index: -1;
  width: 0.22rem;
  border-radius: 0.18rem 0 0 0.18rem;
  background: #6d7480;
}

.showcase-phone-button-top {
  top: 19%;
  height: 7%;
}

.showcase-phone-button-bottom {
  top: 28%;
  height: 11%;
}

.project-device-stage-single .showcase-monitor {
  top: 16%;
  left: 9%;
  width: 82%;
}

.project-showcase-media-wortschatz .showcase-monitor-screen {
  aspect-ratio: 2 / 1;
}

.project-device-stage-phone {
  display: grid;
  place-items: center;
}

.showcase-phone-tafel {
  position: relative;
  width: min(34%, 17.5rem);
  transform: rotateX(1deg) rotateY(-7deg) rotateZ(1deg);
}

.project-showcase-media-tafel {
  background:
    radial-gradient(circle at 50% 48%, rgb(244 122 22 / 0.2), transparent 25%),
    radial-gradient(circle at 30% 66%, rgb(139 92 246 / 0.22), transparent 34%),
    linear-gradient(140deg, #060912, #101731 58%, #070a13);
}

.project-details {
  position: relative;
  z-index: 6;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.2rem, 3.7vw, 4.1rem) clamp(2rem, 3.4vw, 3.6rem);
  background:
    radial-gradient(circle at 100% 30%, rgb(79 70 229 / 0.08), transparent 44%),
    #080f1f;
  will-change: auto;
}

.project-index {
  margin-bottom: 1.15rem;
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
}

.project-index span {
  color: rgb(203 213 225 / 0.42);
}

.project-details h3 {
  margin-bottom: 1.3rem;
  font-size: clamp(2.35rem, 2.9vw, 3.35rem);
  font-weight: 735;
  letter-spacing: -0.055em;
  line-height: 0.97;
  text-wrap: balance;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.55rem;
  gap: 0.6rem;
}

.project-tags span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0.35rem 1rem;
  border: 1px solid rgb(148 163 184 / 0.5);
  border-radius: 999px;
  color: var(--color-text-secondary);
  font-size: 0.86rem;
}

.project-description {
  max-width: 23rem;
  margin-bottom: 2rem;
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 1.28vw, 1.1rem);
  line-height: 1.55;
}

.project-services {
  margin-bottom: 1.7rem;
  padding-top: 1.65rem;
  border-top: 1px solid rgb(148 163 184 / 0.28);
}

.project-services p {
  margin-bottom: 0.4rem;
  color: var(--color-text-muted);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
}

.project-services span {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.project-link {
  display: inline-flex;
  width: max-content;
  min-height: 44px;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 2px solid var(--color-violet);
  color: var(--color-text);
  font-weight: 690;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    color 180ms ease;
}

.project-link span {
  transition: transform 220ms var(--ease-out);
}

.project-link:hover,
.project-link:focus-visible {
  border-color: var(--color-violet-light);
  color: var(--color-violet-light);
}

.project-link:hover span,
.project-link:focus-visible span {
  transform: translate(0.16rem, -0.16rem);
}

.project-contact-prompt {
  display: flex;
  min-height: 6.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgb(148 163 184 / 0.35);
  gap: 1.5rem;
}

.project-contact-prompt p {
  margin: 0;
  font-size: clamp(1.35rem, 2.15vw, 1.85rem);
  font-weight: 560;
  letter-spacing: -0.035em;
}

.button-outline {
  min-width: 11rem;
  border-color: var(--color-violet);
  background: rgb(8 13 27 / 0.35);
  box-shadow: none;
  gap: 0.7rem;
}

@media (max-width: 1023px) {
  .projects-intro {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }

  .project-filters {
    justify-content: flex-start;
  }

  .project-showcase {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .project-showcase-media {
    min-height: clamp(27rem, 65vw, 38rem);
  }

  .project-details {
    padding: clamp(2.25rem, 6vw, 3.75rem);
  }

  .project-details h3 {
    font-size: clamp(2.65rem, 6.5vw, 4rem);
  }
}

@media (max-width: 767px) {
  .projects {
    padding-block: calc(var(--header-height) + 4rem) 4rem;
  }

  .projects::before {
    background-size: 48px 48px;
  }

  .projects-intro {
    margin-bottom: 1.5rem;
    gap: 1.25rem;
  }

  .projects-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.28em;
  }

  .projects-heading h2 {
    font-size: clamp(3rem, 14.3vw, 4.1rem);
    line-height: 0.92;
  }

  .projects-lead {
    margin-top: 0.75rem;
    font-size: 1rem;
  }

  .project-filters {
    gap: 0 1.25rem;
  }

  .project-filters button {
    font-size: 0.85rem;
  }

  .project-showcase {
    border-radius: 0.9rem;
  }

  .project-showcase-media {
    min-height: clamp(22rem, 104vw, 29rem);
  }

  .showcase-monitor {
    top: 17%;
    left: 5%;
    width: 84%;
  }

  .showcase-monitor-frame {
    padding: 0.3rem;
    border-radius: 0.7rem;
  }

  .showcase-monitor-screen {
    border-radius: 0.45rem;
  }

  .showcase-phone-biohof {
    right: 2.5%;
    bottom: 5%;
    width: 26%;
  }

  .project-device-stage-single .showcase-monitor {
    top: 23%;
    left: 5%;
    width: 90%;
  }

  .showcase-phone-tafel {
    width: min(46%, 12rem);
  }

  .project-details {
    padding: 2rem 1.45rem 2.25rem;
  }

  .project-details h3 {
    margin-bottom: 1.15rem;
    font-size: clamp(2.35rem, 11.5vw, 3.15rem);
  }

  .project-description {
    margin-bottom: 1.6rem;
  }

  .project-contact-prompt {
    align-items: stretch;
    padding: 1.5rem 0 0;
    flex-direction: column;
  }

  .project-contact-prompt .button {
    width: 100%;
  }
}

@media (min-width: 1024px) and (min-height: 760px) and (prefers-reduced-motion: no-preference) {
  .projects.is-horizontal .projects-story {
    position: relative;
  }

  .projects.is-horizontal .projects-scene {
    position: sticky;
    top: var(--header-height);
    height: calc(100dvh - var(--header-height));
    min-height: 0;
  }

  .projects.is-horizontal .project-showcases {
    position: absolute;
    inset: 0;
    display: block;
  }

  .projects.is-horizontal .project-showcase {
    --project-panel-x: 100%;
    --project-panel-scale: 1;
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: min(38.5rem, calc(100% - 3rem));
    min-height: 0;
    transform: translate3d(var(--project-panel-x), -50%, 0) scale(var(--project-panel-scale));
    transform-origin: left center;
    will-change: auto;
  }

  .projects.is-horizontal .project-showcase:not(.project-showcase-tafel) {
    box-shadow: -2rem 0 5rem rgb(2 5 12 / 0.42);
  }
}

/* Customer overview: one more panel in the existing project sequence.
   Hexagons and transient hover states stay CSS-only; no extra frame loop. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.project-showcase-logos {
  display: block;
  order: 4;
  min-height: 0;
  overflow: visible;
  padding: 1.5rem 0 2rem;
  border: 0;
  border-radius: 0;
  background: #080d1b;
  box-shadow: none;
  scroll-margin-top: 0;
}

.client-overview-header {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
}

.client-overview-header h3 {
  display: grid;
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 5.2vw, 5.2rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.client-overview-kicker {
  display: flex;
  align-items: center;
  margin: 1.5rem 0 1rem;
  color: var(--color-text-secondary);
  gap: 1rem;
}

.client-overview-kicker h4 {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.client-overview-kicker h4 span { margin-inline: 0.45rem; }
.client-overview-kicker > span { height: 1px; flex: 1; background: rgb(148 163 210 / 0.22); }

.client-honeycomb {
  --honeycomb-gap: clamp(0.4rem, 0.65vw, 0.75rem);
  --honeycomb-cell: min(16vw, 14rem);
  display: grid;
  width: calc(var(--honeycomb-cell) * 5 + var(--honeycomb-gap) * 4);
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-template-rows: repeat(2, calc(var(--honeycomb-cell) * 0.8660254 + var(--honeycomb-gap))) calc(var(--honeycomb-cell) * 1.1547005);
  column-gap: var(--honeycomb-gap);
  list-style: none;
}

.client-hex-item {
  position: relative;
  z-index: 0;
  height: calc(var(--honeycomb-cell) * 1.1547005);
  grid-column: span 2;
  transform-origin: center;
  transition: transform 280ms var(--ease-out);
  pointer-events: none;
}

.client-hex-item:nth-child(6) { grid-column: 2 / span 2; }

.client-hex {
  --hexagon: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgb(158 166 201 / 0.65);
  clip-path: var(--hexagon);
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.client-hex::before,
.client-hex-surface,
.client-hex-surface::before {
  position: absolute;
  inset: 0;
  clip-path: var(--hexagon);
  pointer-events: none;
}

.client-hex::before {
  z-index: 0;
  background: #9858ff;
  content: "";
  opacity: 0;
  transition: opacity 280ms ease;
}

.client-hex-surface {
  z-index: 1;
  inset: 1px;
  background: linear-gradient(145deg, #151a2b, #0d1221 74%);
  transition: transform 280ms var(--ease-out);
}

.client-hex-surface::before {
  background: #dce0e9;
  content: "";
  opacity: 0;
  transition: opacity 280ms ease;
}

.client-logo-images {
  position: absolute;
  inset: 8% 0;
  z-index: 2;
  display: block;
  transform: scale(var(--client-logo-scale, 1));
}

.client-logo-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 280ms ease;
}

.client-logo-gray { opacity: 1; }
.client-logo-color { opacity: 0; }

.client-hex-item:is(.is-selected, .is-focused) {
  z-index: 2;
  filter: drop-shadow(0 0.55rem 0.9rem rgb(3 5 18 / 0.4));
  transform: scale(1.07);
}
.client-hex-item:is(.is-selected, .is-focused) .client-hex::before { opacity: 1; }
.client-hex-item:is(.is-selected, .is-focused) .client-hex-surface { transform: scale(0.987); }
.client-hex-item.is-color-ready:is(.is-selected, .is-focused) .client-logo-gray { opacity: 0; }
.client-hex-item.is-color-ready:is(.is-selected, .is-focused) .client-logo-color { opacity: 1; }
.client-hex-light.is-color-ready:is(.is-selected, .is-focused) .client-hex-surface::before { opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  .client-hex-item:hover {
    z-index: 2;
    filter: drop-shadow(0 0.55rem 0.9rem rgb(3 5 18 / 0.4));
    transform: scale(1.07);
  }
  .client-hex-item:hover .client-hex::before { opacity: 1; }
  .client-hex-item:hover .client-hex-surface { transform: scale(0.987); }
  .client-hex-item.is-color-ready:hover .client-logo-gray { opacity: 0; }
  .client-hex-item.is-color-ready:hover .client-logo-color { opacity: 1; }
  .client-hex-light.is-color-ready:hover .client-hex-surface::before { opacity: 1; }
}

.client-hex:focus-visible { outline: none; }
.client-hex:focus-visible::before { opacity: 1; }
.client-hex:focus-visible .client-hex-surface { transform: scale(0.987); }
.client-hex-item.is-focused { transition: none; }
.client-hex-item.is-focused * { transition-duration: 0ms; }

.project-sequence-navigation {
  position: relative;
  z-index: 6;
  display: grid;
  align-items: center;
  margin-top: 1.75rem;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
}
.project-sequence-navigation[hidden] { display: none; }
.project-slide-count { color: var(--color-text-secondary); font-size: 0.75rem; letter-spacing: 0.12em; }
.project-slide-dots { display: flex; align-items: center; gap: 0.4rem; }
.project-slide-dots button {
  position: relative;
  width: 2rem;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.project-slide-dots button::before {
  position: absolute;
  top: calc(50% - 2px);
  right: 1px;
  left: 1px;
  height: 4px;
  border-radius: 4px;
  background: #3d435f;
  content: "";
}
.project-slide-dots button[aria-current="true"]::before { background: var(--color-violet); }
.project-slide-arrows { display: flex; justify-content: end; gap: 0.75rem; }
.project-slide-arrows button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0 0 0.15rem;
  place-items: center;
  border: 1px solid rgb(190 194 227 / 0.7);
  border-radius: 50%;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: transform 180ms var(--ease-out), background-color 180ms ease;
}
.project-slide-arrows button:enabled:hover { background: rgb(139 92 246 / 0.15); }
.project-slide-arrows button:enabled:active { transform: scale(0.96); }
.project-slide-arrows button:disabled { opacity: 0.3; cursor: default; }

@media (min-width: 1024px) and (min-height: 760px) and (prefers-reduced-motion: no-preference) {
  .projects.is-horizontal .project-showcase { height: min(38.5rem, calc(100% - 7rem)); }
  .projects.is-horizontal .project-showcase-logos {
    height: 100%;
    padding: clamp(0.8rem, 1.7vh, 1.5rem) 0 4rem;
    box-shadow: none;
  }
  .projects.is-horizontal .client-honeycomb {
    --honeycomb-cell: min(16vw, 14rem, calc((100dvh - 26rem) * 0.3464102));
  }
  .projects.is-horizontal .client-overview-kicker { margin: 1rem 0 0.5rem; }
  .projects.is-horizontal .project-sequence-navigation {
    position: absolute;
    right: 0;
    bottom: 0.75rem;
    left: 0;
    margin: 0;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .client-honeycomb {
    --honeycomb-cell: min(20vw, 12rem);
    width: calc(var(--honeycomb-cell) * 4 + var(--honeycomb-gap) * 3);
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: repeat(3, calc(var(--honeycomb-cell) * 0.8660254 + var(--honeycomb-gap))) calc(var(--honeycomb-cell) * 1.1547005);
  }
  .client-hex-item:nth-child(6) { grid-column: span 2; }
  .client-hex-item:nth-child(1), .client-hex-item:nth-child(8) { grid-column: 2 / span 2; }
}

@media (max-width: 1023px) {
  .client-overview-header { grid-template-columns: minmax(0, 1fr); }
  .client-overview-header .project-filters { justify-content: start; }
}

@media (max-width: 767px) {
  .client-honeycomb {
    --honeycomb-cell: min(42vw, 11rem, calc((100vw - 4rem) / 2));
    width: calc(var(--honeycomb-cell) * 2 + var(--honeycomb-gap));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(8, calc(var(--honeycomb-cell) * 0.8660254 + var(--honeycomb-gap))) calc(var(--honeycomb-cell) * 1.1547005);
  }
  .client-hex-item:nth-child(6) { grid-column: span 2; }
  .client-hex-item:nth-child(3n) { grid-column: 2 / span 2; }
  .client-overview-header h3 { font-size: clamp(2.6rem, 8.6vw, 3.5rem); }
  .client-overview-kicker { margin-top: 1.75rem; }
  .project-slide-count { font-size: 0.65rem; }
  .project-sequence-navigation { grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.5rem; }
  .project-slide-dots { gap: 0.1rem; }
  .project-slide-dots button { width: 1.5rem; }
  .project-slide-arrows { gap: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .client-hex-item,
  .client-hex-item:hover,
  .client-hex-item:is(.is-selected, .is-focused),
  .client-hex-surface { transform: none !important; filter: none !important; }
  .client-hex-item, .client-hex-item * { transition-duration: 0.01ms !important; }
}

.about {
  background: var(--color-bg);
}

.about-inner {
  position: relative;
}

.about h2 {
  max-width: 14ch;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.about p {
  max-width: 52rem;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.65;
}

.contact {
  --contact-video-bg: #101a2e;
  --contact-scroll-distance: 150svh;
  position: relative;
  min-height: 100svh;
  overflow: clip;
  background: var(--contact-video-bg);
  scroll-margin-top: var(--header-height);
}

.contact::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 24% 64%, rgb(72 46 148 / 0.09), transparent 62%);
  content: "";
  pointer-events: none;
}

.contact-sticky {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100svh;
  align-items: center;
  padding-block: calc(var(--header-height) + clamp(2.25rem, 5vw, 4.5rem)) clamp(3.5rem, 6vw, 5.5rem);
  isolation: isolate;
  background: var(--contact-video-bg);
}

.contact.is-scroll-story {
  height: calc(var(--contact-scene-height, 100svh) + var(--contact-scroll-distance));
}

.contact.is-scroll-story .contact-sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  padding-block: calc(var(--header-height) + clamp(1.6rem, 3.1vh, 2.75rem)) clamp(1.6rem, 3.1vh, 2.75rem);
}

.contact.has-scroll-motion.is-in-viewport .contact-plane-stage {
  will-change: transform;
}

.contact.is-flight-pending .contact-copy,
.contact.is-flight-pending .contact-direct,
.contact.is-flight-pending .contact-form {
  visibility: hidden;
}

.contact.has-scroll-motion.is-in-viewport .contact-copy,
.contact.has-scroll-motion.is-in-viewport .contact-direct,
.contact.has-scroll-motion.is-in-viewport .contact-form {
  will-change: transform, opacity;
}

.contact-layout {
  display: grid;
  align-items: center;
  gap: clamp(3rem, 6vw, 6.25rem);
  grid-template-columns: minmax(0, 0.92fr) minmax(34rem, 1.08fr);
}

.contact-intro {
  display: grid;
  min-width: 0;
  align-self: stretch;
  grid-template-rows: auto minmax(17rem, 1fr) auto;
}

.contact-intro h2 {
  max-width: 9.4ch;
  margin: 0;
  color: #fff;
  font-size: clamp(3.35rem, 5.2vw, 5.5rem);
  font-weight: 770;
  letter-spacing: -0.067em;
  line-height: 0.94;
}

.contact-eyebrow {
  margin: 0 0 clamp(1.1rem, 2vw, 1.75rem);
  color: var(--color-text-secondary);
  font-size: 0.72rem;
  font-weight: 630;
  letter-spacing: 0.42em;
  line-height: 1.2;
  text-transform: uppercase;
}

.contact-lead {
  margin: clamp(1rem, 2vw, 1.45rem) 0 0;
  color: var(--color-text-secondary);
  font-size: clamp(1.1rem, 1.65vw, 1.48rem);
  line-height: 1.45;
}

.contact-plane-slot {
  position: relative;
  width: 100%;
  min-height: clamp(17rem, 22vw, 23rem);
  align-self: center;
  pointer-events: none;
}

.contact-plane-stage {
  position: absolute;
  top: 50%;
  left: -22%;
  z-index: -1;
  width: 175%;
  aspect-ratio: 16 / 9;
  transform: translateY(-50%);
  transform-origin: 0 0;
  /* Feather the scene into the page; preserve the original chrome shading. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(180deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(180deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  mix-blend-mode: lighten;
  pointer-events: none;
}

.contact-plane-fallback,
.contact-plane-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.contact-plane-fallback {
  opacity: 1;
}

.contact-plane-video {
  display: block;
  opacity: 0;
}

.contact.is-video-ready .contact-plane-video {
  opacity: 1;
}

.contact.is-video-ready .contact-plane-fallback {
  opacity: 0;
}

.contact.is-video-fallback .contact-plane-fallback,
.contact.is-static-end .contact-plane-fallback {
  opacity: 1;
}

.contact.is-video-fallback .contact-plane-video,
.contact.is-static-end .contact-plane-video {
  opacity: 0;
}

.contact-direct {
  display: grid;
  justify-items: start;
  color: var(--color-text-secondary);
  font-size: 0.93rem;
  line-height: 1.45;
  gap: 0.15rem;
}

.contact-email {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--color-violet-light);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  font-weight: 640;
  gap: 0.4rem;
  text-decoration-color: var(--color-violet-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.contact-form {
  scroll-margin-top: calc(var(--header-height) + 1rem);
  position: relative;
  display: grid;
  min-width: 0;
  padding: clamp(1.65rem, 2.55vw, 2.65rem);
  border: 1px solid rgb(129 140 248 / 0.55);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgb(25 38 68 / 0.78), rgb(10 18 35 / 0.84)),
    rgb(15 23 42 / 0.86);
  box-shadow:
    0 32px 90px rgb(0 0 0 / 0.28),
    0 0 55px rgb(79 70 229 / 0.08),
    inset 0 1px 0 rgb(255 255 255 / 0.055);
  gap: clamp(0.9rem, 1.4vh, 1.2rem);
}

.contact-form::before {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at 96% 0%, rgb(139 92 246 / 0.28), transparent 32%);
  content: "";
  pointer-events: none;
}

.contact-form > * {
  position: relative;
}

.contact-form-heading h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.7rem, 2.45vw, 2.45rem);
  font-weight: 740;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.contact-form-heading p {
  margin: 0.5rem 0 0;
  color: var(--color-text-secondary);
  font-size: clamp(0.96rem, 1.3vw, 1.12rem);
}

.service-choice {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.service-choice legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.service-choice-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-choice-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.service-choice-grid label {
  display: grid;
  min-height: 48px;
  place-items: center;
  padding: 0.68rem 0.75rem;
  border: 1px solid rgb(203 213 225 / 0.46);
  border-radius: 999px;
  color: var(--color-text);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 540;
  line-height: 1.1;
  text-align: center;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms var(--ease-out);
}

.service-choice-grid label:hover {
  border-color: rgb(196 181 253 / 0.78);
}

.service-choice-grid input:focus-visible + label {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.service-choice-grid input:checked + label {
  border-color: rgb(196 181 253 / 0.9);
  background: linear-gradient(115deg, #4f46e5, #7c3aed);
  box-shadow:
    0 8px 28px rgb(79 70 229 / 0.3),
    inset 0 1px 0 rgb(255 255 255 / 0.22);
  font-weight: 670;
}

.form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 0.4rem;
}

.form-field label {
  color: var(--color-text);
  font-size: 0.84rem;
  font-weight: 540;
}

.form-optional {
  color: var(--color-text-muted);
  font-size: 0.76rem;
  font-weight: 450;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 54px;
  padding: 0.86rem 1rem;
  border: 1px solid rgb(148 163 184 / 0.36);
  border-radius: 11px;
  background: rgb(7 13 27 / 0.36);
  color: var(--color-text);
  caret-color: var(--color-violet-light);
  outline: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgb(148 163 184 / 0.72);
}

.form-field textarea {
  min-height: clamp(8.3rem, 14vh, 9.25rem);
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-violet-light);
  background: rgb(8 13 27 / 0.58);
  box-shadow: 0 0 0 3px rgb(139 92 246 / 0.2);
}

.form-field [aria-invalid="true"] {
  border-color: var(--color-error);
}

.field-error,
.field-hint {
  min-height: 1em;
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.25;
}

.field-error {
  color: var(--color-error);
}

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

.form-error-summary {
  padding: 0.9rem 1rem;
  border: 1px solid rgb(253 164 175 / 0.5);
  border-radius: 10px;
  background: rgb(127 29 29 / 0.22);
  color: #fecdd3;
}

.form-status {
  min-height: 0;
  margin: -0.25rem 0 0;
  color: var(--color-text-secondary);
  font-size: 0.84rem;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  color: var(--color-error);
}

.form-status.is-success {
  color: #a7f3d0;
}

.form-meta {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  gap: 1rem;
}

.form-meta a {
  color: var(--color-text-secondary);
  text-underline-offset: 0.25em;
}

.submit-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding-inline: 1.35rem;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(105deg, #4f46e5 0%, #6d3df4 48%, #b452eb 100%);
  box-shadow:
    0 14px 38px rgb(79 70 229 / 0.28),
    inset 0 1px 0 rgb(255 255 255 / 0.24);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition:
    filter 180ms ease,
    transform 180ms var(--ease-out),
    box-shadow 180ms ease;
}

.submit-button:hover {
  box-shadow:
    0 18px 46px rgb(79 70 229 / 0.34),
    inset 0 1px 0 rgb(255 255 255 / 0.3);
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.submit-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.submit-arrow {
  font-size: 1.7rem;
  font-weight: 350;
  line-height: 1;
}

.submit-button[disabled] {
  cursor: wait;
  filter: saturate(0.55);
  opacity: 0.7;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  padding-block: clamp(3.5rem, 7vw, 5rem) max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-deep);
}

.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(18rem, 1.7fr) repeat(2, minmax(8rem, 0.6fr));
}

.footer-brand p {
  max-width: 28rem;
  margin: 0.75rem 0 0;
  color: var(--color-text-muted);
}

.footer-grid nav,
.footer-contact {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.65rem;
}

.footer-grid nav a,
.footer-contact a {
  min-height: 32px;
  color: var(--color-text-secondary);
  text-decoration: none;
}

.footer-grid nav a:hover,
.footer-grid nav a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1023px) {
  :root {
    --page-gutter: clamp(1.25rem, 4vw, 2.5rem);
  }

  .desktop-nav {
    gap: 1rem;
  }

  .hero-copy {
    width: 62vw;
  }

  .hero-copy h1 {
    font-size: clamp(3.3rem, 7.2vw, 5.4rem);
  }

  .services-composition {
    min-height: 0;
    padding-top: calc(var(--header-height) + clamp(3.5rem, 8vw, 5.5rem));
    padding-bottom: clamp(5rem, 10vw, 7rem);
    row-gap: 0;
    grid-template-areas:
      "heading"
      "visual"
      "list"
      "cta";
    grid-template-columns: minmax(0, 1fr);
  }

  .services-heading {
    width: min(100%, 48rem);
  }

  .services-heading h2 {
    max-width: none;
    font-size: clamp(3.1rem, 8vw, 5rem);
  }

  .services-visual {
    width: min(100%, 42rem);
    height: min(72vw, 43rem);
    min-height: 30rem;
    margin-block: clamp(2rem, 5vw, 3.5rem);
  }

  .services-list {
    width: min(100%, 48rem);
    margin-top: 0;
  }

  .services-cta {
    margin-top: 2rem;
  }

  .contact-layout {
    width: min(100%, 56rem);
    gap: clamp(3.5rem, 8vw, 5.5rem);
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-sticky {
    min-height: 0;
  }

  .contact-intro {
    grid-template-rows: auto auto auto;
  }

  .contact-intro h2 {
    font-size: clamp(3.5rem, 8vw, 5.35rem);
  }

  .contact-plane-slot {
    width: min(100%, 43rem);
    min-height: 0;
    aspect-ratio: 1.65;
    margin: 1rem auto;
  }

  .contact-direct {
    margin-top: -1rem;
  }

  .contact-form {
    width: min(100%, 48rem);
    justify-self: center;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 64px;
    --page-gutter: clamp(1.25rem, 5vw, 1.5rem);
    --section-space: clamp(4.5rem, 18vw, 5.5rem);
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: rgb(8 13 27 / 0.54);
    cursor: pointer;
    place-content: center;
    gap: 6px;
  }

  .menu-toggle span {
    display: block;
    width: 19px;
    height: 1.5px;
    background: var(--color-text);
    transition: transform 220ms var(--ease-out);
  }

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

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .mobile-nav {
    position: fixed;
    inset: calc(var(--header-height) + env(safe-area-inset-top)) 0 0;
    z-index: 40;
    display: grid;
    align-content: center;
    padding: 2rem var(--page-gutter) max(2rem, env(safe-area-inset-bottom));
    background: rgb(8 13 27 / 0.98);
    gap: 0.35rem;
  }

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

  .mobile-nav a {
    display: flex;
    min-height: 60px;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    font-size: clamp(1.55rem, 7vw, 2.15rem);
    font-weight: 690;
    letter-spacing: -0.035em;
    text-decoration: none;
  }

  .portal-intro.is-enhanced,
  .portal-intro.is-deferred {
    min-height: 210svh;
  }

  .portal-poster,
  .portal-video {
    object-position: 68% center;
  }

  .portal-contrast {
    background:
      linear-gradient(90deg, rgb(4 8 18 / 0.78) 0%, rgb(4 8 18 / 0.45) 55%, rgb(4 8 18 / 0.1)),
      linear-gradient(180deg, rgb(4 8 18 / 0.08), transparent 45%, rgb(4 8 18 / 0.5));
  }

  .hero-layout {
    align-items: center;
    padding-top: calc(var(--header-height) + 1.5rem + env(safe-area-inset-top));
    padding-bottom: max(3rem, env(safe-area-inset-bottom));
  }

  .hero-copy {
    width: 100%;
    max-width: 32rem;
  }

  .hero-copy h1 {
    margin-bottom: 1.15rem;
    font-size: clamp(2.75rem, 13.5vw, 4rem);
    line-height: 1;
  }

  .hero-copy p {
    max-width: 20rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }

  .scroll-hint {
    right: var(--page-gutter);
    left: var(--page-gutter);
    justify-content: space-between;
  }

  .section h2 {
    max-width: 12ch;
  }

  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .services-composition {
    padding-top: calc(var(--header-height) + 3.75rem);
    padding-bottom: 5rem;
  }

  .services-eyebrow {
    margin-bottom: 1rem;
    font-size: 0.69rem;
  }

  .services-heading h2 {
    max-width: 10ch;
    font-size: clamp(2.55rem, 12vw, 4rem);
    line-height: 0.98;
  }

  .services-heading h2 span {
    white-space: normal;
  }

  .services-intro {
    max-width: 28rem;
    margin-top: 1.25rem;
    font-size: 1rem;
  }

  .services-visual {
    width: min(100%, 31rem);
    height: clamp(24rem, 112vw, 35rem);
    min-height: 0;
    margin-block: 1.5rem 2.25rem;
  }

  .service-row {
    min-height: 6.2rem;
    padding-block: 1.15rem;
    grid-template-columns: 2.75rem minmax(0, 1fr) 2rem;
  }

  .service-name {
    font-size: clamp(1.35rem, 6vw, 1.65rem);
  }

  .service-description {
    max-width: 28rem;
    font-size: 0.93rem;
  }

  .service-arrow {
    font-size: 1.5rem;
  }

  .contact-layout {
    gap: 2.75rem;
  }

  .contact-sticky {
    padding-block: calc(var(--header-height) + 3.25rem) 4.5rem;
  }

  .contact-intro h2 {
    max-width: 9ch;
    font-size: clamp(3rem, 14vw, 4.35rem);
  }

  .contact-eyebrow {
    margin-bottom: 1rem;
  }

  .contact-lead {
    margin-top: 1.1rem;
    font-size: 1.05rem;
  }

  .contact-plane-slot {
    width: 100%;
    aspect-ratio: 1.3;
    margin: 0.5rem 0;
  }

  .contact-direct {
    margin-top: -0.5rem;
  }

  .contact-form {
    padding: 1.35rem;
    border-radius: 18px;
    gap: 1rem;
  }

  .contact-form-heading h3 {
    font-size: clamp(1.65rem, 7.5vw, 2.1rem);
  }

  .service-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .submit-button {
    width: 100%;
  }

  .footer-grid {
    gap: 2.25rem;
  }
}

@media (max-width: 374px) {
  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .hero-copy p {
    max-width: 17rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .portal-intro,
  .portal-intro.is-enhanced {
    min-height: 100svh;
  }

  .portal-video {
    display: none;
  }

  .services,
  .services.is-scroll-story {
    height: auto !important;
  }

  .services-sticky {
    position: relative !important;
    top: auto !important;
    height: auto !important;
  }

  .services-canvas {
    display: none;
  }

  .services-fallback {
    opacity: 1 !important;
  }

  .contact,
  .contact.is-scroll-story {
    height: auto !important;
  }

  .contact-sticky,
  .contact.is-scroll-story .contact-sticky {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: 100svh;
  }

  .contact-plane-video {
    display: none;
  }

  .contact-plane-fallback {
    opacity: 1 !important;
  }

  .showcase-monitor,
  .showcase-phone,
  .project-device-stage,
  .project-details,
  .project-light {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto;
  }

  .hero-copy {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled,
  .site-header.menu-is-open,
  .mobile-nav,
  .contact-form {
    background: var(--color-bg-deep);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
