main {
  position: relative;
  padding-top: 0;
}

.section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(130px, 16vh, 180px) var(--page-pad);
}

.section-inner {
  position: relative;
  z-index: 2;
  width: min(1440px, 100%);
  margin: 0 auto;
}

.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .92;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, black 14%, black 86%, transparent);
  opacity: .42;
}

.section-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(54,231,255,.3));
  opacity: .55;
}

.copy-block {
  max-width: 720px;
  min-width: 0;
}

.split-layout > *,
.vfx-layout > *,
.lab-layout > *,
.maker-layout > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--yellow);
}

h1,
h2 {
  margin: 0 0 24px;
  font-family: var(--font-ui);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.065em;
  text-transform: uppercase;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(52px, 8.7vw, 132px);
}

h2 {
  font-size: clamp(40px, 6.4vw, 96px);
}

p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
}

.lead {
  font-size: clamp(19px, 2vw, 28px);
  color: rgba(244,248,255,.84);
}

.cta {
  --pill-glow-bg: linear-gradient(90deg, rgba(54,231,255,.10), rgba(255,63,180,.08), rgba(246,255,74,.07));
  --pill-glow-border: linear-gradient(90deg, #36e7ff, #ff3fb4, #f6ff4a, #62ff87, #36e7ff);
  --pill-glow-shadow: rgba(54,231,255,.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  min-height: 46px;
  padding: 13px 18px;
  border: 1px solid rgba(54,231,255,.55);
  border-radius: 999px;
  color: #fff;
  background: rgba(54,231,255,.08);
  box-shadow: inset 0 0 16px rgba(54,231,255,.08), 0 0 18px rgba(54,231,255,.10);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease, color 220ms ease;
}

.cta::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--pill-glow-border);
  background-size: 400% 100%;
  filter: blur(6px);
  opacity: 0;
  z-index: -2;
  transition: opacity 240ms ease;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--pill-glow-bg), rgba(5,8,16,.90);
  opacity: 0;
  z-index: -1;
  transition: opacity 220ms ease;
}

.cta:hover,
.cta:focus-visible,
.cta.is-mirror-hover {
  border-color: rgba(54,231,255,.88);
  background-color: rgba(54,231,255,.12);
  box-shadow:
    inset 0 0 18px rgba(54,231,255,.14),
    0 0 18px var(--pill-glow-shadow),
    0 0 34px rgba(255,63,180,.18);
  outline: none;
}

.cta:hover::before,
.cta:focus-visible::before,
.cta.is-mirror-hover::before {
  opacity: .92;
  animation: pillGlowSweep 8s linear infinite;
}

.cta:hover::after,
.cta:focus-visible::after,
.cta.is-mirror-hover::after {
  opacity: 1;
}

.cta.secondary {
  --pill-glow-bg: linear-gradient(90deg, rgba(255,63,180,.09), rgba(54,231,255,.08), rgba(246,255,74,.055));
  --pill-glow-shadow: rgba(255,63,180,.26);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
}


@keyframes pillGlowSweep {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .cta:hover::before,
  .cta:focus-visible::before,
  .cta.is-mirror-hover::before {
    animation: none;
  }
}


.proof-row,
.project-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0 20px;
}

.proof-row span,
.project-chip-row span,
.project-chip-row a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 8px 11px;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.05);
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
  text-decoration: none;
}

.project-chip-row a {
  --pill-glow-bg: linear-gradient(90deg, rgba(54,231,255,.10), rgba(255,63,180,.08), rgba(246,255,74,.06));
  --pill-glow-border: linear-gradient(90deg, #36e7ff, #ff3fb4, #f6ff4a, #62ff87, #36e7ff);
  --pill-glow-shadow: rgba(54,231,255,.24);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease, color 220ms ease;
}

.project-chip-row a::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--pill-glow-border);
  background-size: 400% 100%;
  filter: blur(6px);
  opacity: 0;
  z-index: -2;
  transition: opacity 240ms ease;
}

.project-chip-row a::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--pill-glow-bg), rgba(5,8,16,.86);
  opacity: 0;
  z-index: -1;
  transition: opacity 220ms ease;
}

.project-chip-row a:hover,
.project-chip-row a:focus-visible,
.project-chip-row a.is-mirror-hover {
  color: #fff;
  border-color: rgba(54,231,255,.72);
  background-color: rgba(54,231,255,.11);
  box-shadow:
    inset 0 0 14px rgba(54,231,255,.10),
    0 0 16px var(--pill-glow-shadow),
    0 0 28px rgba(255,63,180,.13);
  outline: none;
}

.project-chip-row a:hover::before,
.project-chip-row a:focus-visible::before,
.project-chip-row a.is-mirror-hover::before {
  opacity: .82;
  animation: pillGlowSweep 8s linear infinite;
}

.project-chip-row a:hover::after,
.project-chip-row a:focus-visible::after,
.project-chip-row a.is-mirror-hover::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .project-chip-row a:hover::before,
  .project-chip-row a:focus-visible::before,
  .project-chip-row a.is-mirror-hover::before {
    animation: none;
  }
}

.maker-layout {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(320px, .72fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: center;
}

.hero-figure {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.hero-figure::before {
  content: "";
  position: absolute;
  inset: 10% 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54,231,255,.18), transparent 64%);
  filter: blur(8px);
}

.hero-figure img {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.5));
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: center;
}

.split-layout.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, .76fr);
}

.project-grid {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.project-card,
.cinema-card {
  position: relative;
  display: block;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 26px;
  background: rgba(255,255,255,.055);
  box-shadow:
    0 24px 60px rgba(0,0,0,.28),
    inset 0 0 0 1px rgba(255,255,255,.04);
  text-decoration: none;
}

.project-card.large {
  grid-row: span 2;
  min-height: 464px;
}

.project-card img,
.cinema-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease, filter 700ms ease;
  filter: saturate(.92) contrast(1.08) brightness(.86);
}

.project-card::after,
.cinema-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.76), transparent 48%),
    linear-gradient(120deg, rgba(54,231,255,.12), transparent 34%, rgba(255,63,180,.10));
}

.project-card span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 15px;
  z-index: 2;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.project-card:hover img,
.cinema-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.05) contrast(1.12) brightness(.98);
}

.section-maker {
  background:
    radial-gradient(circle at 65% 50%, rgba(54,231,255,.14), transparent 34%),
    linear-gradient(135deg, #06070d, #10101d 54%, #050509);
}

.section-systems {
  background:
    radial-gradient(circle at 78% 24%, rgba(54,231,255,.16), transparent 32%),
    linear-gradient(160deg, #03090d, #061012 48%, #09070f);
}

.section-motion {
  background:
    radial-gradient(circle at 20% 55%, rgba(246,255,74,.10), transparent 35%),
    linear-gradient(160deg, #09070c, #0e0c15 50%, #06080c);
}

.section-vfx {
  background:
    radial-gradient(circle at 72% 40%, rgba(255,63,180,.13), transparent 30%),
    linear-gradient(160deg, #040407, #090711 48%, #020204);
}

.vfx-layout {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.cinema-card {
  min-height: clamp(430px, 58vw, 680px);
  border-radius: 34px;
}

.tracking-overlay {
  position: absolute;
  inset: 32px;
  z-index: 3;
  border: 1px solid rgba(54,231,255,.4);
}

.tracking-overlay span {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--yellow);
  filter: drop-shadow(0 0 8px rgba(246,255,74,.75));
}

.tracking-overlay span:nth-child(1) { left: 10%; top: 16%; }
.tracking-overlay span:nth-child(2) { right: 18%; top: 22%; }
.tracking-overlay span:nth-child(3) { left: 28%; bottom: 18%; }
.tracking-overlay span:nth-child(4) { right: 10%; bottom: 14%; }

.section-lab {
  background:
    radial-gradient(circle at 30% 22%, rgba(255,63,180,.16), transparent 34%),
    radial-gradient(circle at 80% 70%, rgba(54,231,255,.12), transparent 30%),
    linear-gradient(160deg, #08050c, #090812 52%, #040407);
}

.lab-layout {
  display: grid;
  grid-template-columns: minmax(0, .68fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
}

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

.lab-grid .large {
  grid-column: span 2;
}

.section-contact {
  min-height: 72vh;
  background:
    radial-gradient(circle at 50% 20%, rgba(54,231,255,.16), transparent 34%),
    linear-gradient(180deg, #05060a, #020203);
}

.contact-layout {
  display: grid;
  place-items: center;
  text-align: center;
}

.contact-layout .copy-block {
  margin: 0 auto;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}


/* Hard fix: long Orbitron words were still bleeding into adjacent image columns.
   Stack the affected feature layouts sooner instead of squeezing them. */
@media (max-width: 1500px) {
  .section-systems .split-layout,
  .section-vfx .vfx-layout,
  .section-lab .lab-layout {
    grid-template-columns: 1fr;
    gap: clamp(30px, 5vw, 64px);
  }

  .section-systems .copy-block,
  .section-vfx .copy-block,
  .section-lab .copy-block {
    max-width: 980px;
  }

  .section-systems h2,
  .section-vfx h2,
  .section-lab h2 {
    max-width: 980px;
    font-size: clamp(34px, 5.8vw, 76px);
  }

  .section-systems .project-grid,
  .section-lab .project-grid {
    width: 100%;
  }

  .section-vfx .cinema-card {
    width: 100%;
  }
}

/* On normal laptops, keep the type bold but stop it from becoming a wall. */
@media (max-width: 1180px) {
  .section-systems h2,
  .section-vfx h2,
  .section-lab h2 {
    font-size: clamp(34px, 7.2vw, 66px);
    line-height: .94;
    letter-spacing: -.035em;
  }
}

/* On small screens, allow emergency wrapping for very long words. */
@media (max-width: 760px) {
  .section-systems h2,
  .section-vfx h2,
  .section-lab h2 {
    overflow-wrap: anywhere;
  }
}

/* Proper CodePen-style inverted corners.
   The card itself stays a clean rounded image box.
   A separate bottom-right pocket creates the inverted-radius joins.
   Bottom-left title stays untouched. Hover shine stays clipped inside the card. */
.project-card,
.cinema-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  clip-path: none;
  -webkit-mask: none;
  mask: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.055);
  box-shadow:
    0 24px 60px rgba(0,0,0,.28),
    inset 0 0 0 1px rgba(255,255,255,.04);
}

.cinema-card {
  border-radius: 34px;
}

.project-card img,
.cinema-card img {
  border-radius: 0;
}

/* Dark gradient overlay. */
.project-card::after,
.cinema-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(to top, rgba(0,0,0,.78), transparent 52%),
    linear-gradient(120deg, rgba(54,231,255,.12), transparent 34%, rgba(255,63,180,.10));
}

/* Hover shine clipped inside the card. */
.project-card::before,
.cinema-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      transparent 36%,
      rgba(255,255,255,.18) 48%,
      transparent 60%,
      transparent 100%
    );
  transform: translateX(-135%);
  opacity: 0;
}

.project-card:hover::before,
.cinema-card:hover::before {
  animation: cardShineInside 900ms ease;
}

/* Bottom-left title, unchanged and safely inside the image. */
.project-card span {
  position: absolute;
  left: 16px;
  right: 96px;
  bottom: 15px;
  z-index: 6;
  width: auto;
  max-width: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,.92);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  line-height: 1.15;
  text-shadow: 0 0 10px rgba(0,0,0,.75);
}

.project-card span::before,
.project-card span::after {
  content: none;
}

/* Section background colour used by the pocket, like --clr in the CodePen.
   This is what creates the illusion of the pocket being cut out of the card. */
.section-systems { --pocket-bg: #061012; }
.section-motion { --pocket-bg: #0e0c15; }
.section-vfx { --pocket-bg: #090711; }
.section-lab { --pocket-bg: #090812; }
.section-contact { --pocket-bg: #05060a; }
.section-maker { --pocket-bg: #10101d; }

/* Actual bottom-right pocket. */
.card-pocket {
  position: absolute;
  right: -6px;
  bottom: -6px;
  z-index: 7;
  width: 78px;
  height: 48px;
  border-top-left-radius: 22px;
  background: var(--pocket-bg, #05060a);
  pointer-events: none;
}

/* Left inverted join of the pocket. */
.card-pocket::before {
  content: "";
  position: absolute;
  left: -22px;
  bottom: 6px;
  width: 22px;
  height: 22px;
  background: transparent;
  border-bottom-right-radius: 22px;
  box-shadow: 7px 7px 0 7px var(--pocket-bg, #05060a);
}

/* Top inverted join of the pocket. */
.card-pocket::after {
  content: "";
  position: absolute;
  right: 6px;
  top: -22px;
  width: 22px;
  height: 22px;
  background: transparent;
  border-bottom-right-radius: 22px;
  box-shadow: 7px 7px 0 7px var(--pocket-bg, #05060a);
}

/* Small UI glyph inside the pocket. */
.card-pocket b {
  position: absolute;
  right: 17px;
  bottom: 13px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid rgba(54,231,255,.55);
  box-shadow:
    0 0 10px rgba(54,231,255,.25),
    inset 0 0 8px rgba(54,231,255,.12);
}

.card-pocket b::before,
.card-pocket b::after {
  content: "";
  position: absolute;
  background: rgba(246,255,74,.85);
  border-radius: 999px;
}

.card-pocket b::before {
  width: 8px;
  height: 1px;
  left: 5px;
  top: 8px;
}

.card-pocket b::after {
  width: 1px;
  height: 8px;
  left: 8px;
  top: 5px;
}

.project-card.large .card-pocket {
  width: 88px;
  height: 54px;
  border-top-left-radius: 26px;
}

.project-card.large .card-pocket::before,
.project-card.large .card-pocket::after {
  width: 24px;
  height: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 8px 8px 0 8px var(--pocket-bg, #05060a);
}

.project-card.large .card-pocket::before {
  left: -24px;
}

.project-card.large .card-pocket::after {
  top: -24px;
}

@keyframes cardShineInside {
  0% {
    transform: translateX(-135%);
    opacity: 0;
  }
  20% {
    opacity: .75;
  }
  100% {
    transform: translateX(135%);
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .project-card,
  .cinema-card {
    border-radius: 22px;
  }

  .project-card span {
    left: 14px;
    right: 78px;
    bottom: 13px;
    font-size: 10px;
  }

  .card-pocket {
    width: 62px;
    height: 40px;
    border-top-left-radius: 18px;
  }

  .card-pocket::before {
    left: -18px;
    bottom: 6px;
    width: 18px;
    height: 18px;
    border-bottom-right-radius: 18px;
    box-shadow: 6px 6px 0 6px var(--pocket-bg, #05060a);
  }

  .card-pocket::after {
    top: -18px;
    right: 6px;
    width: 18px;
    height: 18px;
    border-bottom-right-radius: 18px;
    box-shadow: 6px 6px 0 6px var(--pocket-bg, #05060a);
  }

  .card-pocket b {
    right: 13px;
    bottom: 10px;
    width: 16px;
    height: 16px;
  }
}


/* Maker intro polish */
.section-maker {
  background:
    radial-gradient(circle at 72% 46%, rgba(54,231,255,.16), transparent 28%),
    radial-gradient(circle at 24% 18%, rgba(255,138,42,.11), transparent 20%),
    linear-gradient(135deg, #05060b, #11101b 54%, #040409);
}

.maker-layout {
  grid-template-columns: minmax(0, .94fr) minmax(360px, .84fr);
  gap: clamp(36px, 6vw, 104px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-copy::before {
  content: "";
  position: absolute;
  left: -26px;
  top: -18px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 1px solid rgba(54,231,255,.18);
  box-shadow: 0 0 26px rgba(54,231,255,.14);
  opacity: .72;
}

.hero-kicker {
  margin: 0 0 16px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.58);
}

.section-maker h1 {
  max-width: 9.2ch;
  font-size: clamp(58px, 8.8vw, 140px);
  text-shadow:
    0 0 22px rgba(54,231,255,.10),
    0 0 52px rgba(0,0,0,.42);
}

.section-maker .lead {
  max-width: 21.5ch;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 8px;
  margin: 22px 0 6px;
}

.hero-mini-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.68);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  box-shadow: inset 0 0 10px rgba(54,231,255,.04);
}

.hero-figure {
  position: relative;
  min-height: clamp(480px, 52vw, 720px);
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-shell {
  position: absolute;
  inset: 10% 6% 12%;
  z-index: 0;
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 44%, rgba(54,231,255,.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)),
    linear-gradient(135deg, rgba(17,24,32,.96), rgba(5,7,11,.88));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.02),
    inset 0 0 34px rgba(54,231,255,.06),
    0 30px 80px rgba(0,0,0,.42);
  overflow: hidden;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(255,255,255,.03) 22px 23px, transparent 23px 58px),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 18%);
  opacity: .28;
}

.hero-shell::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(54,231,255,.22), rgba(255,63,180,.14), transparent);
  filter: blur(10px);
  opacity: .8;
}

.hero-vector-wrap {
  position: relative;
  z-index: 3;
  width: min(560px, 92%);
  display: grid;
  place-items: center;
}

.hero-vector-wrap::before {
  content: "";
  position: absolute;
  inset: 16% 12% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54,231,255,.16), transparent 62%);
  filter: blur(12px);
}

.hero-figure img {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  filter:
    drop-shadow(0 28px 42px rgba(0,0,0,.48))
    drop-shadow(0 0 18px rgba(54,231,255,.10));
}

.hero-circuit,
.hero-hud {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-circuit path {
  fill: none;
  stroke: rgba(54,231,255,.42);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 8 12;
}

.hero-circuit circle {
  fill: rgba(246,255,74,.90);
  filter: drop-shadow(0 0 7px rgba(246,255,74,.55));
}

.hero-hud path,
.hero-hud circle {
  fill: none;
  stroke: rgba(255,255,255,.16);
  stroke-width: 1;
}

.hero-hud circle:last-child {
  stroke: rgba(54,231,255,.16);
}

.hero-callout {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 12px 14px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    rgba(7,10,16,.82);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 16px 34px rgba(0,0,0,.32),
    inset 0 0 18px rgba(54,231,255,.04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-callout strong {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244,248,255,.92);
}

.callout-label {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(246,255,74,.62);
}

.hero-callout-a {
  top: 14%;
  right: 4%;
}

.hero-callout-b {
  left: 0;
  bottom: 16%;
}

.hero-floor {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 8%;
  z-index: 1;
  height: 70px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(54,231,255,.24), transparent 54%),
    radial-gradient(circle at 50% 60%, rgba(255,63,180,.12), transparent 56%);
  filter: blur(18px);
  opacity: .8;
}

.maker-lines path {
  stroke-width: 1.4;
}

@media (max-width: 1180px) {
  .maker-layout {
    grid-template-columns: 1fr;
    gap: clamp(34px, 7vw, 70px);
  }

  .hero-copy {
    max-width: 860px;
  }

  .section-maker .lead {
    max-width: 100%;
  }

  .hero-figure {
    order: -1;
    min-height: clamp(420px, 54vw, 620px);
  }

  .hero-callout-a {
    right: 6%;
  }

  .hero-callout-b {
    left: 4%;
    bottom: 14%;
  }
}

@media (max-width: 760px) {
  .hero-copy::before,
  .hero-callout,
  .hero-hud {
    display: none;
  }

  .hero-mini-grid {
    grid-template-columns: repeat(2, minmax(0, max-content));
  }

  .hero-shell {
    inset: 8% 0 12%;
    border-radius: 28px;
  }

  .hero-figure {
    min-height: 380px;
  }

  .hero-vector-wrap {
    width: min(430px, 96%);
  }
}


/* Scroll signal trail: first controlled version.
   Desktop/laptop enhancement only. Hidden on smaller/touch layouts. */
.scroll-trail {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: .82;
  mix-blend-mode: screen;
}

.scroll-trail svg {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1200px, 100vw);
  height: 100%;
  min-height: 5200px;
  transform: translateX(-50%);
  overflow: visible;
}

.trail-main,
.trail-branch {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.trail-main {
  stroke: rgba(54,231,255,.70);
  stroke-width: 2.5;
  filter:
    drop-shadow(0 0 8px rgba(54,231,255,.42))
    drop-shadow(0 0 18px rgba(54,231,255,.20));
  stroke-dasharray: var(--trail-length, 1);
  stroke-dashoffset: var(--trail-offset, 1);
}

.trail-branch {
  stroke: rgba(246,255,74,.38);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 8px rgba(246,255,74,.22));
  stroke-dasharray: var(--branch-length, 1);
  stroke-dashoffset: var(--branch-offset, 1);
  opacity: .82;
}

.trail-nodes circle {
  fill: rgba(246,255,74,.85);
  opacity: var(--node-opacity, .28);
  filter:
    drop-shadow(0 0 7px rgba(246,255,74,.55))
    drop-shadow(0 0 18px rgba(54,231,255,.18));
}

.section {
  z-index: 2;
}

.section > * {
  position: relative;
}

/* Keep the trail out of mobile/tablet portrait noise. */
@media (max-width: 1023px), (hover: none), (pointer: coarse) {
  .scroll-trail {
    display: none;
  }
}


/* HARD scroll-trail visibility override.
   The trail was not visible because section backgrounds/stacking were winning.
   This puts the trail above section backgrounds and above most decorative layers.
   We can lower it later once confirmed. */
#realPage {
  position: relative;
}

.scroll-trail {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 1;
  mix-blend-mode: screen;
  overflow: visible;
}

.scroll-trail svg {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1200px, 100vw);
  height: var(--trail-page-height, 5200px);
  min-height: var(--trail-page-height, 5200px);
  transform: translateX(-50%);
  overflow: visible;
}

.trail-main,
.trail-branch {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.trail-main {
  stroke: rgba(54,231,255,.98);
  stroke-width: 4;
  filter:
    drop-shadow(0 0 8px rgba(54,231,255,.85))
    drop-shadow(0 0 22px rgba(54,231,255,.55))
    drop-shadow(0 0 42px rgba(255,63,180,.24));
  stroke-dasharray: var(--trail-length, 1);
  stroke-dashoffset: var(--trail-offset, 1);
}

.trail-branch {
  stroke: rgba(246,255,74,.82);
  stroke-width: 2.35;
  filter:
    drop-shadow(0 0 8px rgba(246,255,74,.65))
    drop-shadow(0 0 20px rgba(54,231,255,.26));
  stroke-dasharray: var(--branch-length, 1);
  stroke-dashoffset: var(--branch-offset, 1);
}

.trail-nodes circle {
  fill: rgba(246,255,74,1);
  opacity: 1;
  filter:
    drop-shadow(0 0 8px rgba(246,255,74,.80))
    drop-shadow(0 0 20px rgba(54,231,255,.28));
}

/* Keep section readable content above normal backgrounds. */
.section {
  position: relative;
}

.section-bg,
.section::before {
  z-index: 0;
}

/* Trail test: visible above backgrounds. */
.section-inner {
  z-index: 5;
}

/* Mobile/tablet: hidden for now. */
@media (max-width: 1023px) {
  .scroll-trail {
    display: none;
  }
}


/* Scroll trail prominence + full-page pass. */
.trail-track {
  fill: none;
  stroke: rgba(54,231,255,.22);
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter:
    drop-shadow(0 0 8px rgba(54,231,255,.32))
    drop-shadow(0 0 20px rgba(54,231,255,.18));
}

.trail-main {
  stroke: rgba(54,231,255,1);
  stroke-width: 4.6;
  filter:
    drop-shadow(0 0 9px rgba(54,231,255,.95))
    drop-shadow(0 0 24px rgba(54,231,255,.65))
    drop-shadow(0 0 46px rgba(255,63,180,.32));
}

.trail-branch {
  stroke: rgba(246,255,74,.90);
  stroke-width: 2.6;
}

.scroll-trail {
  opacity: 1;
}


/* Scroll trail branch/reflection tuning.
   Branches are stronger and the mirror clone gets the same trail variables from JS. */
.trail-branch {
  stroke: rgba(246,255,74,.96);
  stroke-width: 3;
  opacity: .92;
  filter:
    drop-shadow(0 0 8px rgba(246,255,74,.72))
    drop-shadow(0 0 22px rgba(54,231,255,.26));
}

.trail-main {
  stroke-width: 4.9;
}

.trail-track {
  stroke: rgba(54,231,255,.26);
  stroke-width: 2.9;
}

.mirror-content .scroll-trail {
  opacity: .95;
}

.mirror-content .trail-main {
  stroke-width: 5.2;
}

.mirror-content .trail-branch {
  stroke-width: 3.2;
}


/* Digital Systems polish */
.systems-layout {
  align-items: center;
}

.systems-copy {
  position: relative;
  z-index: 7;
}

.systems-stage {
  position: relative;
  min-width: 0;
  isolation: isolate;
}

.systems-stage::before {
  content: "";
  position: absolute;
  inset: -8% -5% -6%;
  z-index: 0;
  border-radius: 44px;
  background:
    radial-gradient(circle at 64% 34%, rgba(54,231,255,.18), transparent 32%),
    radial-gradient(circle at 24% 78%, rgba(246,255,74,.08), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    inset 0 0 40px rgba(54,231,255,.05),
    0 26px 70px rgba(0,0,0,.24);
}

.systems-grid {
  position: relative;
  z-index: 3;
}

.systems-orbit {
  position: absolute;
  inset: -12% -8% -10%;
  z-index: 1;
  pointer-events: none;
  opacity: .82;
  mix-blend-mode: screen;
}

.orbit-ring,
.orbit-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.orbit-ring {
  stroke: rgba(54,231,255,.18);
  stroke-width: 1.5;
  stroke-dasharray: 10 14;
}

.orbit-line {
  stroke: rgba(54,231,255,.50);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(54,231,255,.34));
}

.data-block rect {
  fill: rgba(4,8,14,.58);
  stroke: rgba(255,255,255,.12);
  stroke-width: 1;
}

.data-block text {
  fill: rgba(255,255,255,.76);
  font-family: Orbitron, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
}

.orbit-nodes circle {
  fill: rgba(246,255,74,.92);
  filter:
    drop-shadow(0 0 6px rgba(246,255,74,.66))
    drop-shadow(0 0 18px rgba(54,231,255,.20));
}

.systems-mini-console {
  position: relative;
  max-width: 540px;
  margin-top: 28px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    rgba(5,9,15,.78);
  border: 1px solid rgba(255,255,255,.11);
  box-shadow:
    0 18px 42px rgba(0,0,0,.22),
    inset 0 0 24px rgba(54,231,255,.045);
}

.mini-console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 15px 0;
  color: rgba(255,255,255,.66);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.mini-console-head i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(246,255,74,.78);
}

.mini-console-svg {
  display: block;
  width: 100%;
  height: 180px;
}

.sys-flow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 8px rgba(54,231,255,.32));
}

.sys-flow-a {
  stroke: rgba(54,231,255,.66);
}

.sys-flow-b {
  stroke: rgba(246,255,74,.50);
}

.sys-nodes circle {
  fill: rgba(246,255,74,.92);
  filter: drop-shadow(0 0 8px rgba(246,255,74,.62));
}

.sys-bars rect {
  fill: rgba(255,255,255,.16);
}

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

@media (max-width: 1500px) {
  .systems-stage::before {
    inset: -4% -2%;
  }

  .systems-orbit {
    inset: -6% -4%;
  }
}

@media (max-width: 1180px) {
  .systems-orbit {
    opacity: .54;
  }

  .systems-mini-console {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .systems-orbit,
  .systems-mini-console {
    display: none;
  }

  .systems-stage::before {
    display: none;
  }
}


/* Digital Systems SVG visibility fix.
   The MEMBER / EN-FR / COMMERCE / CAMPAIGN blocks were present,
   but hidden behind the project-card grid. Bring the orbit layer forward. */
.section-systems .systems-stage {
  min-height: clamp(640px, 56vw, 840px);
}

.section-systems .systems-stage::before {
  z-index: 0;
}

.section-systems .systems-grid {
  position: relative;
  z-index: 3;
}

.section-systems .systems-orbit {
  z-index: 6 !important;
  opacity: 1 !important;
  mix-blend-mode: normal;
  inset: -8% -7% -6%;
  pointer-events: none;
}

.section-systems .orbit-line {
  stroke: rgba(54,231,255,.72);
  stroke-width: 2.4;
  filter:
    drop-shadow(0 0 8px rgba(54,231,255,.52))
    drop-shadow(0 0 20px rgba(54,231,255,.24));
}

.section-systems .orbit-ring {
  stroke: rgba(54,231,255,.28);
  stroke-width: 1.8;
}

.section-systems .data-block rect {
  fill: rgba(3, 8, 14, .86);
  stroke: rgba(54,231,255,.42);
  stroke-width: 1.25;
  filter: drop-shadow(0 0 12px rgba(54,231,255,.22));
}

.section-systems .data-block text {
  fill: rgba(255,255,255,.94);
  stroke: rgba(0,0,0,.28);
  stroke-width: .25;
  paint-order: stroke;
}

.section-systems .orbit-nodes circle {
  fill: rgba(246,255,74,1);
  filter:
    drop-shadow(0 0 8px rgba(246,255,74,.80))
    drop-shadow(0 0 20px rgba(54,231,255,.28));
}

.section-systems .project-card span,
.section-systems .card-pocket {
  z-index: 5;
}

@media (max-width: 1180px) {
  .section-systems .systems-stage {
    min-height: auto;
  }

  .section-systems .systems-orbit {
    z-index: 2 !important;
    opacity: .52 !important;
    mix-blend-mode: screen;
  }
}


/* Motion / Learning / Communication polish */
.motion-layout {
  align-items: center;
}

.motion-stage {
  position: relative;
  min-width: 0;
  isolation: isolate;
}

.motion-stage::before {
  content: "";
  position: absolute;
  inset: -7% -4% -6%;
  z-index: 0;
  border-radius: 44px;
  background:
    radial-gradient(circle at 28% 24%, rgba(246,255,74,.12), transparent 26%),
    radial-gradient(circle at 78% 60%, rgba(54,231,255,.14), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    inset 0 0 40px rgba(246,255,74,.04),
    0 26px 70px rgba(0,0,0,.24);
}

.motion-grid {
  position: relative;
  z-index: 3;
}

.motion-timeline-ui {
  position: absolute;
  inset: -9% -7% -9%;
  z-index: 5;
  pointer-events: none;
  opacity: .96;
  mix-blend-mode: normal;
}

.timeline-spine,
.motion-signal {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.timeline-spine {
  stroke: rgba(54,231,255,.50);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(54,231,255,.28));
}

.timeline-spine-b {
  stroke: rgba(246,255,74,.42);
}

.timeline-spine-c {
  stroke: rgba(255,63,180,.36);
}

.timeline-playhead path {
  fill: none;
  stroke: rgba(255,255,255,.56);
  stroke-width: 2;
  stroke-dasharray: 10 12;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.22));
}

.timeline-playhead circle {
  fill: rgba(246,255,74,.96);
  filter:
    drop-shadow(0 0 8px rgba(246,255,74,.76))
    drop-shadow(0 0 18px rgba(54,231,255,.22));
}

.module-card rect {
  fill: rgba(5, 8, 15, .88);
  stroke: rgba(246,255,74,.34);
  stroke-width: 1.25;
  filter: drop-shadow(0 0 12px rgba(246,255,74,.16));
}

.module-card text {
  fill: rgba(255,255,255,.94);
  font-family: Orbitron, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  stroke: rgba(0,0,0,.28);
  stroke-width: .25;
  paint-order: stroke;
}

.caption-bars rect {
  fill: rgba(255,255,255,.18);
}

.caption-bars rect:nth-child(even) {
  fill: rgba(54,231,255,.22);
}

.motion-signal {
  stroke: rgba(54,231,255,.66);
  stroke-width: 2.6;
  filter:
    drop-shadow(0 0 9px rgba(54,231,255,.46))
    drop-shadow(0 0 18px rgba(246,255,74,.12));
}

.motion-copy {
  position: relative;
  z-index: 7;
}

.motion-mini-console {
  position: relative;
  max-width: 540px;
  margin-top: 28px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    rgba(10,9,15,.78);
  border: 1px solid rgba(255,255,255,.11);
  box-shadow:
    0 18px 42px rgba(0,0,0,.22),
    inset 0 0 24px rgba(246,255,74,.035);
}

.motion-mini-console .mini-console-head i {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(54,231,255,.78);
}

.lesson-stack {
  display: grid;
  gap: 10px;
  padding: 16px 16px 18px;
}

.lesson-stack span {
  position: relative;
  display: block;
  height: 28px;
  padding: 7px 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.78);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lesson-stack span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 70%);
  background: linear-gradient(90deg, rgba(54,231,255,.24), rgba(246,255,74,.14));
  border-radius: inherit;
}

.lesson-stack span {
  isolation: isolate;
}

.lesson-stack span::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 1500px) {
  .motion-timeline-ui {
    inset: -4% -3% -4%;
  }
}

@media (max-width: 1180px) {
  .motion-stage::before {
    inset: -4% -2%;
  }

  .motion-timeline-ui {
    opacity: .58;
  }

  .motion-mini-console {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .motion-timeline-ui,
  .motion-mini-console,
  .motion-stage::before {
    display: none;
  }
}


/* VFX / Film / Precision polish */
.vfx-precision-layout {
  align-items: center;
}

.vfx-copy {
  position: relative;
  z-index: 7;
}

.vfx-stage {
  position: relative;
  min-width: 0;
  isolation: isolate;
}

.vfx-stage::before {
  content: "";
  position: absolute;
  inset: -8% -5% -8%;
  z-index: 0;
  border-radius: 46px;
  background:
    radial-gradient(circle at 72% 38%, rgba(255,63,180,.14), transparent 32%),
    radial-gradient(circle at 34% 74%, rgba(54,231,255,.12), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    inset 0 0 40px rgba(255,63,180,.035),
    0 26px 70px rgba(0,0,0,.26);
}

.vfx-monitor {
  position: relative;
  z-index: 3;
  min-height: clamp(460px, 54vw, 680px);
  border-radius: 34px;
  overflow: hidden;
  background: #040407;
}

.vfx-monitor::before {
  z-index: 9;
}

.vfx-monitor::after {
  z-index: 2;
  background:
    linear-gradient(to top, rgba(0,0,0,.72), transparent 54%),
    linear-gradient(120deg, rgba(255,63,180,.14), transparent 34%, rgba(54,231,255,.10));
}

.vfx-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.safe-frame,
.roto-spline,
.corner-guides path,
.scan-line {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.safe-frame {
  stroke: rgba(255,255,255,.26);
  stroke-width: 1.4;
  stroke-dasharray: 12 12;
}

.safe-frame-inner {
  stroke: rgba(54,231,255,.22);
  stroke-width: 1;
  stroke-dasharray: 6 10;
}

.roto-spline {
  stroke-width: 2.4;
  filter:
    drop-shadow(0 0 8px rgba(54,231,255,.48))
    drop-shadow(0 0 18px rgba(255,63,180,.18));
}

.spline-a {
  stroke: rgba(54,231,255,.82);
}

.spline-b {
  stroke: rgba(246,255,74,.66);
}

.track-points circle {
  fill: rgba(246,255,74,.92);
  stroke: rgba(0,0,0,.34);
  stroke-width: 2;
  filter:
    drop-shadow(0 0 7px rgba(246,255,74,.76))
    drop-shadow(0 0 18px rgba(54,231,255,.24));
}

.corner-guides path {
  stroke: rgba(255,255,255,.48);
  stroke-width: 2;
  filter: drop-shadow(0 0 7px rgba(255,255,255,.20));
}

.vfx-node rect {
  fill: rgba(5, 7, 12, .78);
  stroke: rgba(255,63,180,.36);
  stroke-width: 1.2;
  filter: drop-shadow(0 0 12px rgba(255,63,180,.18));
}

.vfx-node text {
  fill: rgba(255,255,255,.92);
  font-family: Orbitron, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  stroke: rgba(0,0,0,.32);
  stroke-width: .25;
  paint-order: stroke;
}

.scan-line {
  stroke: rgba(54,231,255,.70);
  stroke-width: 2;
  filter:
    drop-shadow(0 0 7px rgba(54,231,255,.56))
    drop-shadow(0 0 18px rgba(54,231,255,.22));
}

.vfx-monitor-label {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 8;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(5,7,12,.76);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 14px 32px rgba(0,0,0,.32),
    inset 0 0 18px rgba(54,231,255,.04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.vfx-monitor-label span,
.vfx-monitor-label strong {
  font-family: var(--font-ui);
  text-transform: uppercase;
}

.vfx-monitor-label span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .20em;
  color: rgba(246,255,74,.70);
}

.vfx-monitor-label strong {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  color: rgba(255,255,255,.88);
}

.vfx-status-panel {
  position: relative;
  max-width: 540px;
  margin: 28px 0 22px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    rgba(9,7,14,.78);
  border: 1px solid rgba(255,255,255,.11);
  box-shadow:
    0 18px 42px rgba(0,0,0,.22),
    inset 0 0 24px rgba(255,63,180,.035);
}

.vfx-status-panel .mini-console-head i {
  background: var(--pink);
  box-shadow: 0 0 12px rgba(255,63,180,.78);
}

.vfx-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 16px;
}

.vfx-status-grid span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 9px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.68);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.08);
}

.vfx-status-grid strong {
  color: rgba(246,255,74,.88);
}

@media (max-width: 1500px) {
  .vfx-stage::before {
    inset: -4% -3%;
  }
}

@media (max-width: 1180px) {
  .vfx-status-panel {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .vfx-overlay,
  .vfx-status-panel,
  .vfx-stage::before,
  .vfx-monitor-label {
    display: none;
  }
}


/* Flash Lab / Campaigns / Audio polish */
.lab-console-layout {
  align-items: center;
}

.lab-copy {
  position: relative;
  z-index: 7;
}

.lab-stage {
  position: relative;
  min-width: 0;
  isolation: isolate;
}

.lab-stage::before {
  content: "";
  position: absolute;
  inset: -8% -5% -8%;
  z-index: 0;
  border-radius: 46px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255,63,180,.16), transparent 28%),
    radial-gradient(circle at 78% 70%, rgba(54,231,255,.15), transparent 30%),
    radial-gradient(circle at 50% 44%, rgba(246,255,74,.07), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    inset 0 0 42px rgba(255,63,180,.04),
    0 26px 70px rgba(0,0,0,.26);
}

.lab-stage::after {
  content: "";
  position: absolute;
  inset: -4% -2%;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 14px, rgba(255,255,255,.035) 14px 15px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(54,231,255,.035) 34px 35px);
  opacity: .18;
  mix-blend-mode: screen;
}

.lab-grid {
  position: relative;
  z-index: 3;
}

.lab-synth-ui {
  position: absolute;
  inset: -9% -7% -9%;
  z-index: 5;
  pointer-events: none;
  opacity: .95;
  mix-blend-mode: screen;
}

.lab-wave,
.lab-step {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.lab-wave {
  stroke-width: 2.6;
  filter:
    drop-shadow(0 0 9px rgba(54,231,255,.44))
    drop-shadow(0 0 20px rgba(255,63,180,.18));
}

.wave-a {
  stroke: rgba(54,231,255,.78);
}

.wave-b {
  stroke: rgba(255,63,180,.62);
}

.lab-step {
  stroke: rgba(246,255,74,.72);
  stroke-width: 2.4;
  filter:
    drop-shadow(0 0 9px rgba(246,255,74,.40))
    drop-shadow(0 0 18px rgba(54,231,255,.16));
}

.pulse-rings circle {
  fill: none;
  stroke: rgba(54,231,255,.28);
  stroke-width: 1.7;
  filter: drop-shadow(0 0 10px rgba(54,231,255,.28));
}

.lab-node-block rect {
  fill: rgba(5, 7, 12, .80);
  stroke: rgba(255,63,180,.38);
  stroke-width: 1.25;
  filter: drop-shadow(0 0 13px rgba(255,63,180,.18));
}

.lab-node-block text {
  fill: rgba(255,255,255,.93);
  font-family: Orbitron, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  stroke: rgba(0,0,0,.32);
  stroke-width: .25;
  paint-order: stroke;
}

.lab-dots circle {
  fill: rgba(246,255,74,.96);
  stroke: rgba(0,0,0,.34);
  stroke-width: 2;
  filter:
    drop-shadow(0 0 8px rgba(246,255,74,.76))
    drop-shadow(0 0 18px rgba(54,231,255,.24));
}

.lab-signal-console {
  position: relative;
  max-width: 540px;
  margin-top: 28px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    rgba(11,7,15,.78);
  border: 1px solid rgba(255,255,255,.11);
  box-shadow:
    0 18px 42px rgba(0,0,0,.22),
    inset 0 0 24px rgba(255,63,180,.035);
}

.lab-signal-console .mini-console-head i {
  background: var(--pink);
  box-shadow: 0 0 12px rgba(255,63,180,.78);
}

.lab-meter-stack {
  display: grid;
  gap: 10px;
  padding: 16px 16px 18px;
}

.lab-meter-stack span {
  position: relative;
  display: block;
  height: 28px;
  padding: 7px 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.78);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  isolation: isolate;
}

.lab-meter-stack span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 70%);
  background: linear-gradient(90deg, rgba(255,63,180,.24), rgba(54,231,255,.16), rgba(246,255,74,.10));
  border-radius: inherit;
  opacity: .88;
}

.lab-meter-stack span::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 1500px) {
  .lab-synth-ui {
    inset: -5% -4% -5%;
  }
}

@media (max-width: 1180px) {
  .lab-stage::before {
    inset: -4% -2%;
  }

  .lab-synth-ui {
    opacity: .58;
  }

  .lab-signal-console {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .lab-synth-ui,
  .lab-signal-console,
  .lab-stage::before,
  .lab-stage::after {
    display: none;
  }
}


/* Contact terminal polish */
.section-contact {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(54,231,255,.16), transparent 34%),
    radial-gradient(circle at 18% 78%, rgba(255,63,180,.10), transparent 28%),
    linear-gradient(180deg, #05060a, #020203);
}

.contact-bg {
  opacity: .86;
}

.contact-signal-ui {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .72;
  mix-blend-mode: screen;
}

.contact-ring,
.contact-path,
.contact-wave {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.contact-ring {
  stroke: rgba(54,231,255,.18);
  stroke-width: 1.5;
  stroke-dasharray: 14 16;
}

.contact-path {
  stroke: rgba(54,231,255,.42);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(54,231,255,.28));
}

.contact-wave {
  stroke: rgba(246,255,74,.42);
  stroke-width: 2.6;
  filter:
    drop-shadow(0 0 9px rgba(246,255,74,.32))
    drop-shadow(0 0 18px rgba(54,231,255,.14));
}

.contact-nodes circle {
  fill: rgba(246,255,74,.92);
  filter:
    drop-shadow(0 0 8px rgba(246,255,74,.72))
    drop-shadow(0 0 18px rgba(54,231,255,.24));
}

.contact-layout {
  display: grid;
  place-items: center;
  text-align: center;
}

.contact-terminal {
  position: relative;
  z-index: 5;
  width: min(980px, 100%);
  padding: clamp(28px, 5vw, 58px);
  border-radius: 36px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.025)),
    radial-gradient(circle at 50% 0%, rgba(54,231,255,.12), transparent 38%),
    rgba(5, 8, 13, .86);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow:
    0 30px 90px rgba(0,0,0,.42),
    0 0 44px rgba(54,231,255,.10),
    inset 0 0 0 1px rgba(255,255,255,.035),
    inset 0 0 40px rgba(54,231,255,.055);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.contact-terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 16px, rgba(255,255,255,.035) 16px 17px),
    linear-gradient(110deg, rgba(255,255,255,.08), transparent 22%, rgba(54,231,255,.045) 64%, transparent);
  opacity: .30;
  mix-blend-mode: screen;
}

.contact-terminal::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 16px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(54,231,255,.26), rgba(255,63,180,.16), transparent);
  filter: blur(12px);
  opacity: .82;
  pointer-events: none;
}

.terminal-top,
.terminal-footer,
.contact-terminal .copy-block {
  position: relative;
  z-index: 2;
}

.terminal-top,
.terminal-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: rgba(255,255,255,.50);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.terminal-top {
  margin-bottom: clamp(26px, 4vw, 44px);
}

.terminal-top i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(246,255,74,.82);
}

.terminal-footer {
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.contact-terminal h2 {
  margin-left: auto;
  margin-right: auto;
  max-width: 10ch;
}

.contact-terminal p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.contact-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(820px, 100%);
  margin: 30px auto 18px;
}

.contact-status-grid span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.62);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.08);
}

.contact-status-grid strong {
  color: rgba(246,255,74,.86);
}

.contact-actions {
  margin-top: 26px;
}

.contact-actions .cta {
  margin-top: 0;
}

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

  .terminal-top,
  .terminal-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .contact-signal-ui {
    display: none;
  }

  .contact-terminal {
    border-radius: 28px;
  }

  .contact-status-grid {
    grid-template-columns: 1fr;
  }
}


/* Scroll trail layer test.
   Goal: neon trail above section backgrounds/decorative BGs,
   but behind cards, text, buttons, and section-specific UI panels. */
#realPage {
  position: relative;
  isolation: isolate;
}

.scroll-trail {
  z-index: 2 !important;
  opacity: .92;
  mix-blend-mode: screen;
}

/* Let the global trail sit between the section background and section content. */
.section {
  position: relative;
  z-index: auto !important;
  isolation: auto;
}

/* Background/decorative base stays low. */
.section-bg,
.section::before {
  z-index: 0 !important;
}

/* Real readable content stays above the global scroll trail. */
.section-inner,
.copy-block,
.project-grid,
.project-card,
.cinema-card,
.contact-terminal {
  position: relative;
  z-index: 10;
}

/* Section-specific SVG UI that should sit above the global trail. */
.systems-orbit,
.motion-timeline-ui,
.vfx-overlay,
.lab-synth-ui,
.contact-signal-ui {
  z-index: 8 !important;
}

/* Keep the mirror/nav above everything. */
.mirror-nav {
  z-index: 1000;
}

/* Mirror clone should still show the trail, but as reflected/glass content. */
.mirror-content .scroll-trail {
  z-index: 2 !important;
  opacity: .88;
}


/* Image opacity polish.
   98% opaque = 2% transparent. Subtle only. */
.project-card img,
.cinema-card img,
.hero-figure img {
  opacity: .98;
}

.project-card:hover img,
.cinema-card:hover img {
  opacity: 1;
}


/* Card/container transparency polish.
   The images were 98% opaque, but the card containers/overlays still blocked the background.
   This keeps labels and UI readable while letting a tiny bit of the trail/background breathe through. */
.project-card,
.cinema-card {
  background: rgba(255,255,255,.045);
}

.project-card::after,
.cinema-card::after {
  opacity: .98;
}

.project-card::before,
.cinema-card::before {
  opacity: .88;
}

/* Keep text/pocket UI fully readable. */
.project-card span,
.card-pocket,
.vfx-monitor-label,
.contact-terminal,
.hero-callout {
  opacity: 1;
}


/* Image/container opacity test: 88% opaque.
   Stronger transparency so the neon trail/background can actually show through. */
.project-card img,
.cinema-card img,
.hero-figure img {
  opacity: .88;
}

.project-card,
.cinema-card {
  background: rgba(255,255,255,.028);
}

.project-card::after,
.cinema-card::after {
  opacity: .88;
}

.project-card::before,
.cinema-card::before {
  opacity: .76;
}

.project-card:hover img,
.cinema-card:hover img {
  opacity: .96;
}


/* Surgical overlay fix.
   Digital Systems SVG is already correctly on top.
   Bring Motion and Flash Lab SVG animation layers above their image cards too. */
.motion-stage,
.lab-stage {
  isolation: isolate;
}

.motion-stage .motion-grid,
.lab-stage .lab-grid {
  position: relative;
  z-index: 3;
}

.motion-stage .motion-timeline-ui,
.lab-stage .lab-synth-ui {
  position: absolute;
  z-index: 8 !important;
  pointer-events: none;
  opacity: .96;
  mix-blend-mode: screen;
}

/* Keep text labels and card pockets readable, but below the SVG animation layer. */
.motion-stage .project-card span,
.motion-stage .card-pocket,
.lab-stage .project-card span,
.lab-stage .card-pocket {
  z-index: 6;
}

/* Keep hover shine inside cards from covering the section SVG overlay. */
.motion-stage .project-card::before,
.lab-stage .project-card::before {
  z-index: 4;
}

.motion-stage .project-card::after,
.lab-stage .project-card::after {
  z-index: 2;
}


/* Trail performance mode.
   Static trail test: blue cable, green/yellow branches, and nodes are fully drawn.
   Scroll-driven trail growth is muted in js/scroll-trail.js for performance testing. */
.trail-main,
.trail-branch {
  stroke-dasharray: none !important;
  stroke-dashoffset: 0 !important;
}

.trail-nodes circle {
  opacity: 1 !important;
}

.trail-track {
  opacity: .42;
}

@media (max-width: 1180px) {
  .trail-branch,
  .trail-nodes {
    display: none !important;
  }

  .scroll-trail {
    opacity: .72;
  }

  .trail-main {
    stroke-width: 3.2;
    filter:
      drop-shadow(0 0 7px rgba(54,231,255,.52))
      drop-shadow(0 0 18px rgba(54,231,255,.26));
  }
}

@media (max-width: 900px) {
  .scroll-trail {
    opacity: .48;
  }

  .trail-main {
    stroke-width: 2.4;
    filter: drop-shadow(0 0 8px rgba(54,231,255,.30));
  }
}


/* Touch/mobile safety: prevent sticky hover glow on coarse pointers.
   Keyboard focus and mirrored desktop hover stay untouched. */
@media (hover: none), (pointer: coarse) {
  .cta:hover {
    border-color: rgba(54,231,255,.55);
    background-color: rgba(54,231,255,.08);
    box-shadow: inset 0 0 16px rgba(54,231,255,.08), 0 0 18px rgba(54,231,255,.10);
  }

  .cta.secondary:hover {
    border-color: rgba(255,255,255,.22);
    background-color: rgba(255,255,255,.06);
  }

  .cta:hover::before,
  .project-chip-row a:hover::before {
    opacity: 0;
    animation: none;
  }

  .cta:hover::after,
  .project-chip-row a:hover::after {
    opacity: 0;
  }

  .project-chip-row a:hover {
    color: rgba(255,255,255,.8);
    border-color: rgba(255,255,255,.16);
    background-color: rgba(255,255,255,.05);
    box-shadow: none;
  }
}
