:root {
  --galaxy: #000030;
  --tiefblau: #020219;
  --dunkel: #05054a;
  --purple: #3b4ce0;
  --accent-deep: #1e2a86;
  --sky: #9dc3fa;
  --flieder: #c3c3fa;
  --ice: #d7ebf0;
  --offwhite: #f0f0f5;
  --ink: #0a0f2c;
  --muted: #545b73;
  --line: #e3e7f0;
  --hairline: rgba(10, 15, 44, 0.09);
  --page: #f6f8fc;
  --display: 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--page);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.018;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 40;
  background: var(--purple);
  color: white;
  padding: 0.65rem 1rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 31;
  height: 2px;
  background: transparent;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--sky));
  transform-origin: left;
  transition: width 0.1s linear;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  min-height: 64px;
  padding: 0.65rem clamp(1rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--galaxy);
  border-bottom: 1px solid rgba(157, 195, 250, 0.18);
}

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

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem 1rem;
}

.nav-links a {
  color: rgba(240, 240, 245, 0.82);
  font-size: 0.86rem;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
  background: rgba(157, 195, 250, 0.1);
  transform: none;
}

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

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--offwhite);
  border-radius: 2px;
}

.hero {
  min-height: min(82vh, 780px);
  padding: clamp(5.5rem, 9vh, 7.2rem) clamp(1.25rem, 5vw, 5rem) clamp(2.4rem, 4.5vh, 3.6rem);
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(460px, 0.96fr);
  align-items: center;
  gap: clamp(1.5rem, 3.8vw, 4rem);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 10%, rgba(157, 195, 250, 0.2), transparent 44%),
    radial-gradient(circle at 6% 94%, rgba(30, 42, 134, 0.05), transparent 48%),
    linear-gradient(172deg, #fdfeff 0%, #f4f7fc 62%, #edf1f8 100%);
  color: var(--ink);
}

.hero-field {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background-image:
    linear-gradient(rgba(10, 15, 44, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 15, 44, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.hero-glow {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 22% 28%, rgba(59, 76, 224, 0.12), transparent 38%),
    radial-gradient(circle at 82% 74%, rgba(157, 195, 250, 0.18), transparent 40%);
  filter: blur(72px);
  animation: heroDrift 34s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroDrift {
  0% {
    transform: translate(-3%, -2%) scale(1);
  }
  50% {
    transform: translate(3%, 2%) scale(1.08);
  }
  100% {
    transform: translate(-2%, 3%) scale(1);
  }
}

.hero-copy,
.hero-media {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 5.6vw, 6.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 700px;
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 3.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.026em;
  max-width: 820px;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.28;
  letter-spacing: -0.006em;
}

p {
  line-height: 1.6;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-actions a,
.contact-section a {
  border: 1px solid rgba(11, 11, 56, 0.16);
  color: var(--ink);
  background: #ffffff;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.02rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.hero-actions a:hover,
.contact-section a:hover {
  box-shadow: 0 10px 28px rgba(11, 11, 56, 0.12);
}

.hero-actions a:first-child,
.contact-section a {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
  box-shadow: 0 10px 26px rgba(95, 55, 240, 0.28);
}

.hero-media {
  margin: 0;
  align-self: center;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(215, 235, 240, 0.34);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.42);
}

.wafer-decision-card {
  background:
    radial-gradient(circle at 82% 16%, rgba(157, 195, 250, 0.2), transparent 38%),
    radial-gradient(circle at 8% 96%, rgba(215, 235, 240, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(0, 0, 48, 0.96), rgba(2, 2, 25, 0.94) 58%, rgba(5, 5, 74, 0.88));
  border: 1px solid rgba(157, 195, 250, 0.34);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 40px 90px rgba(10, 15, 44, 0.28);
  transform: translateY(var(--parallax-y, 0px));
}

.wafer-decision-card img {
  object-fit: contain;
  background: white;
  border: 0;
  box-shadow: none;
}

.interactive-wafer-card {
  color: white;
}

.wafer-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.1rem 0;
}

.wafer-card-head > span {
  color: var(--offwhite);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wafer-card-head em {
  margin-left: 0.45rem;
  color: var(--sky);
  font-style: normal;
  font-weight: 800;
}

.wafer-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.22rem;
  border: 1px solid rgba(157, 195, 250, 0.22);
  border-radius: 9px;
  background: var(--tiefblau);
}

.wafer-toolbar button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--flieder);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.42rem 0.65rem;
}

.wafer-toolbar button[aria-pressed="true"] {
  background: var(--dunkel);
  color: var(--offwhite);
}

.wafer-map-shell {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transform: translateZ(0);
  background:
    radial-gradient(circle at 28% 22%, rgba(157, 195, 250, 0.16), transparent 34%),
    radial-gradient(circle at 72% 72%, rgba(215, 235, 240, 0.06), transparent 36%),
    linear-gradient(135deg, var(--tiefblau), var(--galaxy) 60%, var(--dunkel));
  border: 1px solid rgba(157, 195, 250, 0.2);
  aspect-ratio: 16 / 9;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 0.55rem;
  padding: 0.55rem;
}

.wafer-map-plot {
  position: relative;
  min-width: 0;
  min-height: 0;
}

#interactive-wafer {
  width: 100%;
  height: 100%;
  display: block;
}

.wafer-map-tooltip {
  position: absolute;
  z-index: 3;
  max-width: 180px;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: var(--galaxy);
  border: 1px solid rgba(157, 195, 250, 0.22);
  color: var(--offwhite);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  line-height: 1.35;
  pointer-events: none;
  box-shadow: 0 14px 36px rgba(0, 0, 48, 0.2);
}

.wafer-map-tooltip strong {
  display: block;
  color: var(--sky);
  margin-bottom: 0.2rem;
}

.map-dot {
  transition: fill 0.42s ease, opacity 0.42s ease;
}

.map-ring {
  transition: cx 0.42s ease, cy 0.42s ease, r 0.42s ease;
}

.map-axis-label {
  fill: #c3c3fa;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wafer-map-legend {
  position: static;
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 0.7rem;
  width: auto;
  color: var(--flieder);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wafer-map-legend span {
  position: relative;
  z-index: 1;
  background: var(--galaxy);
  padding: 0.14rem 0.16rem;
}

.wafer-map-legend i {
  display: block;
  width: 13px;
  min-height: 126px;
  height: calc(100% - 18px);
  align-self: center;
  border-radius: 2px;
  border: 0;
  margin: 0.45rem 0 0.95rem;
  background: linear-gradient(to top, #000030 0%, #193760 22%, #5a7080 50%, #c2b85c 78%, #d7ebf0 100%);
}

.wafer-map-caption {
  margin: 0.65rem 0 0;
  padding: 0.62rem 0.75rem;
  border-radius: 9px;
  background: var(--tiefblau);
  color: var(--flieder);
  font-size: 0.82rem;
  line-height: 1.35;
  border: 1px solid rgba(157, 195, 250, 0.16);
}

.hero-media figcaption {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.hero-media figcaption span {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(157, 195, 250, 0.22);
  background: var(--dunkel);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.section {
  padding: clamp(3.6rem, 7.5vw, 8rem) clamp(1.25rem, 5vw, 5rem);
  scroll-margin-top: 72px;
}

.split-section,
.technical-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.44fr) minmax(0, 0.78fr);
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: start;
  background: white;
}

.split-section {
  align-items: center;
}

.technical-section {
  grid-template-columns: minmax(0, 0.78fr) minmax(260px, 0.44fr);
}

.technical-section .section-lead {
  order: 2;
}

.hero > *,
.split-section > *,
.technical-section > *,
.workflow-grid > *,
.maps-section > *,
.contact-section > * {
  min-width: 0;
}

.split-copy > p,
.section-lead > p,
.technical-section > p,
.contact-section > p {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 840px;
}

.compact-grid,
.project-grid,
.application-grid,
.proof-grid,
.basis-cards,
.wide-grid,
.fit-grid {
  display: grid;
  gap: 1.5rem;
}

.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.compact-grid article,
.project-grid article,
.application-grid article,
.proof-grid article,
.basis-cards article,
.tool-list,
.wide-grid article,
.fit-grid article {
  position: relative;
  border: none;
  border-radius: 18px;
  background: #ffffff;
  padding: 1.9rem;
  box-shadow: 0 1px 3px rgba(10, 15, 44, 0.04);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease;
}

.compact-grid article:hover,
.project-grid article:hover,
.application-grid article:hover,
.proof-grid article:hover,
.basis-cards article:hover,
.tool-list:hover,
.wide-grid article:hover,
.fit-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(10, 15, 44, 0.08);
}


.compact-grid p,
.project-grid p,
.application-grid h3,
.proof-grid p,
.basis-cards p,
.tool-list p,
.wide-grid p,
.fit-grid li {
  color: var(--muted);
}

.workflow {
  background: linear-gradient(180deg, #f3f4fd, #ffffff);
  padding: 1.2rem clamp(1.25rem, 4.5vw, 4.8rem) 0;
  scroll-margin-top: 72px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(390px, 0.92fr) minmax(300px, 0.5fr);
  gap: clamp(1.25rem, 3.2vw, 3rem);
  align-items: start;
}

.workflow-visual {
  position: sticky;
  top: 88px;
  height: calc(100vh - 108px);
  display: grid;
  align-items: center;
  padding: 1rem 0;
}

.stage-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  min-height: 360px;
  aspect-ratio: 16 / 9;
  padding-bottom: 6.3rem;
  background: var(--galaxy);
  border: 1px solid rgba(95, 55, 240, 0.28);
  box-shadow: 0 38px 90px rgba(0, 0, 48, 0.2);
}

.stage-image {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: calc(100% - 6.3rem);
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 0.62s ease, transform 1.05s ease;
}

.stage-image.active {
  opacity: 1;
  transform: scale(1);
}

.stage-diagram {
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 28%, rgba(215, 235, 240, 0.18), transparent 28%),
    radial-gradient(circle at 72% 72%, rgba(157, 195, 250, 0.14), transparent 34%),
    linear-gradient(135deg, #05054a, #020219);
}

.diagram-wafer-img {
  display: block;
  width: min(48%, 350px);
  height: auto;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 48, 0.32));
}

.diagram-wafer-img.small {
  width: min(35%, 250px);
  justify-self: start;
  margin-left: 8%;
}

.diagram-dotfield {
  display: none;
}

.diagram-dotfield.compact {
  display: none;
}

.diagram-selection {
  position: absolute;
  left: 44.61%;
  top: 46.55%;
  width: min(8.8%, 62px);
  aspect-ratio: 1.22;
  border: 3px solid var(--tiefblau);
  border-radius: 50%;
  transform: translate(-90%, -60%);
  box-shadow: 0 0 0 1px rgba(240, 240, 245, 0.5);
}

.diagram-selection::after {
  content: "candidate";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  white-space: nowrap;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: var(--tiefblau);
  padding: 3px 8px;
  border-radius: 4px;
}

.diagram-selection.small {
  left: 21.31%;
  top: 42.77%;
  width: min(6.4%, 45px);
}

.diagram-selection.small::after {
  font-size: 9px;
  padding: 2px 6px;
}

.diagram-ruled-out {
  position: absolute;
  left: 61.45%;
  top: 74.62%;
  width: min(13%, 92px);
  aspect-ratio: 1.22;
  border: 2px dashed var(--tiefblau);
  border-radius: 50%;
  transform: translate(-90%, -60%);
  opacity: 0.92;
}

.diagram-ruled-out::after {
  content: "ruled out";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  white-space: nowrap;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--tiefblau);
  background: var(--ice);
  padding: 3px 8px;
  border-radius: 4px;
  opacity: 1;
}

.diagram-samples {
  position: absolute;
  right: 8%;
  top: 25%;
  width: 38%;
  height: 48%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.diagram-samples::before,
.diagram-samples::after,
.project-mark-samples::before,
.project-mark-samples::after,
.project-mark-followup::before,
.project-mark-followup::after {
  content: "";
  display: block;
  border-radius: 7px;
  border: 1px solid rgba(157, 195, 250, 0.45);
  background: linear-gradient(180deg, #f0f0f5 0%, #d7ebf0 40%, #9dc3fa 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 48, 0.26);
}

.diagram-samples::after {
  background: linear-gradient(180deg, #d8deef 0%, #afcffe 40%, #79a5e6 100%);
}

.diagram-samples.wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  right: 7%;
  width: 48%;
}

.project-mark {
  position: relative;
  height: 112px;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 24%, rgba(195, 195, 250, 0.35), transparent 40%),
    linear-gradient(135deg, #eef1fd, #e3ebfa);
  border: 1px solid rgba(11, 11, 56, 0.06);
}

.project-mark-library span,
.project-mark-followup span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 108px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background-image: url("../assets/figures/wafer-core-thumb.svg?v=20260707-wafer6");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 48, 0.2));
}

.project-mark-followup span {
  background-image: url("../assets/figures/wafer-core-selected-thumb.svg?v=20260707-wafer16");
}

.project-mark-samples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
}

.project-mark-samples span {
  display: block;
  height: 58px;
  border-radius: 7px;
  border: 1px solid rgba(157, 195, 250, 0.42);
  background: linear-gradient(180deg, #f0f0f5 0%, #d7ebf0 40%, #9dc3fa 100%);
}

.project-mark-followup::before,
.project-mark-followup::after {
  position: absolute;
  right: 12%;
  width: 58px;
  height: 38px;
}

.project-mark-followup::before {
  top: 26px;
}

.project-mark-followup::after {
  bottom: 22px;
  background: linear-gradient(180deg, #d8deef 0%, #afcffe 40%, #79a5e6 100%);
}

.stage-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 9px;
  color: white;
  background: var(--galaxy);
  border: 1px solid rgba(157, 195, 250, 0.26);
}

.stage-caption span {
  display: block;
  color: var(--sky);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 0.18rem;
}

.stage-caption p {
  margin: 0.22rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.35;
}

.workflow-steps {
  padding: 2.8rem 0 44vh;
}

.workflow-intro {
  margin-bottom: 1.35rem;
}

.workflow-step {
  min-height: 54vh;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 0.8rem;
  padding: 1.45rem 0;
  opacity: 0.44;
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.workflow-step.active {
  opacity: 1;
  transform: translateX(-0.22rem);
}

.workflow-step > span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--purple);
  color: white;
  font-weight: 800;
  font-size: 0.82rem;
  margin-top: 0.1rem;
}

.workflow-step p {
  max-width: 520px;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.project-section {
  background: var(--offwhite);
  border-radius: 28px;
  margin-inline: clamp(12px, 2vw, 32px);
}

.project-grid {
  margin-top: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid img,
.application-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 7px;
  margin-bottom: 1rem;
}

.applications {
  background: var(--offwhite);
  border-radius: 28px;
  margin-inline: clamp(12px, 2vw, 32px);
}

.section-lead {
  max-width: 920px;
  margin-bottom: 1.25rem;
}

.section-notes {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.section-notes span {
  display: block;
  border-left: 3px solid var(--sky);
  padding: 0.5rem 0.65rem;
  border-radius: 0 8px 8px 0;
  background: rgba(157, 195, 250, 0.12);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.application-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.application-grid article,
.compact-grid article,
.project-grid article,
.proof-grid article,
.wide-grid article {
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.42s ease, opacity 0.42s ease, border-color 0.2s ease;
}

.application-grid article {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.application-grid article.in,
.compact-grid article.in,
.project-grid article.in,
.proof-grid article.in,
.wide-grid article.in {
  transform: translateY(0);
  opacity: 1;
}

.application-grid article:hover {
  border-color: rgba(95, 55, 240, 0.42);
}

.application-grid p {
  margin: 0 0 0.55rem;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 800;
}

.application-grid h3 {
  font-size: 1.02rem;
  line-height: 1.28;
}

.technical-section {
  background: var(--offwhite);
  border-radius: 28px;
  margin-inline: clamp(12px, 2vw, 32px);
}

.materials-section {
  background: white;
}

.wide-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.materials-section .wide-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-rows: repeat(3, auto);
}

.materials-section .wide-grid article:first-child {
  grid-row: 1 / span 3;
  background: linear-gradient(155deg, #eef0ff, #e2ebfc 68%, #ddeaf5);
  border-color: rgba(95, 55, 240, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 1.9rem;
}

.library-diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background:
    radial-gradient(circle at 30% 28%, rgba(215, 235, 240, 0.18), transparent 28%),
    radial-gradient(circle at 72% 72%, rgba(157, 195, 250, 0.14), transparent 34%),
    linear-gradient(135deg, #05054a, #020219);
  box-shadow: 0 20px 44px rgba(10, 15, 44, 0.22);
}

.library-diagram .diagram-wafer-img.small {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
}

.library-diagram .diagram-samples.wide {
  right: 6%;
}

.materials-section .wide-grid article:first-child h3 {
  font-size: 1.55rem;
}

.materials-section .wide-grid article:first-child p {
  font-size: 1.02rem;
}

.materials-section .wide-grid article:not(:first-child) h3 {
  font-size: 1.3rem;
}

.materials-section .wide-grid article:not(:first-child) p {
  font-size: 1.02rem;
}

.maps-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 0.78fr);
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: center;
  background: var(--offwhite);
  border-radius: 28px;
  margin-inline: clamp(12px, 2vw, 32px);
}


.map-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 0.75rem;
  box-shadow: 0 24px 58px rgba(0, 0, 48, 0.08);
}

.map-panel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 9px;
  background: white;
  padding: 0.75rem;
  max-height: 420px;
}

.map-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.38fr);
  gap: 0.85rem;
  padding: 0.65rem 0.2rem 0;
}

.map-copy p {
  margin: 0;
  color: var(--muted);
}

.map-list {
  display: grid;
  gap: 0.35rem;
}

.map-list span,
.evidence-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.42rem 0.6rem;
  border-radius: 999px;
  background: #ecefff;
  color: var(--dunkel);
  font-weight: 800;
  font-size: 0.82rem;
}

.fit-section {
  background: var(--offwhite);
  border-radius: 28px;
  margin-inline: clamp(12px, 2vw, 32px);
}

.fit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fit-grid ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.fit-grid li + li {
  margin-top: 0.65rem;
}

.technical-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

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

.basis-cards span {
  display: inline-flex;
  color: var(--purple);
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin-top: 1rem;
}

.tool-tags span {
  display: inline-flex;
  padding: 0.32rem 0.5rem;
  border-radius: 999px;
  background: #ecefff;
  color: var(--dunkel);
  font-weight: 700;
  font-size: 0.68rem;
  white-space: nowrap;
}

.proof-section {
  background: var(--offwhite);
  border-radius: 28px;
  margin-inline: clamp(12px, 2vw, 32px);
}

.proof-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.35rem;
}

.evidence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.proof-note {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 800px;
}

.contact-section {
  padding: clamp(2.2rem, 4vw, 3.4rem) clamp(1.25rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.78fr) auto;
  align-items: center;
  gap: 1.25rem;
  background: white;
  scroll-margin-top: 72px;
}

.contact-section a {
  white-space: nowrap;
  padding: 0.68rem 0.9rem;
  font-size: 0.92rem;
}

footer {
  background: var(--tiefblau);
  color: var(--flieder);
  padding: 2.8rem 6%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.8rem;
  font-size: 0.79rem;
  font-weight: 300;
}

.flogo {
  height: 50px;
  margin-bottom: 0.7rem;
  display: block;
}

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

footer a:hover {
  text-decoration: underline;
}

.flinks {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.fleg {
  color: rgba(157, 195, 250, 0.3);
  font-size: 0.7rem;
  margin-top: 0.5rem;
}

@media (max-width: 1120px) {
  .application-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem clamp(1rem, 4vw, 4rem) 1rem;
    background: rgba(0, 0, 48, 0.98);
    border-bottom: 1px solid rgba(157, 195, 250, 0.18);
  }

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

  .nav-links a {
    width: 100%;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(157, 195, 250, 0.1);
  }
}

@media (max-width: 900px) {
  .topbar {
    position: sticky;
    top: 0;
  }

  .hero,
  .split-section,
  .workflow-grid,
  .technical-section,
  .maps-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 4.8rem;
    gap: 1.25rem;
  }

  .workflow {
    padding: 0;
  }

  .workflow-visual {
    top: 64px;
    height: auto;
    padding: 0.7rem 1rem;
    margin-bottom: 0.75rem;
    background: #f0f0f5;
    border-bottom: 1px solid #d9deed;
    box-shadow: 0 18px 34px rgba(0, 0, 48, 0.1);
    z-index: 5;
  }

  .workflow-steps {
    padding: 2rem 1.25rem 34vh;
  }

  .workflow-intro {
    margin-bottom: 1.25rem;
  }

  .workflow-step {
    min-height: 13rem;
    padding: 1rem 0;
  }

  .stage-shell {
    min-height: 320px;
    padding-bottom: 6rem;
  }

  .stage-image {
    height: calc(100% - 6rem);
  }

  .diagram-wafer-img {
    width: min(62vw, 220px);
  }

  .diagram-wafer-img.small {
    width: min(42vw, 150px);
    margin-left: 7%;
  }

  .diagram-samples {
    right: 7%;
    top: 27%;
    width: 42%;
    height: 42%;
    gap: 0.45rem;
  }

  .diagram-samples.wide {
    right: 6%;
    width: 48%;
  }

  .stage-caption {
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.55rem;
  }

  .project-grid,
  .proof-grid,
  .wide-grid,
  .fit-grid,
  .map-copy {
    grid-template-columns: 1fr;
  }

  .materials-section .wide-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .materials-section .wide-grid article:first-child {
    grid-row: auto;
  }

  .compact-grid,
  .basis-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .technical-layout {
    gap: 0.75rem;
  }

  .tool-tags {
    gap: 0.4rem;
    margin-top: 0.75rem;
  }

  footer {
    padding: 2rem 5%;
  }
}

@media (max-width: 560px) {
  .hero-media figcaption,
  .application-grid,
  .compact-grid,
  .basis-cards {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.3rem, 12vw, 3.5rem);
  }

  h2 {
    font-size: clamp(1.75rem, 8.5vw, 2.65rem);
  }

  .stage-caption {
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.55rem;
    border-radius: 9px;
  }

  .stage-caption p {
    display: none;
  }

  .contact-section a {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .workflow-step {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0.8rem;
    min-height: 11.5rem;
  }

  .workflow-step > span {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }
}

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