:root {
  color-scheme: dark;
  --bg: #05060c;
  --bg-alt: #0b0f1f;
  --text: #ecf0ff;
  --text-muted: #9aa4c9;
  --accent: #6b8cff;
  --accent-strong: #98f5ff;
  --card: rgba(16, 20, 40, 0.75);
  --grid-gap: clamp(1rem, 2vw, 2.5rem);
  --max-width: 1200px;
  --scroll-glow: 0;
  font-family: "Space Grotesk", "Space Mono", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, #111831, #04040a);
  color: var(--text);
  overflow-x: hidden;
  max-width: 100%;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

html.modal-open {
  overflow: hidden;
}

body.modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

canvas#constellation {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.noise-filter {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3'/%3E%3C/filter%3E%3Crect width='1200' height='800' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
  z-index: -1;
}

.scroll-veil {
  position: fixed;
  inset: -30% -10%;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: screen;
  background:
    conic-gradient(
      from 180deg,
      rgba(107, 140, 255, 0.05),
      rgba(152, 245, 255, 0.25),
      transparent 65%
    ),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.3), transparent 50%);
  opacity: calc(0.25 + var(--scroll-glow) * 0.35);
  transform: translateY(calc(var(--scroll-glow) * 4px));
  filter: blur(calc(10px + var(--scroll-glow) * 10px));
  will-change: transform, opacity, filter;
}

.pointer-spark {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(152, 245, 255, 0.9), rgba(107, 140, 255, 0.3));
  box-shadow: 0 0 12px rgba(152, 245, 255, 0.9), 0 0 24px rgba(107, 140, 255, 0.6);
  animation: sparkPop 0.8s ease-out forwards;
  z-index: 9998;
}

@keyframes cometFall {
  0% {
    transform: translateY(-120%) rotate(-20deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) translateX(8vw) rotate(20deg);
    opacity: 0;
  }
}

.comet-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.shape-fall {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(152, 245, 255, 0.6), rgba(255, 255, 255, 0.9));
  box-shadow: 0 0 10px rgba(152, 245, 255, 0.9), 0 0 20px rgba(107, 140, 255, 0.8);
  animation: cometFall 4s linear forwards;
}

.shape-fall.square {
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.6), rgba(152, 245, 255, 0.9));
}

.shape-fall.triangle {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 24px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  box-shadow: 0 0 9px rgba(255, 255, 255, 0.6);
}

.shape-fall.text {
  width: auto;
  height: auto;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(98, 197, 255, 0.15);
  color: var(--text);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid rgba(152, 245, 255, 0.6);
  box-shadow: 0 0 12px rgba(152, 245, 255, 0.8);
  animation-duration: 3.5s;
}
@keyframes sparkPop {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  60% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

.page-shell {
  position: relative;
  min-height: 100vh;
  z-index: 0;
}

.page-shell::after {
  content: "";
  position: fixed;
  inset: -35% -12%;
  pointer-events: none;
  background:
    radial-gradient(circle at top, rgba(152, 245, 255, 0.3), transparent 45%),
    linear-gradient(120deg, rgba(107, 140, 255, 0.12), transparent 60%);
  mix-blend-mode: color-dodge;
  opacity: calc(0.35 + var(--scroll-glow) * 0.35);
  transform: scale(calc(1 + var(--scroll-glow) * 0.1));
  filter: blur(calc(20px + var(--scroll-glow) * 16px));
  transition: opacity 0.35s ease;
  z-index: -1;
  will-change: transform, opacity, filter;
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1rem, 4vw, 5rem);
  background: rgba(3, 5, 11, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 2;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  margin-right: 1.5rem;
  line-height: 1;
  gap: 0.75rem;
}

.logo-mark {
  width: 170px;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(152, 245, 255, 0.3));
  animation: logoPulse 6s ease-in-out infinite;
}

.logo-mark path {
  fill: rgba(255, 255, 255, 0.12);
  stroke: var(--accent-strong);
  stroke-width: 0.6;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: logoTrace 8s ease-in-out infinite;
  vector-effect: non-scaling-stroke;
}

.logo-mark path:nth-of-type(odd) {
  animation-delay: 0.6s;
}

.logo-mark text {
  font-family: "Space Grotesk", "Space Mono", system-ui, sans-serif;
  font-size: 8px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  text-anchor: start;
  fill: none;
  stroke: var(--accent-strong);
  stroke-width: 0.5;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: logoTrace 8s ease-in-out infinite;
  animation-delay: 0.3s;
}

@keyframes logoTrace {
  0% {
    stroke-dashoffset: 260;
    opacity: 0.6;
  }
  40% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  70% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 260;
    opacity: 0.6;
  }
}

@keyframes logoPulse {
  0%,
  60% {
    filter: drop-shadow(0 0 16px rgba(152, 245, 255, 0.3));
    transform: scale(1);
  }
  70% {
    filter: drop-shadow(0 0 30px rgba(152, 245, 255, 0.5));
    transform: scale(1.02);
  }
  80% {
    filter: drop-shadow(0 0 18px rgba(152, 245, 255, 0.4));
    transform: scale(1);
  }
  100% {
    filter: drop-shadow(0 0 16px rgba(152, 245, 255, 0.3));
  }
}

@keyframes panelGlow {
  0%,
  100% {
    transform: translate(0, 0) scale(0.9);
    opacity: 0.2;
  }
  40% {
    transform: translate(5%, -5%) scale(1.05);
    opacity: 0.55;
  }
  60% {
    transform: translate(-5%, 5%) scale(1.1);
    opacity: 0.7;
  }
}

@keyframes cardPulse {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.08);
  }
  50% {
    border-color: rgba(152, 245, 255, 0.25);
  }
}

@keyframes ctaShimmer {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--accent-strong);
}

main {
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 6vw, 6rem) 5rem;
  max-width: 1440px;
  margin: 0 auto;
}

.hero {
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--grid-gap);
  align-items: center;
}

.eyebrow {
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.2;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  margin-bottom: 1rem;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

.cta-solid,
.cta-outline,
.cta-ghost {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.cta-solid {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #010104;
  box-shadow: 0 15px 35px rgba(107, 140, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-solid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.3), transparent 60%);
  transform: translateX(-120%);
  animation: ctaShimmer 3.5s ease-in-out infinite;
  pointer-events: none;
}

.cta-outline {
  border-color: rgba(255, 255, 255, 0.25);
}

.cta-ghost {
  border-color: transparent;
  color: var(--text-muted);
}

.cta-solid:hover,
.cta-outline:hover,
.cta-ghost:hover {
  transform: translateY(-2px) scale(1.01);
}

.cta-solid.large {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

.hero-orbits {
  position: relative;
  min-height: 320px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(155, 255, 255, 0.15), transparent 65%);
  width: clamp(260px, 65vw, 420px);
  height: clamp(260px, 65vw, 420px);
  margin: 0 auto;
  overflow: hidden;
}

.hero-core {
  width: clamp(120px, 30vw, 160px);
  height: clamp(120px, 30vw, 160px);
  border-radius: 50%;
  background: radial-gradient(circle, #0c162c, #04070f);
  display: grid;
  place-items: center;
  font-size: 3rem;
  color: var(--accent-strong);
  box-shadow: inset 0 0 30px rgba(152, 245, 255, 0.2), 0 0 60px rgba(152, 245, 255, 0.25);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: spin 16s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-one {
  width: clamp(160px, 55%, 220px);
  height: clamp(160px, 55%, 220px);
  animation-duration: 18s;
}

.orbit-two {
  width: clamp(200px, 70%, 300px);
  height: clamp(200px, 70%, 300px);
  animation-duration: 25s;
}

.orbit-three {
  width: clamp(240px, 88%, 380px);
  height: clamp(240px, 88%, 380px);
  animation-duration: 34s;
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.panel {
  margin-top: 4rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--card);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(2, 4, 9, 0.8);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.panel::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle at 20% 20%, rgba(152, 245, 255, 0.18), transparent 60%);
  opacity: 0;
  animation: panelGlow 8s ease-in-out infinite;
  pointer-events: none;
}

.panel:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(152, 245, 255, 0.4);
  box-shadow: 0 40px 70px rgba(5, 8, 18, 0.85);
}

.panel:hover::before {
  opacity: 0.65;
}

.panel-heading h2 {
  max-width: 520px;
}

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

.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 30px);
  width: min(420px, 92vw);
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: rgba(5, 6, 12, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 45px rgba(3, 5, 11, 0.7);
  color: var(--text);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner a {
  color: var(--accent-strong);
}

.cookie-banner.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cookie-banner__actions .cta-ghost {
  border-color: rgba(255, 255, 255, 0.15);
  padding: 0.65rem 1.5rem;
}

.card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  min-height: 160px;
  position: relative;
  overflow: hidden;
  animation: cardPulse 9s ease-in-out infinite;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(152, 245, 255, 0.25), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(152, 245, 255, 0.3);
}

.card:hover::after {
  opacity: 0.4;
}

.panel.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--grid-gap);
  align-items: center;
}

.panel.split .list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.panel.split li {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 1rem;
  color: var(--text-muted);
}

.panel.split li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(107, 140, 255, 0.15);
  color: var(--accent-strong);
  font-weight: 600;
}

.cases-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 1rem;
  margin: 2.5rem auto;
  position: relative;
  width: min(92vw, 1100px);
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  width: min(92vw, 1100px);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
  gap: 1rem;
  scroll-snap-type: x mandatory;
}

.carousel-slide {
  min-width: auto;
  width: auto;
  flex: 0 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: cardPulse 12s ease-in-out infinite;
  transition: transform 0.3s ease;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 5, 11, 0.75);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.04), 0 20px 40px rgba(0, 0, 0, 0.7);
  scroll-snap-align: start;
}

.behance-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.25rem 0.5rem;
}

.behance-text h3 {
  font-size: 1.15rem;
  margin: 0;
}

.behance-text p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.4;
}

.behance-text a {
  color: var(--accent-strong);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  text-decoration: none;
}

.carousel-slide:hover {
  transform: translateY(-6px);
}

.carousel-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.carousel-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.12), rgba(9, 12, 24, 0.8));
  width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
}

.embed-placeholder strong {
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--text);
}

.carousel-slide h3 {
  margin: 0;
}

.carousel-slide p {
  color: var(--text-muted);
  margin: 0;
}

.carousel-slide a {
  color: var(--accent-strong);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
}

.carousel-slide a:hover {
  text-decoration: underline;
}

.carousel-control {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(107, 140, 255, 0.08);
  color: var(--text);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  font-size: 1.25rem;
  transition: background 0.3s ease, border-color 0.3s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 0;
}

.carousel-control:hover {
  background: rgba(107, 140, 255, 0.2);
  border-color: var(--accent-strong);
}

.carousel-control.prev {
  left: -56px;
}

.carousel-control.next {
  right: -56px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.carousel-dot.is-active {
  background: var(--accent-strong);
}

.carousel-fallback {
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
}

.behance-link {
  display: inline-flex;
  margin: 1.5rem auto 0;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.35);
}

.behance-link.mobile-only {
  display: none;
}

.behance-link.desktop-only {
  display: inline-flex;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.contact-meta {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.contact-meta a {
  color: var(--text);
  font-size: 1.05rem;
  text-decoration: none;
}

.contact-meta a:hover {
  color: var(--accent-strong);
}

.social-panel {
  margin-top: 1.5rem;
}

.social-links {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-pill {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.social-pill:hover {
  background: rgba(107, 140, 255, 0.2);
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

footer {
  padding: 2rem clamp(1.5rem, 5vw, 5rem) 4rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal.is-visible {
  visibility: visible;
  opacity: 1;
}

.contact-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 12, 0.8);
  backdrop-filter: blur(8px);
}

.contact-modal__panel {
  position: relative;
  width: min(480px, 92vw);
  max-height: min(90vh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #070a15;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  z-index: 1;
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.contact-modal.is-visible .contact-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.contact-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.contact-modal__form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-modal__form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  gap: 0.35rem;
}

.contact-modal__form input,
.contact-modal__form textarea {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 1rem;
  width: 100%;
}

.contact-modal__form input:focus,
.contact-modal__form textarea:focus {
  outline: 2px solid var(--accent-strong);
  border-color: transparent;
}

.form-status {
  min-height: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.form-status.is-error {
  color: #ff8c8c;
}

@media (max-width: 960px) {
  .cases-carousel {
    grid-template-columns: 1fr;
  }

  .carousel-control {
    justify-self: center;
  }
}

@media (max-width: 900px) {
  .carousel-control {
    position: relative;
    top: auto;
    transform: none;
    left: auto;
    right: auto;
    margin: 0 auto;
  }
  .carousel-control.prev,
  .carousel-control.next {
    left: auto;
    right: auto;
  }
  .cases-carousel {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .carousel-viewport {
    width: 100%;
  }
  .behance-link.desktop-only {
    display: none;
  }
  .behance-link.mobile-only {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  body {
    perspective: none;
    overflow-x: hidden;
  }

  .page-shell {
    transform: none !important;
  }

  .nav {
    display: none;
  }

  .cta-outline {
    display: none;
  }

  main {
    padding: 2rem 1rem 4rem;
  }

  .panel {
    padding: 1.25rem;
  }

  .contact-modal__panel {
    padding: 1.25rem;
    width: min(420px, 92vw);
    max-height: 90vh;
  }

  .contact-modal__form label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
  }

  .contact-modal__form input,
  .contact-modal__form textarea {
    font-size: 0.95rem;
  }
}

.gradient-text {
  background: linear-gradient(120deg, #8cfaff, #9e70ff, #ffb3ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .cta-outline {
    display: none;
  }
}

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

  canvas#constellation {
    display: none;
  }

  .scroll-veil,
  .page-shell::after {
    opacity: 0.2;
    transform: none !important;
    filter: none !important;
  }
}
