:root {
  --bg: #03050b;
  --bg-alt: #050818;
  --card: #0b1021;
  --card-2: #111732;
  --accent: #4af5ff;
  --accent-2: #ff8df0;
  --accent-3: #7b5dff;
  --text: #f7f9ff;
  --muted: #9aa3c5;
  --nav-chip-gradient: linear-gradient(120deg, rgba(74, 245, 255, 0.35), rgba(123, 93, 255, 0.35));
  --nav-chip-border: rgba(74, 245, 255, 0.45);
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(74, 245, 255, 0.08), transparent 45%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body.scroll-panels {
  scroll-snap-type: y proximity;
}

body.scroll-panels .hero,
body.scroll-panels .subpage-hero,
body.scroll-panels .lab-hero,
body.scroll-panels .contact-hero,
body.scroll-panels .scroll-panel,
body.scroll-panels footer {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

body.page-services {
  background: radial-gradient(circle at top, rgba(255, 141, 240, 0.12), transparent 50%),
    linear-gradient(160deg, #03050b, #050c18 50%, #090b1f);
}

body.page-labs {
  background: radial-gradient(circle at 20% 20%, rgba(74, 245, 255, 0.15), transparent 55%),
    linear-gradient(140deg, #050a18, #010409 70%, #081229);
}

body.page-contact {
  background: radial-gradient(circle at 80% 10%, rgba(123, 93, 255, 0.18), transparent 60%),
    linear-gradient(180deg, #03050a, #050712 55%, #090c1a);
}

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

section {
  padding: clamp(2.25rem, 6vw, 4.5rem) clamp(1rem, 5vw, 5rem);
}

.scroll-panel {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(1rem, 2.5vh, 2.2rem);
}

.scroll-panel.panel-compact {
  padding-top: clamp(1.6rem, 4vw, 3rem);
  padding-bottom: clamp(1.6rem, 4vw, 3rem);
  gap: clamp(0.6rem, 1.6vh, 1.2rem);
}

.page-home .insights.panel-compact {
  padding-bottom: clamp(0.75rem, 2vw, 1.5rem);
  margin-bottom: 0;
}

.panel-compact .section-header,
.scroll-panel.panel-compact > .section-header {
  margin-bottom: clamp(0.4rem, 2vh, 1.25rem);
}

.scroll-panel > .section-header {
  margin-bottom: clamp(1rem, 3vh, 2.5rem);
}

body.reveal-ready [data-reveal] {
  --reveal-transform: translateY(24px) scale(0.98);
  --reveal-filter: blur(0px);
  --reveal-delay: 0s;
  opacity: 0;
  transform: var(--reveal-transform);
  filter: var(--reveal-filter);
  transition: opacity 0.8s ease, transform 0.85s ease, filter 0.85s ease;
  transition-delay: var(--reveal-delay);
}

body.reveal-ready [data-reveal].visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0px);
}

[data-reveal-effect='slide-left'] {
  --reveal-transform: translateX(-36px) scale(0.98);
}

[data-reveal-effect='slide-right'] {
  --reveal-transform: translateX(36px) scale(0.98);
}

[data-reveal-effect='zoom'] {
  --reveal-transform: scale(0.9);
}

[data-reveal-effect='tilt'] {
  --reveal-transform: rotateX(10deg) translateY(30px);
  transform-origin: top center;
}

[data-reveal-effect='glow'] {
  --reveal-transform: scale(0.94);
  --reveal-filter: blur(12px);
}

[data-reveal-effect='pcb-flow'] {
  --reveal-transform: translateY(60px) scale(0.96) skewX(-4deg);
  --reveal-filter: blur(12px);
}

[data-reveal-effect='fan'] {
  --reveal-transform: perspective(700px) rotateY(-14deg) translateY(24px);
  transform-origin: left center;
}

[data-reveal-effect='cascade'] {
  --reveal-transform: translateY(40px) scale(0.94);
  --reveal-delay: 0.05s;
}

[data-reveal-effect='ripple'] {
  --reveal-transform: scale(0.92) translateY(36px);
  --reveal-filter: blur(18px);
}

[data-reveal-effect='lift'] {
  --reveal-transform: translate3d(0, 40px, 0) scale(0.98) rotateX(6deg);
  transform-origin: center bottom;
}

[data-reveal-effect='spotlight'] {
  --reveal-transform: translateY(45px) scale(0.94);
}

[data-reveal-effect='glide'] {
  --reveal-transform: translateY(32px) skewY(3deg);
}

[data-reveal-effect='flare'] {
  --reveal-transform: scale(0.95) translateY(20px);
  --reveal-filter: blur(6px);
}

[data-reveal-effect='ripple'],
[data-reveal-effect='spotlight'],
[data-reveal-effect='flare'] {
  position: relative;
}

[data-reveal-effect='ripple']::after,
[data-reveal-effect='spotlight']::after,
[data-reveal-effect='flare']::after {
  content: '';
  position: absolute;
  inset: 1rem;
  border-radius: 2rem;
  background: radial-gradient(circle, rgba(74, 245, 255, 0.25), transparent 65%);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
  filter: blur(18px);
}

body.reveal-ready [data-reveal].visible[data-reveal-effect='ripple']::after,
body.reveal-ready [data-reveal].visible[data-reveal-effect='spotlight']::after,
body.reveal-ready [data-reveal].visible[data-reveal-effect='flare']::after {
  opacity: 1;
  transform: scale(1.05);
}

.differentiators[data-reveal-effect='ripple']::after {
  inset: 1.5rem;
  background: radial-gradient(circle, rgba(66, 158, 134, 0.14), transparent 70%);
  filter: blur(30px);
}

[data-parallax] {
  --parallax-offset: 0px;
  will-change: transform;
  transition: transform 0.4s ease;
  transform: translateY(var(--parallax-offset));
}

body.reveal-ready .stagger-grid > * {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--stagger-delay, 0s);
}

body.reveal-ready .visible .stagger-grid > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.reveal-ready .stagger-grid > *:nth-child(1) { --stagger-delay: 0s; }
body.reveal-ready .stagger-grid > *:nth-child(2) { --stagger-delay: 0.05s; }
body.reveal-ready .stagger-grid > *:nth-child(3) { --stagger-delay: 0.1s; }
body.reveal-ready .stagger-grid > *:nth-child(4) { --stagger-delay: 0.15s; }
body.reveal-ready .stagger-grid > *:nth-child(5) { --stagger-delay: 0.2s; }
body.reveal-ready .stagger-grid > *:nth-child(6) { --stagger-delay: 0.25s; }
body.reveal-ready .stagger-grid > *:nth-child(7) { --stagger-delay: 0.3s; }
body.reveal-ready .stagger-grid > *:nth-child(8) { --stagger-delay: 0.35s; }
body.reveal-ready .stagger-grid > *:nth-child(9) { --stagger-delay: 0.4s; }
body.reveal-ready .stagger-grid > *:nth-child(10) { --stagger-delay: 0.45s; }
body.reveal-ready .stagger-grid > *:nth-child(11) { --stagger-delay: 0.5s; }
body.reveal-ready .stagger-grid > *:nth-child(12) { --stagger-delay: 0.55s; }

body.reveal-ready .stagger-grid > * {
  transition-delay: var(--stagger-delay, 0s);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.04);
  z-index: 999;
  overflow: hidden;
}

.scroll-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2));
  box-shadow: 0 0 12px rgba(74, 245, 255, 0.5);
}

.hero {
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 6vw, 6rem) clamp(4rem, 8vw, 7rem);
  background: radial-gradient(circle at 20% 20%, rgba(74, 245, 255, 0.18), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(123, 93, 255, 0.25), transparent 60%),
    linear-gradient(120deg, rgba(4, 9, 20, 0.95), rgba(6, 10, 26, 0.95));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --cursorX: 50%;
  --cursorY: 50%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--cursorX) var(--cursorY), rgba(74, 245, 255, 0.3), transparent 45%);
  opacity: 0.85;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: -1;
}


.subpage-hero,
.lab-hero,
.contact-hero {
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 6vw, 6rem) clamp(4rem, 8vw, 6rem);
  background: linear-gradient(135deg, rgba(74, 245, 255, 0.06), rgba(123, 93, 255, 0.1), rgba(255, 141, 240, 0.06));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.subpage-hero__content,
.lab-hero__content,
.contact-hero__content {
  display: grid;
  gap: clamp(2rem, 6vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-highlights {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.hero-highlights li {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-highlights strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

[data-hover-card] {
  position: relative;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(
    --card-bg,
    linear-gradient(135deg, rgba(7, 11, 26, 0.95), rgba(3, 5, 14, 0.85))
  );
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

[data-hover-card]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(74, 245, 255, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

[data-hover-card]:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(74, 245, 255, 0.5);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.35);
}

[data-hover-card]:hover::after {
  opacity: 1;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  gap: 1.5rem;
  position: relative;
  z-index: 3;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  letter-spacing: 0.75px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.logo-img {
  height: clamp(60px, 100vw, 100px);
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.32));
}

.logo-text {
  display: none;
  font-size: clamp(1rem, 2.3vw, 1.08rem);
  letter-spacing: 0.8px;
}

.logo.logo-fallback .logo-img {
  display: none;
}

.logo.logo-fallback .logo-text {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 0.75rem;
  background: rgba(74, 245, 255, 0.16);
  border: 1px solid rgba(74, 245, 255, 0.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--nav-chip-border);
  background: var(--nav-chip-gradient);
  background-size: 220% 220%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.35s ease;
  --cursorX: 50%;
  --cursorY: 50%;
  --hover-strength: 0;
  gap: 0.45rem;
  color: #f4fbff;
  box-shadow: 0 12px 28px rgba(4, 10, 25, 0.28);
  transform: translate3d(0, calc(var(--hover-strength) * -4px), 0) scale(calc(1 + var(--hover-strength) * 0.04));
}

.nav-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--cursorX) var(--cursorY),
    rgba(74, 245, 255, 0.25),
    transparent 55%
  );
  opacity: calc(0.18 + var(--hover-strength) * 0.65);
  transition: opacity 0.3s ease;
  filter: blur(calc(3px + var(--hover-strength) * 4px));
}

.nav-links a::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(74, 245, 255, 0.4);
  opacity: calc(0.25 + var(--hover-strength) * 0.7);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s ease;
  transform: scale(calc(0.96 + var(--hover-strength) * 0.05));
}

.nav-links .nav-label {
  position: relative;
  z-index: 1;
}

.nav-icon {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(74, 245, 255, 0.35), rgba(141, 96, 255, 0.35));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 10px rgba(4, 8, 20, 0.55);
  overflow: hidden;
}

.nav-icon::after {
  content: '';
  position: absolute;
  inset: -15%;
  border-radius: inherit;
  border: 1px solid rgba(118, 255, 245, 0.55);
  opacity: calc(0.25 + var(--hover-strength) * 0.75);
  transform: rotate(8deg) scale(calc(0.7 + var(--hover-strength) * 0.6));
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.nav-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: var(--accent, #76fff5);
  opacity: 0.9;
  transform: translate3d(0, calc(var(--hover-strength) * -1px), 0);
  transition: transform 0.3s ease;
}

.nav-links a.active .nav-icon {
  background: linear-gradient(135deg, rgba(74, 245, 255, 0.5), rgba(123, 93, 255, 0.55));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 8px 18px rgba(4, 8, 20, 0.65);
}

.nav-links a.active {
  color: var(--accent);
  border-color: rgba(74, 245, 255, 0.7);
  background: linear-gradient(120deg, rgba(74, 245, 255, 0.55), rgba(123, 93, 255, 0.55));
}

.nav-links a.quote-btn {
  padding: 0.6rem 1.5rem;
  font-weight: 600;
}

.quote-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.4s ease, box-shadow 0.4s ease;
  gap: 0.3rem;
}

.quote-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.hero-content {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  position: relative;
  z-index: 2;
  padding: clamp(1rem, 3vw, 1.75rem);
  border-radius: 2rem;
  background: linear-gradient(130deg, rgba(3, 6, 16, 0.92), rgba(3, 6, 16, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(22px);
  isolation: isolate;
  flex: 1;
  width: 100%;
  align-content: center;
}

.hero-text {
  padding: clamp(1rem, 2.5vw, 2rem) clamp(0.5rem, 2vw, 1.75rem) clamp(1rem, 3vw, 2rem);
  border-radius: 1rem;
  position: relative;
}

.hero-text::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(74, 245, 255, 0.25), transparent);
  pointer-events: none;
}

.hero-media-shell {
  position: relative;
  z-index: 2;
}

.tag {
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.85rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin: 1rem 0;
  line-height: 1.2;
}

.subtitle {
  color: var(--muted);
  max-width: 38rem;
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cta .hero-quote {
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  text-transform: none;
}

.primary,
.secondary {
  position: relative;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  font-weight: 600;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  background-size: 200% 200%;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background-position 0.5s ease;
  box-shadow: 0 18px 35px rgba(5, 10, 25, 0);
  --cursorX: 50%;
  --cursorY: 50%;
  --hover-strength: 0;
}

.primary::before,
.secondary::before,
.quote-btn::before,
button::before {
  content: '';
  position: absolute;
  inset: -8%;
  border-radius: inherit;
  background: radial-gradient(circle at var(--cursorX, 50%) var(--cursorY, 50%), rgba(74, 245, 255, 0.45), rgba(123, 93, 255, 0.15) 55%, transparent 75%);
  opacity: calc(var(--hover-strength, 0) * 0.85);
  transform: scale(calc(0.88 + var(--hover-strength, 0) * 0.25));
  transition: opacity 0.35s ease, transform 0.45s ease, filter 0.45s ease;
  pointer-events: none;
  filter: blur(calc(4px + 8px * var(--hover-strength, 0)));
  mix-blend-mode: screen;
  z-index: 0;
}

.primary::after,
.secondary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--cursorX) var(--cursorY), rgba(255, 255, 255, 0.6), transparent 55%);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: -1;
}

.primary:hover,
.primary:focus-visible,
.secondary:hover,
.secondary:focus-visible {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 45px rgba(5, 15, 35, 0.45);
}

.primary:hover::after,
.primary:focus-visible::after,
.secondary:hover::after,
.secondary:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.primary {
  color: #05060a;
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
}

.secondary {
  color: #f4fbff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.05), rgba(8, 19, 39, 0.65));
}

@media (prefers-reduced-motion: reduce) {
  .primary,
  .secondary {
    transition: none;
  }
}

.hero-ticker {
  margin-top: 2.5rem;
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-ticker li {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: pulse 8s ease-in-out infinite;
}

.hero-ticker li.active {
  border-color: rgba(74, 245, 255, 0.5);
  color: var(--text);
}

.hero-media {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  isolation: isolate;
}


.hero-trace-surface {
  position: absolute;
  top: clamp(3rem, 8vw, 5.5rem);
  right: clamp(1rem, 5vw, 4rem);
  bottom: clamp(2rem, 7vw, 4rem);
  left: auto;
  width: min(520px, 55vw);
  border-radius: 2rem;
  pointer-events: none;
  --traceX: 50%;
  --traceY: 50%;
  z-index: 1;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 20%, rgba(0, 0, 0, 0.9) 55%, rgba(0, 0, 0, 1) 100%);
}

.hero-trace-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--traceX) var(--traceY), rgba(74, 245, 255, 0.28), transparent 60%);
  filter: blur(50px);
  opacity: 0.65;
}

.hero-trace-surface::after {
  content: '';
  position: absolute;
  inset: clamp(0.75rem, 2vw, 1.5rem);
  border-radius: 1.5rem;
  background-image: url('assets/pattern-pcb.svg');
  background-size: 260% 260%;
  background-position: center;
  mix-blend-mode: screen;
  opacity: 0.45;
  mask-image: radial-gradient(circle at var(--traceX) var(--traceY), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.65) 32%, rgba(0, 0, 0, 0) 58%);
  transition: mask-position 0.25s ease;
}

.slider-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.slider-label small {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: none;
  letter-spacing: normal;
}

.hero-slider {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  height: clamp(320px, 44vw, 460px);
  isolation: isolate;
}

.hero-slider::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(6, 10, 25, 0.85), rgba(3, 5, 12, 0.6));
  mix-blend-mode: soft-light;
  z-index: 1;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04) translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  position: relative;
}

.hero-visual {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  --image-pan-x: 50%;
  --image-pan-y: 50%;
  --image-pan-x-num: 50;
  --image-pan-y-num: 50;
  --image-scale: 1;
  isolation: isolate;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--image-pan-x, 50%) var(--image-pan-y, 50%);
  transform-origin: calc(var(--image-pan-x-num, 50) * 1%) calc(var(--image-pan-y-num, 50) * 1%);
  transform: scale(var(--image-scale, 1));
  filter: saturate(1.05);
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, rgba(0, 0, 0, 0.25), transparent 55%);
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 0.5;
}

.hero-slide figcaption {
  position: absolute;
  inset: auto 1.2rem 1.2rem 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: rgba(7, 10, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
  line-height: 1.2;
}

.hero-slide strong {
  font-size: 1rem;
}

.hero-slider-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem;
  pointer-events: none;
  z-index: 3;
}

.hero-slider-controls button {
  width: 48px;
  height: 48px;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(5, 8, 24, 0.75);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.hero-slider-controls button:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 245, 255, 0.6);
  background: rgba(8, 14, 38, 0.9);
}

.frame-helper {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: min(360px, calc(100vw - 2rem));
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgba(5, 8, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.45);
  color: var(--text);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.frame-helper header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.frame-helper header strong {
  font-size: 0.95rem;
}

.frame-helper button {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-radius: 0.5rem;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}

.frame-helper button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.frame-helper label {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  gap: 0.3rem;
}

.frame-helper label span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.frame-helper label span strong {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.frame-helper select,
.frame-helper input[type='range'] {
  width: 100%;
}

.frame-helper input[type='range'] {
  accent-color: var(--accent);
}

.frame-helper code {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.35rem;
  border-radius: 0.4rem;
  word-break: break-all;
}

.frame-helper[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .hero-slider-controls {
    padding: 0 0.35rem;
  }

  .hero-slider-controls button {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

.slider-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.slider-indicators button {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.slider-indicators button.active {
  background: rgba(74, 245, 255, 0.2);
  color: white;
  border-color: rgba(74, 245, 255, 0.6);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 6vw, 6rem) clamp(3rem, 6vw, 4rem);
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

@media (max-width: 960px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(900px, calc(100% - 2rem));
  }
}

@media (max-width: 560px) {
  .metrics {
    grid-template-columns: 1fr;
  }
}

.metrics div {
  background: var(--card);
  padding: 1.35rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  transition: transform 0.4s ease, border-color 0.4s ease;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.metrics div:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 245, 255, 0.4);
}

.metrics h3 {
  font-size: 2rem;
}

.section-header {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.services {
  background: linear-gradient(180deg, rgba(5, 8, 24, 0.8), rgba(5, 8, 24, 0.95));
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.service-grid article {
  --card-bg: linear-gradient(160deg, rgba(9, 14, 32, 0.95), rgba(6, 9, 20, 0.85));
  padding: 1.7rem;
  min-height: 190px;
  position: relative;
  overflow: hidden;
}

.service-grid article::before {
  content: '';
  position: absolute;
  inset: -20% 10% auto;
  height: 60%;
  background: linear-gradient(120deg, rgba(74, 245, 255, 0.25), transparent 65%);
  opacity: 0;
  transform: skewY(-8deg);
  transition: opacity 0.4s ease;
}

.service-grid article::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(74, 245, 255, 0.12);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-grid article:hover::before,
.service-grid article:hover::after {
  opacity: 1;
}

.differentiators {
  position: relative;
  background: linear-gradient(160deg, rgba(5, 8, 22, 0.98), rgba(3, 6, 14, 0.98));
  overflow: hidden;
  isolation: isolate;
}

.differentiators::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(46, 175, 150, 0.08), transparent 55%),
    radial-gradient(circle at 85% 0%, rgba(87, 122, 255, 0.08), transparent 45%);
  pointer-events: none;
  z-index: -1;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.diff-grid article {
  background: var(--card-2);
  border-radius: 1.2rem;
  padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.diff-grid ul {
  margin-top: 1rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.diff-grid li {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.process {
  background: radial-gradient(circle at 10% 20%, rgba(74, 245, 255, 0.08), transparent 50%), var(--bg);
}

.process ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.process li {
  list-style: none;
  background: var(--card);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.process li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(74, 245, 255, 0.15);
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.industries {
  background: #06070f;
}

.chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
}

[data-hover-chip] {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  overflow: hidden;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

[data-hover-chip]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(74, 245, 255, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

[data-hover-chip]:hover {
  color: var(--text);
  border-color: rgba(74, 245, 255, 0.5);
  background: rgba(74, 245, 255, 0.08);
}

[data-hover-chip]:hover::after {
  opacity: 1;
}

.trust {
  text-align: center;
  background: linear-gradient(180deg, rgba(4, 7, 15, 0.9), rgba(3, 4, 10, 0.95));
}

.trust-ribbon {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.5rem 0;
}

.trust-ribbon span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  letter-spacing: 0.4px;
}

.labs {
  background: radial-gradient(circle at top right, rgba(123, 93, 255, 0.1), transparent 50%), var(--bg-alt);
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.lab-grid article {
  background: rgba(8, 11, 24, 0.85);
  border-radius: 1.1rem;
  padding: 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
}

.lab-grid span {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
  background: #04050d;
  padding: clamp(0.9rem, 2vw, 1.35rem) clamp(1rem, 4vw, 2.25rem);
  margin-top: clamp(0.35rem, 1vw, 0.75rem);
  margin-bottom: clamp(0.35rem, 1vw, 0.7rem);
}

.insights.panel-compact {
  padding-top: clamp(0.65rem, 1.8vw, 1.1rem);
  padding-bottom: clamp(0.4rem, 1.4vw, 0.9rem);
  margin-top: clamp(0.25rem, 1vw, 0.6rem);
  margin-bottom: clamp(0.2rem, 0.8vw, 0.5rem);
}

.insights article {
  background: var(--card-2);
  border-radius: 1.2rem;
  padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.insights ul {
  margin-top: 1rem;
  padding-left: 1rem;
  color: var(--muted);
  display: grid;
  gap: 0.4rem;
}

.samples {
  background: #04070f;
  padding-bottom: clamp(1rem, 3vw, 2rem);
  margin-bottom: 0;
}

.samples.panel-compact {
  padding-bottom: clamp(0.5rem, 2vw, 1.4rem);
}

.samples + .cta {
  margin-top: 0;
}

.samples.panel-compact + .cta.panel-compact {
  padding-top: clamp(0.75rem, 2.5vw, 1.4rem);
}

.sample-carousel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sample-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sample-track::before,
.sample-track::after {
  content: '';
  flex: 0 0 clamp(0.5rem, 2vw, 1.25rem);
}

.sample-track::-webkit-scrollbar {
  display: none;
}

.sample-track figure {
  flex: 0 0 clamp(260px, 32vw, 360px);
  scroll-snap-align: center;
  transform: translateY(var(--parallax-offset, 0px));
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: radial-gradient(circle at 50% 30%, rgba(6, 18, 26, 0.55), rgba(3, 7, 15, 0.95));
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}

.sample-track figure:hover {
  transform: translateY(calc(var(--parallax-offset, 0px) - 10px));
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4);
}

.sample-visual {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #02050c;
  overflow: hidden;
  position: relative;
  --image-pan-x: 50%;
  --image-pan-y: 50%;
  --image-pan-x-num: 50;
  --image-pan-y-num: 50;
  --image-scale: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sample-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--image-pan-x, 50%) var(--image-pan-y, 50%);
  transform-origin: calc(var(--image-pan-x-num, 50) * 1%) calc(var(--image-pan-y-num, 50) * 1%);
  transform: scale(var(--image-scale, 1));
  filter: saturate(1.05);
  transition: opacity 0.6s ease;
}

.sample-visual img.gallery-layer {
  opacity: 0;
}

.sample-visual img.gallery-layer.active {
  opacity: 1;
}

.sample-track figcaption {
  padding: 1.4rem;
}

.sample-track figcaption span {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.sample-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.sample-controls button {
  width: 44px;
  height: 44px;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.sample-controls button:hover {
  border-color: rgba(74, 245, 255, 0.5);
  background: rgba(74, 245, 255, 0.08);
}

.cta {
  position: relative;
  overflow: hidden;
  border-radius: 1.8rem;
  background: rgba(5, 8, 20, 0.85);
  border: 1px solid rgba(74, 245, 255, 0.18);
  box-shadow: 0 40px 100px rgba(1, 3, 15, 0.6);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.cta.panel-compact {
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 3rem);
  gap: clamp(0.75rem, 2.5vw, 1.4rem);
}

.cta::before,
.cta::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at var(--cursorX, 50%) var(--cursorY, 50%), rgba(74, 245, 255, 0.22), transparent 60%);
  opacity: 0.4;
  transform: rotate(8deg);
  animation: ctaSweep 18s linear infinite;
  pointer-events: none;
}

.cta::after {
  animation-duration: 28s;
  animation-direction: reverse;
  opacity: 0.25;
  filter: blur(30px);
}

.cta-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.cta-intro h2 {
  max-width: 28ch;
}

.cta-highlights {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.9rem;
}

.cta-highlights li {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.2rem;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cta-highlights strong {
  font-size: 1.35rem;
  color: var(--accent);
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.cta-badge {
  padding: 0.85rem 1.2rem;
  border-radius: 1rem;
  background: rgba(74, 245, 255, 0.08);
  border: 1px solid rgba(74, 245, 255, 0.35);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  line-height: 1.3;
  box-shadow: inset 0 0 25px rgba(74, 245, 255, 0.15);
  align-self: flex-start;
}

.cta-badge span {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}

.cta .primary {
  width: auto;
  min-width: 0;
  padding: 0.85rem 1.9rem;
  border-radius: 1.25rem;
}

.cta-modal {
  position: fixed;
  inset: 0;
  padding: clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 3, 8, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 999;
  overflow-x: hidden;
  overflow-y: auto;
}

.cta-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.cta-modal-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.cta-modal-card {
  position: relative;
  background: #040712;
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.8rem);
  border: 1px solid rgba(74, 245, 255, 0.2);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  width: clamp(520px, 56vw, 880px);
  max-width: calc(100vw - clamp(1.6rem, 5vw, 4rem));
  max-height: calc(100vh - clamp(2rem, 8vh, 5.5rem));
  overflow-y: auto;
  overflow-x: hidden;
  margin: auto;
  animation: modalLift 0.45s ease;
}

.cta-modal-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.cta-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
}

.cta-upload-form {
  display: grid;
  gap: 1rem;
}

.cta-upload-form button[type='submit'] {
  width: fit-content;
  min-width: 12rem;
  justify-self: flex-start;
  align-self: center;
}

.cta-upload-form .primary,
.cta-upload-form .secondary,
.cta-upload-form .ghost {
  width: auto;
  min-width: 13rem;
  justify-self: flex-start;
  align-self: center;
  flex: 0 0 auto;
  white-space: nowrap;
}

.file-drop {
  border: 1px dashed rgba(74, 245, 255, 0.35);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  background: rgba(74, 245, 255, 0.04);
  cursor: pointer;
  display: grid;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
}

.file-drop input {
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-drop span {
  font-weight: 600;
}

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

.file-drop.dragging {
  background: rgba(74, 245, 255, 0.12);
  border-color: rgba(74, 245, 255, 0.85);
}

.file-list {
  min-height: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.file-list span {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes modalLift {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.contact {
  background: #070914;
}

.contact-form {
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  display: grid;
  gap: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted);
}

input,
textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem;
  color: var(--text);
  border-radius: 0.6rem;
  font: inherit;
}

input[type='file'] {
  padding: 0.5rem;
  border-radius: 0.6rem;
  cursor: pointer;
}

button {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #05060a;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.4s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background-size: 200% 200%;
  --cursorX: 50%;
  --cursorY: 50%;
  --hover-strength: 0;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

button,
.primary,
.secondary,
.quote-btn {
  filter: drop-shadow(0 0 calc(20px * var(--hover-strength, 0)) rgba(74, 245, 255, 0.25))
    drop-shadow(0 0 calc(32px * var(--hover-strength, 0)) rgba(123, 93, 255, 0.2));
}

body.modal-open {
  overflow: hidden;
}

footer {
  padding: 1.6rem clamp(1rem, 5vw, 5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  background: #03040a;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-about {
  max-width: 460px;
  margin: 0.35rem 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer-location-label {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #93e0ff;
}

.footer-location {
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.8);
}

.footer-copy {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  flex-basis: 100%;
}

@keyframes float {
  0% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-10px) rotate(var(--rot, 0deg)); }
  100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
}

@keyframes pulse {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

@keyframes ctaSweep {
  0% { transform: rotate(8deg) translate3d(-5%, -5%, 0); }
  50% { transform: rotate(4deg) translate3d(5%, 5%, 0); }
  100% { transform: rotate(8deg) translate3d(-5%, -5%, 0); }
}

@media (max-width: 960px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .nav-links a {
    flex: 1 1 calc(50% - 0.75rem);
    text-align: left;
    border: 1px solid var(--nav-chip-border);
    border-radius: 999px;
    background: var(--nav-chip-gradient);
    color: #f4fbff;
  }

  .nav-links .quote-btn {
    flex-basis: 100%;
  }

  .nav-links .nav-icon {
    flex-shrink: 0;
  }

  .hero-media {
    order: -1;
  }
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
  }

  /* Turn off snap scrolling on tablets/phones to prevent panels from collapsing or feeling jumpy. */
  body.scroll-panels {
    scroll-snap-type: none;
  }

  body.scroll-panels .hero,
  body.scroll-panels .subpage-hero,
  body.scroll-panels .lab-hero,
  body.scroll-panels .contact-hero,
  body.scroll-panels .scroll-panel,
  body.scroll-panels footer {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero-media-shell,
  .hero-media,
  .hero-slider {
    width: 100%;
  }

  .hero-media-shell {
    justify-self: center;
  }

  .hero-slider {
    height: clamp(240px, 52vw, 360px);
  }
}

@media (max-width: 640px) {
  /* Keep content visible on phones even if scripts lag or fail. */
  [data-reveal] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
  }

  /* Keep the navigation visible on all small-screen loads. */
  .nav {
    position: sticky;
    top: 0;
    padding-top: 0.6rem;
    padding-bottom: 0.2rem;
    background: linear-gradient(180deg, rgba(4, 8, 20, 0.98), rgba(4, 8, 20, 0.9));
    z-index: 6;
  }

  .nav {
    align-items: stretch;
    flex-direction: column;
    gap: 0.65rem;
  }

  .nav-links {
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    row-gap: 0.65rem;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    pointer-events: auto;
  }

  .nav-links .nav-link,
  .nav-links .quote-btn {
    padding: 0.65rem 0.85rem;
    gap: 0.5rem;
  }

  .nav-links .nav-icon {
    width: 1.55rem;
    height: 1.55rem;
  }

  section,
  .hero,
  .subpage-hero,
  .lab-hero,
  .contact-hero {
    padding: clamp(1.25rem, 6vw, 2.1rem) clamp(0.85rem, 6vw, 1.5rem);
  }

  .hero-text h1 {
    font-size: clamp(1.85rem, 6vw, 2.3rem);
  }

  .hero-cta {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero-slider {
    height: auto;
    min-height: 320px;
  }

  /* Keep the hero frame visible on phones even if scripts lag. */
  .hero-slider .hero-slide {
    display: flex;
    flex-direction: column;
    min-height: 260px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    position: relative;
    overflow: hidden;
  }

  .hero-slider .hero-slide.active,
  .hero-slider .hero-slide:first-child {
    height: auto;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .hero-slide figcaption {
    position: static;
    margin-top: 0.65rem;
    background: rgba(7, 10, 23, 0.8);
    border-radius: 0.9rem;
    padding: 0.7rem 0.75rem;
  }

  .hero-slide figcaption {
    position: static;
    margin-top: 0.65rem;
    background: rgba(7, 10, 23, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.9rem;
    padding: 0.85rem 0.95rem;
  }

  .metrics {
    width: min(960px, calc(100% - 1.4rem));
  }

  .slider-indicators {
    flex-direction: column;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form,
  .engage-form {
    padding: 1.5rem;
  }

  .engage-form {
    margin: 0 1rem;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  section,
  .hero,
  .subpage-hero,
  .lab-hero,
  .contact-hero {
    padding: 1rem 0.85rem;
  }

  .nav,
  .nav-links,
  .nav-links a {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav-links {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
  }

  .cta-modal {
    padding: 0.75rem;
  }

  .cta-modal-card {
    width: min(520px, calc(100vw - 1.25rem));
    max-width: calc(100vw - 1.25rem);
  }

  /* Keep the banner fully visible on small screens while avoiding oversized gutters. */
  .hero {
    min-height: 100vh;
    align-items: stretch;
  }

  .scroll-panel {
    gap: 0.7rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  body.scroll-panels {
    scroll-snap-type: none;
  }

  body.scroll-panels .hero,
  body.scroll-panels .subpage-hero,
  body.scroll-panels .lab-hero,
  body.scroll-panels .contact-hero,
  body.scroll-panels .scroll-panel,
  body.scroll-panels footer {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  /* Keep all sections visible on phones even if reveal scripts are delayed. */
  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    visibility: visible;
  }

  [data-hover-card] {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .scroll-panel > .section-header,
  .panel-compact .section-header,
  .scroll-panel.panel-compact > .section-header {
    margin-bottom: 0.9rem;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .hero-content {
    gap: 0.95rem;
  }

  .hero-slider {
    height: auto;
    min-height: clamp(320px, 85vw, 520px);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 1;
  }

  /* Guarantee the slider always shows a frame on phones without hiding it on load. */
  .hero-slider .hero-slide {
    display: none;
    opacity: 0;
    pointer-events: none;
    position: relative;
    transform: none;
  }

  /* Guarantee at least one slide renders on phones even if scripts stall. */
  .hero-slider .hero-slide:first-child {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    position: relative;
    transform: none;
  }

  .hero-slide {
    display: none;
    position: relative;
    opacity: 0;
    pointer-events: none;
    flex-direction: column;
    gap: 0.65rem;
  }

  .hero-slide.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    position: relative;
    transform: none;
  }

  /* Guarantee the first frame renders even if JS is slow. */
  .hero-slide:first-of-type {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    position: relative;
    transform: none;
  }

  .hero-slide .hero-visual {
    height: clamp(260px, 72vw, 420px);
    border-radius: 1.15rem;
  }

  .hero-slide figcaption {
    position: static;
    margin-top: 0.85rem;
  }

  .subpage-hero,
  .lab-hero,
  .contact-hero {
    min-height: auto;
  }

  .metrics {
    width: 100%;
    gap: 0.9rem;
    padding: 1.5rem 1rem 2rem;
  }

  .metrics div {
    padding: 1rem;
  }

  .service-grid,
  .package-grid,
  .options-grid,
  .zone-grid,
  .gallery-grid,
  .contact-details,
  .pillar-timeline,
  .lab-hero__stats,
  .lab-schedule ol,
  .cta-highlights,
  .cta-layout,
  .cta-actions,
  .form-grid,
  .engage-form form {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .cta,
  .cta-actions {
    gap: 0.9rem;
  }

  .cta .primary {
    width: 100%;
    text-align: center;
  }

  .contact-form,
  .contact-form--rich,
  .engage-form {
    margin: 0;
    padding: 1.1rem;
  }

  .contact-form--rich {
    border-radius: 1rem;
  }

  .contact-form--rich .form-columns,
  .contact-form--rich .form-grid,
  .engage-form form,
  .cta-upload-form {
    grid-template-columns: 1fr;
  }

  .sample-track-wrap {
    padding-inline: 0.25rem;
  }

  /* Mobile marquee: horizontal pan with hidden scrollbar. */
  .stack-marquee .marquee {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.2rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .stack-marquee .marquee::-webkit-scrollbar {
    display: none;
  }

  .stack-marquee .marquee span {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .footer-copy {
    margin-top: 0.4rem;
  }
}

@media (max-width: 520px) {
  .nav-links {
    flex-direction: column;
  }

  .nav-links a {
    flex-basis: 100%;
  }

  .hero-ticker {
    flex-direction: column;
  }

  .hero-slider-controls {
    padding: 0 0.1rem;
  }

  .hero-slider-controls button {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 0.6rem;
  }

  .nav-links .nav-link,
  .nav-links .quote-btn {
    flex: 1 1 100%;
  }

  .hero-ticker {
    font-size: 0.95rem;
  }

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

  .scroll-panel {
    gap: 0.85rem;
  }
}

/* Services & subpages */
.service-spectrum .spectrum-grid,
.packages .package-grid,
.options-grid,
.zone-grid,
.gallery-grid,
.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.service-spectrum article,
.packages article,
.options-grid article,
.zone-grid article,
.contact-details article {
  background: var(--card);
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.service-spectrum article ul,
.packages article ul {
  margin-top: 1rem;
  list-style: none;
  color: var(--muted);
}

.service-spectrum article ul li,
.packages article ul li {
  margin-bottom: 0.5rem;
}

.delivery-pillars {
  background: rgba(255, 255, 255, 0.02);
}

.pillar-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.pillar-timeline article {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: var(--card-2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}


.stack-marquee .marquee {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
  justify-content: flex-start;
  align-items: flex-start;
  margin-inline: 0;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.stack-marquee .section-header {
  text-align: left;
  margin-inline: 0;
  width: 100%;
  max-width: 100%;
}

.stack-marquee span {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  flex: 0 0 auto;
  white-space: nowrap;
}

.stack-marquee + .packages {
  margin-top: -0.5rem;
}

.package-grid article {
  position: relative;
  overflow: hidden;
}

.package-grid article::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(74, 245, 255, 0.3), rgba(255, 141, 240, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.hero-cta .secondary {
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Labs */
.lab-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.lab-hero__stats div {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
}

.lab-zones {
  background: rgba(255, 255, 255, 0.02);
}

.gallery-grid figure {
  min-height: 100%;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(74, 245, 255, 0.08), rgba(123, 93, 255, 0.08));
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.lab-visual {
  position: relative;
  border-radius: 1rem;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 45px rgba(3, 5, 20, 0.55);
  isolation: isolate;
}

.lab-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(9, 18, 41, 0.35), rgba(26, 34, 70, 0.65));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.lab-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.02);
  transition: transform 800ms var(--ease-out), filter 400ms ease;
}

[data-hover-card]:hover .lab-visual img {
  transform: scale(1.05);
  filter: saturate(1.3) contrast(1.05);
}

.lab-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.lab-meta li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
}

.lab-schedule ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.lab-schedule li {
  background: var(--card);
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Contact */
.contact-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.contact-panels article {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.25rem;
  padding: 1.25rem;
}

.contact-form--rich {
  gap: 1.75rem;
  background: var(--card-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  margin-inline: auto;
  max-width: min(1080px, 100%);
  min-width: min(100%, 320px);
  isolation: isolate;
  box-sizing: border-box;
}

.contact-form--rich .form-actions {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .page-contact .contact-form--rich {
    max-width: min(1600px, 98vw);
    width: min(1600px, 98vw);
    padding: 1.9rem 2.4rem 2.2rem;
  }

  .page-contact .contact-form--rich .form-columns {
    grid-template-columns: minmax(480px, 1fr) minmax(480px, 1fr);
    align-items: start;
    column-gap: clamp(1.5rem, 3vw, 2.75rem);
  }

  .page-contact .contact-form--rich .form-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}


.form-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: min(1100px, 100%);
  margin-inline: auto;
}

.form-highlights article {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.95rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-form--rich .form-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

.contact-form--rich .form-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form--rich .form-column--actions {
  min-height: 100%;
}

.contact-form--rich .field {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--text);
}

.contact-form--rich .field span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contact-form--rich .field input,
.contact-form--rich .field textarea,
.contact-form--rich .field select {
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  min-height: 2.4rem;
}

.contact-form--rich select {
  appearance: none;
  background: rgba(5, 16, 28, 0.85);
  border-radius: 0.65rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-form--rich select[multiple] {
  min-height: 8.5rem;
  overflow-y: auto;
}

.contact-form--rich select option {
  background: #040e1b;
  color: var(--text);
}

.form-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.35rem 0.5rem;
}

.form-status::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 0 6px rgba(111, 255, 215, 0.14);
}

.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 999;
  padding: 1rem;
}

.dialog-card {
  background: rgba(10, 22, 35, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  max-width: 420px;
  width: min(420px, 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  color: var(--text);
  text-align: left;
  display: grid;
  gap: 0.75rem;
}

.dialog-card p {
  margin: 0;
  line-height: 1.55;
  color: var(--muted);
}

.dialog-card button {
  justify-self: end;
  min-width: 120px;
}

.field--textarea textarea {
  min-height: 160px;
  resize: vertical;
}

.field--scope-compact textarea {
  min-height: 120px;
}

.field--select-multi select {
  width: 100%;
  line-height: 1.35;
}

.field--select-multi small {
  color: var(--muted);
  font-size: 0.8rem;
}

.selection-preview {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.selection-preview[data-state='empty'] {
  color: var(--muted);
  font-size: 0.85rem;
}

.selection-preview__empty {
  opacity: 0.85;
}

.selection-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(74, 245, 255, 0.12);
  border: 1px solid rgba(74, 245, 255, 0.35);
  font-size: 0.85rem;
}

.selection-chip__remove {
  border: none;
  background: transparent;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  cursor: pointer;
}

.file-list {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.file-list__empty {
  color: var(--muted);
  font-size: 0.85rem;
}

.file-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.file-pill__remove {
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border-radius: 999px;
  font-size: 0.7rem;
  line-height: 1;
  flex-shrink: 0;
  min-width: 1.15rem;
}

.file-pill small {
  color: var(--muted);
  font-size: 0.75rem;
}

.upload-progress {
  position: relative;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.upload-progress.is-active {
  opacity: 1;
  transform: translateY(0);
}

.upload-progress__bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--upload-progress, 0%);
  background: linear-gradient(90deg, #28e07a, #4ab4ff);
  box-shadow: 0 0 12px rgba(40, 224, 122, 0.5);
  border-radius: inherit;
  transition: width 0.2s ease;
}

.toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  min-width: 240px;
  max-width: min(420px, 90vw);
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: rgba(9, 19, 34, 0.9);
  border: 1px solid rgba(74, 245, 255, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-hiding {
  opacity: 0;
  transform: translateY(-4px);
}

.toast[data-variant='error'] {
  border-color: rgba(255, 122, 122, 0.45);
  background: rgba(32, 11, 20, 0.92);
}

.toast__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(74, 245, 255, 0.7);
}

.toast[data-variant='error'] .toast__dot {
  background: #ff7878;
  box-shadow: 0 0 10px rgba(255, 120, 120, 0.7);
}

@media (min-width: 1100px) {
  .hero-content {
    grid-template-columns: minmax(460px, 1fr) minmax(440px, 1fr);
    gap: clamp(2.6rem, 3vw, 3.5rem);
  }

  .hero-slider {
    height: clamp(340px, 32vw, 520px);
  }

  .cta-layout,
  .cta-actions,
  .cta-upload-form,
  .contact-form--rich .form-columns,
  .contact-form--rich .form-grid,
  .engage-form form {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
  }

  .contact-form--rich,
  .cta-modal-card,
  .engage-form,
  .contact-form {
    max-width: min(1240px, 100%);
  }

  .form-highlights {
    max-width: min(1240px, 100%);
  }

  .cta-layout,
  .cta-actions,
  .contact-form--rich .form-columns,
  .contact-form--rich .form-grid,
  .engage-form form {
    column-gap: clamp(1.4rem, 2vw, 2rem);
    row-gap: clamp(1.1rem, 1.8vw, 1.6rem);
  }
}

@media (min-width: 1200px) {
  /* Stretch the Engage intake and highlights to fit wide desktop viewports while keeping them centered.
     The wider shell prevents the “Tell us about your project” background and fields from collapsing. */
  .page-contact .engage-form,
  .page-contact .contact-form--rich,
  .page-contact .form-highlights {
    width: min(1320px, calc(100vw - 2rem));
    max-width: 100%;
    margin-inline: auto;
  }

  .page-contact .contact-form--rich {
    padding: 2rem 2.4rem 2.4rem;
  }

  .page-contact .contact-form--rich .form-columns {
    grid-template-columns: repeat(2, minmax(420px, 1fr));
    column-gap: clamp(1.8rem, 2vw, 2.6rem);
  }

  .page-contact .contact-form--rich .form-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .toast-container {
    right: 0.75rem;
    left: 0.75rem;
    align-items: center;
  }

  .toast {
    width: 100%;
    max-width: none;
    justify-content: center;
    text-align: center;
  }

  .contact-form--rich {
    max-width: 100%;
    padding: 1.2rem;
    background: linear-gradient(145deg, rgba(12, 22, 42, 0.92), rgba(6, 12, 26, 0.95)), var(--card-2);
  }

  .contact-form--rich .form-columns {
    gap: 0.75rem;
  }

  .contact-form--rich .field {
    padding: 0.85rem 0.9rem;
  }

  .contact-form--rich .selection-preview,
  .contact-form--rich .file-list {
    width: 100%;
  }

  .contact-form--rich .file-list {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0.85rem;
    padding: 0.55rem;
  }
}

@media (max-width: 880px) {
  .page-contact .engage-form {
    margin: 0 1rem;
    padding: 1.25rem;
  }

  .page-contact .contact-form--rich {
    max-width: 100%;
    margin-inline: 0;
    padding: 1.25rem 1.15rem 1.5rem;
  }

  .page-contact .contact-form--rich .form-columns {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .page-contact .contact-form--rich .field,
  .page-contact .contact-form--rich .selection-preview,
  .page-contact .contact-form--rich .file-list {
    width: 100%;
    box-sizing: border-box;
  }

  .page-contact .contact-form--rich .form-highlights {
    margin-inline: 0;
  }
}

.field--file input {
  margin-top: 0.3rem;
}

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

.field small.is-error {
  color: #ff9b9b;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
}

.form-actions .primary,
.form-actions button[type='submit'] {
  flex: 0 0 auto;
  width: fit-content;
  min-width: clamp(170px, 22vw, 220px);
  align-self: flex-start;
}

.form-actions p {
  color: var(--muted);
  font-size: 0.9rem;
}

.engage-form {
  padding: clamp(2rem, 5vw, 3rem);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 1.5rem;
  margin: 0 clamp(1rem, 6vw, 6rem);
}

.engage-form form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.engage-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: var(--muted);
  gap: 0.35rem;
}

.engage-form input,
.engage-form textarea,
.engage-form select {
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.engage-form button {
  grid-column: 1 / -1;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  color: #05060a;
  font-weight: 600;
  cursor: pointer;
}

.contact-details {
  margin: clamp(2rem, 5vw, 3rem) clamp(1rem, 6vw, 6rem);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none;
    opacity: 0;
    position: absolute;
  }

  .hero-slide:first-child {
    opacity: 1;
    position: relative;
  }
}
