
:root {
  --bg: #020304;
  --bg-soft: #07100f;
  --panel: rgba(5, 12, 12, 0.76);
  --line: rgba(21, 200, 177, 0.18);
  --line-strong: rgba(21, 200, 177, 0.34);
  --teal: #15c8b1;
  --teal-soft: #9af7ea;
  --orange: #ff7440;
  --text: #eef8f5;
  --muted: #a2b6b2;
  --radius: 28px;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.45);
  --header-height: 86px;
  --mx: 0;
  --my: 0;
  --scroll: 0;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); color: var(--text); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(145deg, #010202 0%, #050909 46%, #030505 100%);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
img, canvas { display: block; max-width: 100%; }
a { color: inherit; }
.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 100;
  transform: translateY(-160%);
  padding: 0.72rem 0.92rem; border-radius: 999px;
  background: var(--teal); color: #021412; font-weight: 800; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
.bg-glow { mix-blend-mode: screen; }
.bg-glow-a {
  background: radial-gradient(circle at 25% 25%, rgba(46, 144, 255, 0.2), transparent 26rem), radial-gradient(circle at 72% 68%, rgba(21, 200, 177, 0.12), transparent 18rem);
  transform: translate3d(calc(var(--mx) * 20px), calc(var(--my) * 14px + var(--scroll) * -0.05px), 0);
  filter: blur(8px);
}
.bg-glow-b {
  background: radial-gradient(circle at 78% 18%, rgba(120, 55, 255, 0.16), transparent 18rem), radial-gradient(circle at 18% 85%, rgba(255, 116, 64, 0.12), transparent 18rem);
  transform: translate3d(calc(var(--mx) * -12px), calc(var(--my) * -10px + var(--scroll) * -0.03px), 0);
  filter: blur(18px);
}
.bg-grid {
  opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 45%, black 16%, transparent 76%);
  transform: translate3d(0, calc(var(--scroll) * -0.08px), 0);
}
.bg-noise {
  opacity: 0.06;
  background-image: radial-gradient(circle at 25% 20%, rgba(255,255,255,0.8) 0.6px, transparent 0.8px);
  background-size: 14px 14px;
}
.bg-vignette {
  background: radial-gradient(circle at 50% 35%, transparent 0%, rgba(2,4,6,0.1) 42%, rgba(1,2,3,0.72) 100%);
}

.background-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(21, 200, 177, 0.16), transparent 22rem),
    radial-gradient(circle at 80% 74%, rgba(255, 116, 64, 0.10), transparent 22rem),
    linear-gradient(145deg, #020304 0%, #05090d 48%, #030405 100%);
}

.vanta-layer,
.bg-fallback,
.bg-glow,
.bg-grid,
.bg-noise,
.bg-vignette {
  position: absolute;
  inset: 0;
}

.vanta-layer {
  z-index: 1;
  width: 100%;
  height: 100%;
}

.bg-fallback {
  z-index: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(34, 136, 255, 0.18), transparent 26rem),
    radial-gradient(circle at 72% 68%, rgba(21, 200, 177, 0.12), transparent 20rem),
    radial-gradient(circle at 20% 82%, rgba(255, 116, 64, 0.10), transparent 18rem);
}

.bg-glow {
  z-index: 2;
  mix-blend-mode: screen;
  pointer-events: none;
}

.bg-glow-a {
  background:
    radial-gradient(circle at 22% 26%, rgba(46, 144, 255, 0.20), transparent 26rem),
    radial-gradient(circle at 76% 62%, rgba(21, 200, 177, 0.14), transparent 18rem);
  transform: translate3d(calc(var(--mx) * 20px), calc(var(--my) * 14px + var(--scroll) * -0.05px), 0);
  filter: blur(8px);
}

.bg-glow-b {
  background:
    radial-gradient(circle at 78% 18%, rgba(120, 55, 255, 0.16), transparent 18rem),
    radial-gradient(circle at 18% 85%, rgba(255, 116, 64, 0.12), transparent 18rem);
  transform: translate3d(calc(var(--mx) * -12px), calc(var(--my) * -10px + var(--scroll) * -0.03px), 0);
  filter: blur(18px);
}

.bg-grid {
  z-index: 3;
  opacity: 0.10;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(circle at 50% 45%, black 16%, transparent 76%);
  transform: translate3d(0, calc(var(--scroll) * -0.08px), 0);
}

.bg-noise {
  z-index: 4;
  opacity: 0.05;
  pointer-events: none;
  background-image: radial-gradient(circle at 25% 20%, rgba(255,255,255,0.8) 0.6px, transparent 0.8px);
  background-size: 14px 14px;
}

.bg-vignette {
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(circle at 50% 35%, transparent 0%, rgba(2,4,6,0.08) 42%, rgba(1,2,3,0.50) 100%);
}

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-height);
  padding: clamp(0.95rem, 2vw, 1.35rem) clamp(1rem, 4vw, 3.5rem);
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}
.site-header.is-scrolled {
  background: rgba(2, 8, 10, 0.72);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  border-bottom: 1px solid rgba(21,200,177,0.12);
  backdrop-filter: blur(18px);
}
.brand { width: clamp(160px, 24vw, 245px); display: inline-flex; }
.brand img { width: 100%; height: auto; object-fit: contain; }
.menu-toggle { display: none; }
.site-nav {
  display: flex; align-items: center; gap: 0.35rem; padding: 0.28rem;
  border: 1px solid rgba(21,200,177,0.16); border-radius: 999px;
  background: rgba(4, 10, 12, 0.52); backdrop-filter: blur(12px);
}
.site-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.65rem; padding: 0 0.95rem; border-radius: 999px;
  color: var(--muted); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.is-active { color: var(--text); background: rgba(21, 200, 177, 0.10); }
main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}
.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + clamp(2rem, 6vw, 4rem)) clamp(1rem, 4vw, 3.5rem) clamp(3rem, 6vw, 4.5rem);
}
.hero-shell {
  width: min(1260px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(410px, 0.96fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center;
}
.hero-copy { max-width: 720px; }
.hero-logo {
  width: min(100%, 680px); height: auto; max-height: 140px; object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(21, 200, 177, 0.1));
}
.eyebrow, .kicker {
  color: var(--orange); text-transform: uppercase; font-size: 0.82rem; font-weight: 850; letter-spacing: 0.18em;
}
.eyebrow { margin: 1.2rem 0 0; }
.hero h1 {
  margin: 1rem 0 1rem; font-size: clamp(2.65rem, 7vw, 6rem); line-height: 0.95; letter-spacing: -0.07em; text-wrap: balance;
}
.hero-text, .section-heading p, .info-card p, .split-copy p, .project-copy p, .contact-panel p {
  color: #a8b9b6; font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.72;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.08rem;
  border-radius: 999px; border: 1px solid rgba(21,200,177,0.24);
  text-decoration: none; text-transform: uppercase; font-size: 0.82rem; font-weight: 850; letter-spacing: 0.08em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button.primary { color: #021412; background: linear-gradient(135deg, var(--teal), var(--teal-soft)); box-shadow: 0 12px 36px rgba(21, 200, 177, 0.18); }
.button.ghost { color: var(--teal-soft); background: rgba(21, 200, 177, 0.06); }
.hero-visual { position: relative; min-height: clamp(460px, 54vw, 690px); }
.corner-icon {
  position: absolute; top: 0.5rem; right: 0.4rem; z-index: 4;
  width: clamp(88px, 13vw, 152px); aspect-ratio: 1;
  padding: clamp(0.48rem, 1vw, 0.7rem);
  border: 1px solid rgba(21,200,177,0.2); border-radius: 24px;
  background: rgba(2, 8, 10, 0.72);
  box-shadow: 0 18px 50px rgba(0,0,0,0.34), 0 0 34px rgba(21,200,177,0.1);
  transform: translate3d(calc(var(--mx) * -8px), calc(var(--my) * 6px + var(--scroll) * -0.02px), 0);
}
.corner-icon img { width: 100%; height: 100%; object-fit: contain; }
.motion-stage {
  position: absolute; inset: 4.9rem 0 0 0.5rem; overflow: hidden;
  border-radius: 34px; border: 1px solid rgba(21,200,177,0.2);
  background: rgba(4, 10, 12, 0.64);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.04);
  transform: perspective(1000px) rotateX(calc(var(--my) * -0.9deg)) rotateY(calc(var(--mx) * 1.2deg));
}
.motion-stage::before {
  content: ""; position: absolute; inset: 1rem; border: 1px solid rgba(21, 200, 177, 0.14); border-radius: 26px; z-index: 3;
}
.showcase-slide, #hero-motion-canvas, .showcase-scanlines, .showcase-shine { position: absolute; inset: 0; }
.showcase-slide {
  opacity: 0; transition: opacity 1400ms ease, transform 1800ms ease;
  transform: scale(1.04);
}
.showcase-slide.is-active { opacity: 1; transform: scale(1.0); }
.showcase-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,4,6,0.12), rgba(2,4,6,0.74)), linear-gradient(135deg, rgba(0,0,0,0.0), rgba(7, 22, 28, 0.28));
}
.showcase-slide img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.08) contrast(1.05) brightness(0.78);
}
.showcase-scanlines {
  z-index: 3; opacity: 0.18;
  background: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 100% 6px;
  mix-blend-mode: soft-light;
}
.showcase-shine {
  z-index: 3; opacity: 0.55;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.08) 46%, transparent 60%);
  animation: shine 10s linear infinite;
}
#hero-motion-canvas { z-index: 2; mix-blend-mode: screen; opacity: 0.88; }
.showcase-badge {
  position: absolute; left: 1.35rem; bottom: 1.35rem; z-index: 4;
  padding: 0.62rem 0.88rem; border-radius: 999px;
  border: 1px solid rgba(21,200,177,0.18); background: rgba(2, 8, 10, 0.7);
  color: var(--teal-soft); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.showcase-dots {
  position: absolute; top: 1.35rem; left: 1.35rem; z-index: 4; display: inline-flex; gap: 0.42rem;
}
.showcase-dots span {
  width: 10px; aspect-ratio: 1; border-radius: 999px; background: rgba(255,255,255,0.12); box-shadow: 0 0 12px rgba(21,200,177,0.12);
}
.showcase-dots span:nth-child(1) { background: rgba(255,116,64,0.8); }
.showcase-dots span:nth-child(2) { background: rgba(21,200,177,0.8); }
.showcase-dots span:nth-child(3) { background: rgba(46,144,255,0.85); }
.showcase-dots span:nth-child(4) { background: rgba(175,112,255,0.8); }
.content-section, .project-band, .split-section, .contact-section {
  width: min(1200px, calc(100% - clamp(2rem, 8vw, 7rem)));
  margin: 0 auto;
  padding: clamp(3.8rem, 8vw, 6rem) 0;
}
.section-heading {
  margin-bottom: 2rem;
  display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end;
}
.kicker { margin-bottom: 0.85rem; }
h2 {
  margin: 0; font-size: clamp(2rem, 4.8vw, 4.6rem); line-height: 0.98; letter-spacing: -0.06em; text-wrap: balance;
}
.card-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(21,200,177,0.16); background: rgba(21,200,177,0.16);
  box-shadow: var(--shadow);
}
.info-card {
  min-height: 250px; padding: clamp(1.2rem, 2.4vw, 1.8rem);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)), rgba(4, 10, 12, 0.84);
}
.card-number {
  display: inline-flex; margin-bottom: 2.4rem; color: var(--orange); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.12em;
}
.info-card h3 { margin: 0 0 0.7rem; font-size: clamp(1.35rem, 2vw, 1.95rem); letter-spacing: -0.05em; }
.project-band {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center;
}
.project-visual { min-height: clamp(340px, 44vw, 540px); }
.project-stack { position: relative; height: 100%; min-height: clamp(340px, 44vw, 520px); }
.project-card {
  position: absolute; border-radius: 28px; overflow: hidden; border: 1px solid rgba(21,200,177,0.18); background: rgba(4, 10, 12, 0.74);
  box-shadow: var(--shadow);
}
.project-card img { width: 100%; height: 100%; object-fit: cover; }
.project-card-back {
  inset: 3.2rem 2rem 0.8rem 0.6rem;
  transform: translate3d(calc(var(--mx) * 10px), calc(var(--scroll) * -0.018px), 0) rotate(-6deg);
  opacity: 0.66;
}
.project-card-back::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(4, 8, 10, 0.18), rgba(4, 8, 10, 0.48));
}
.project-card-front {
  inset: 0 0 2rem 3.4rem;
  transform: translate3d(calc(var(--mx) * -8px), calc(var(--scroll) * -0.02px), 0) rotate(4deg);
}
.project-card-front::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.18));
}
.project-copy p { max-width: 540px; margin-top: 1rem; }
.project-list { display: grid; gap: 0.78rem; margin-top: 1.7rem; }
.project-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.35rem; padding: 0 1rem; border-radius: 18px;
  border: 1px solid rgba(21,200,177,0.16); background: rgba(4, 10, 12, 0.72); text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.project-list a:hover, .project-list a:focus-visible { transform: translateX(4px); background: rgba(21,200,177,0.08); border-color: rgba(21,200,177,0.32); }
.project-list span { color: var(--orange); font-weight: 900; }
.split-section {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center;
}
.split-copy p { margin-top: 1rem; max-width: 650px; }
.spec-panel {
  display: grid; gap: 1px; overflow: hidden; border-radius: var(--radius);
  border: 1px solid rgba(21,200,177,0.16); background: rgba(21,200,177,0.16); box-shadow: var(--shadow);
}
.spec-panel div {
  min-height: 96px; padding: 1rem 1.12rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: rgba(4, 10, 12, 0.84);
}
.spec-panel span { color: var(--muted); font-size: 0.75rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
.spec-panel strong { text-align: right; font-size: 1rem; }
.contact-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.4rem, 4vw, 2.3rem); border-radius: 34px;
  border: 1px solid rgba(21,200,177,0.18); background: rgba(4, 10, 12, 0.76); box-shadow: var(--shadow);
}
.contact-panel h2 { margin-bottom: 0.85rem; }
.contact-panel p { margin: 0; }
.status-pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1rem;
  border-radius: 999px; border: 1px solid rgba(21,200,177,0.18); background: rgba(21,200,177,0.06);
  color: var(--teal-soft); font-size: 0.82rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase;
}
.site-footer {
  display: grid; place-items: center; gap: 0.8rem; padding: 2rem 1rem 2.2rem;
  color: #7b8d89; text-align: center; border-top: 1px solid rgba(21,200,177,0.12); background: rgba(2, 5, 6, 0.76);
}
.site-footer img { width: min(360px, 78vw); opacity: 0.98; height: auto; object-fit: contain; }
.site-footer p { margin: 0; }
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes driftA { from { transform: translate3d(-2%, -1%, 0) scale(1.08); } to { transform: translate3d(3%, 2%, 0) scale(1.14); } }
@keyframes driftB { from { transform: translate3d(2%, 1%, 0) scale(1.12); } to { transform: translate3d(-2%, -2%, 0) scale(1.18); } }
@keyframes driftC { from { transform: translate3d(1%, -1%, 0) scale(1.06); } to { transform: translate3d(-3%, 2%, 0) scale(1.1); } }
@keyframes shine { from { transform: translateX(-45%); } to { transform: translateX(42%); } }


/* Readability pass: soft glass backing behind text-heavy areas while keeping the Vanta motion visible. */
.hero-copy,
.section-heading,
.project-copy,
.split-copy,
.contact-panel,
.info-card,
.spec-panel,
.project-list a {
  position: relative;
  isolation: isolate;
}

.hero-copy::before,
.section-heading::before,
.project-copy::before,
.split-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: clamp(-1rem, -2vw, -0.6rem);
  border: 1px solid rgba(21, 200, 177, 0.10);
  border-radius: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(2, 7, 8, 0.48);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.section-heading::before {
  inset: clamp(-0.9rem, -1.6vw, -0.55rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
    rgba(2, 7, 8, 0.36);
}

.project-copy::before,
.split-copy::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.010)),
    rgba(2, 7, 8, 0.42);
}

.contact-panel,
.info-card,
.spec-panel div,
.project-list a {
  backdrop-filter: blur(14px);
}

.hero-text,
.section-heading p,
.project-copy p,
.split-copy p,
.contact-panel p,
.info-card p {
  text-shadow: 0 1px 22px rgba(0, 0, 0, 0.42);
}

@media (max-width: 760px) {
  .hero-copy::before,
  .section-heading::before,
  .project-copy::before,
  .split-copy::before {
    inset: -0.85rem;
    border-radius: 22px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
      rgba(2, 7, 8, 0.56);
  }
}

@media (max-width: 980px) {
  :root { --header-height: 78px; }
  .hero-shell, .project-band, .split-section, .section-heading { grid-template-columns: 1fr; }
  .hero { align-items: start; padding-top: 7.2rem; }
  .hero-visual { min-height: clamp(420px, 78vw, 620px); }
  .motion-stage { inset: 4.6rem 0 0 0; }
  .card-grid { grid-template-columns: 1fr; }
  .project-visual { order: 2; }
  .project-stack { min-height: 420px; }
}
@media (max-width: 760px) {
  .brand { width: clamp(150px, 47vw, 205px); }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.7rem; min-height: 2.55rem; padding: 0 0.85rem;
    border-radius: 999px; border: 1px solid rgba(21,200,177,0.18); background: rgba(4, 10, 12, 0.72);
    color: var(--teal-soft); font: inherit; font-size: 0.76rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase;
  }
  .menu-lines, .menu-lines::before, .menu-lines::after {
    display: block; width: 18px; height: 2px; border-radius: 99px; background: currentColor; transition: transform 180ms ease, opacity 180ms ease;
  }
  .menu-lines { position: relative; }
  .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
  .menu-lines::before { transform: translateY(-6px); }
  .menu-lines::after { transform: translateY(6px); }
  body.menu-open .menu-lines { transform: rotate(45deg); }
  body.menu-open .menu-lines::before { transform: translateY(0) rotate(90deg); }
  body.menu-open .menu-lines::after { opacity: 0; }
  .site-nav {
    position: absolute; top: calc(100% - 0.45rem); left: 1rem; right: 1rem;
    display: grid; gap: 0.15rem; padding: 0.5rem; border-radius: 22px;
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease;
  }
  body.menu-open .site-nav { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .site-nav a { min-height: 2.65rem; justify-content: center; }
  .hero, .content-section, .project-band, .split-section, .contact-section { width: calc(100% - 2rem); }
  .hero { padding-left: 1rem; padding-right: 1rem; }
  .hero-actions, .contact-panel { flex-direction: column; align-items: stretch; }
  .button, .status-pill { width: 100%; }
  .corner-icon { width: clamp(74px, 25vw, 106px); }
  .project-card-back { inset: 3rem 1rem 0.6rem 0.2rem; }
  .project-card-front { inset: 0 0 2rem 2.2rem; }
  .spec-panel div { flex-direction: column; align-items: flex-start; }
  .spec-panel strong { text-align: left; }
}
@media (max-width: 430px) {
  .hero-logo { max-height: 92px; }
  .hero-visual { min-height: 350px; }
  .motion-stage { border-radius: 26px; }
  .showcase-badge { left: 1rem; bottom: 1rem; font-size: 0.68rem; }
}

.site-header { position: fixed; }
.showcase-badge { display: none !important; }


/* Navigation anchor fix: offset sections below the fixed header and keep animated background non-clickable. */
html {
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 1.25rem);
}

.background-field,
.vanta-layer,
.bg-fallback,
.bg-grid,
.bg-glow,
.bg-noise,
.bg-vignette {
  pointer-events: none;
}



/* Final nav/clickability fix: keep Vanta visually behind everything and never let it intercept header clicks. */
.background-field,
.vanta-layer,
.vanta-layer *,
.bg-fallback,
.bg-grid,
.bg-glow,
.bg-noise,
.bg-vignette {
  pointer-events: none !important;
}

.site-header {
  position: fixed !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
}

.site-nav,
.site-nav a,
.brand,
.menu-toggle {
  pointer-events: auto !important;
}

/* Footer logo readability backer. */
.site-footer img {
  width: min(420px, 82vw);
  height: auto;
  object-fit: contain;
  padding: clamp(0.65rem, 2vw, 0.95rem) clamp(0.8rem, 3vw, 1.25rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.24), 0 0 28px rgba(21, 200, 177, 0.08);
  backdrop-filter: blur(12px);
}


/* Remove the small colored hero-frame dots. */
.showcase-dots { display: none !important; }


/* Background orb cleanup: remove the extra blue/purple/orange translucent glow blobs. */
.bg-glow,
.bg-glow-a,
.bg-glow-b {
  display: none !important;
}

.bg-fallback {
  background:
    radial-gradient(circle at 50% 40%, rgba(21, 200, 177, 0.055), transparent 34rem),
    linear-gradient(145deg, rgba(2, 3, 4, 0.42), rgba(3, 5, 6, 0.58)) !important;
}

.bg-vignette {
  background: radial-gradient(circle at 50% 35%, transparent 0%, rgba(2, 4, 6, 0.08) 42%, rgba(1, 2, 3, 0.58) 100%) !important;
}


/* Performance pass */
.showcase-slide img:not([src]) {
  visibility: hidden;
}

.project-card img {
  transform: translateZ(0);
}



/* Fast-load pass: keep content visible immediately, even while scripts/CDNs initialize. */
.reveal,
.reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* The background Vanta layer now fades in after first paint instead of delaying perceived load. */
.vanta-layer {
  opacity: 0;
  transition: opacity 700ms ease;
}

body.vanta-ready .vanta-layer {
  opacity: 1;
}


/* Subtle service-card line icons. */
.service-icon {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  margin: 0.55rem 0 0.85rem;
  border: 1px solid rgba(21, 200, 177, 0.18);
  border-radius: 14px;
  background: rgba(21, 200, 177, 0.045);
  color: rgba(154, 247, 234, 0.88);
  box-shadow: 0 0 24px rgba(21, 200, 177, 0.06);
}

.service-icon svg {
  width: 1.28rem;
  height: 1.28rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-card:hover .service-icon {
  border-color: rgba(255, 116, 64, 0.24);
  color: rgba(255, 179, 146, 0.9);
  background: rgba(255, 116, 64, 0.045);
}


/* Services heading readability: give the headline more horizontal room so it feels less stacked. */
#services .section-heading {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
}

#services .section-heading h2 {
  max-width: 920px;
  text-wrap: pretty;
}

@media (max-width: 980px) {
  #services .section-heading {
    grid-template-columns: 1fr;
  }

  #services .section-heading h2 {
    max-width: 760px;
  }
}

@media (max-width: 520px) {
  #services .section-heading h2 {
    font-size: clamp(2.15rem, 15vw, 3.55rem);
    letter-spacing: -0.065em;
  }
}
