:root {
  color-scheme: dark;
  --bg: #07080d;
  --panel: rgba(14, 16, 25, 0.76);
  --panel-solid: #11131d;
  --text: #f6f7fb;
  --muted: #b5bccf;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #58f0ff;
  --accent-2: #0926ff;
  --neon: #00e8ff;
  --gold: #ffcf5a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 0%, rgba(88, 240, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 80% 20%, rgba(255, 61, 129, 0.14), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 4px;
  mix-blend-mode: soft-light;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(7, 8, 13, 0.72);
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 1rem Georgia, "Times New Roman", Times, serif;
  color: #fff;
  text-shadow: 0 0 20px #00fffb, 0 0 40px #001aff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2rem);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a {
  transition: color 180ms ease;
}

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

/* Showcase dropdown: Showcase2 appears on hover / keyboard focus */
.nav-drop {
  position: relative;
}

.nav-drop > a span {
  display: inline-block;
  font-size: 0.7em;
  transition: transform 200ms ease;
}

.nav-drop-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  padding-top: 0.8rem;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
}

.nav-drop-menu a {
  display: block;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(0, 232, 255, 0.25);
  border-radius: 10px;
  background: rgba(7, 8, 13, 0.95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* "Showcase" inside the list is only needed on phones */
.nav-drop-menu .nav-drop-self {
  display: none;
}

.nav-drop:hover > a span,
.nav-drop:focus-within > a span {
  transform: rotate(180deg);
}

/* Only one link in the list: no arrow, no dropdown (script.js adds the class) */
.nav-drop.is-single > a span,
.nav-drop.is-single .nav-drop-menu {
  display: none;
}

.menu-toggle {
  display: none;
}

.section {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 5vw, 4rem);
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.14) contrast(1.08);
}

/* .hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 8, 13, 0.9), rgba(7, 8, 13, 0.45) 48%, rgba(7, 8, 13, 0.88)),
    linear-gradient(0deg, var(--bg), transparent 42%);
} */

.hero-content {
  position: relative;
  width: min(760px, 100%);
  padding-top: 8rem;
  padding-bottom: clamp(2rem, 8vh, 6rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.6rem, 11vw, 9.5rem);
  line-height: 0.86;
  font-weight: 800;
  max-width: 9ch;
  text-shadow: 0 0 26px rgba(88, 240, 255, 0.22);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
  line-height: 1.2;
}

.hero-copy {
  width: min(620px, 100%);
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #05060a;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.logo-marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(3rem, 9vw, 8rem);
  padding: 1rem 0;
  animation: marquee 24s linear infinite;
}

.marquee-track img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(88, 240, 255, 0.18));
}

/* Artist marquee: bigger logos, slower, pauses on hover */
.artist-marquee {
  border: 0;
  background: none;
}

.artist-marquee .marquee-track {
  gap: 0;
  padding: 1.5rem 0;
  animation-duration: 35s;
}

.artist-marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* Spacing as margin (not gap) keeps the -50% loop seamless */
.artist-marquee img {
  width: clamp(160px, 22vw, 260px);
  height: auto;
  margin-right: 20px;
  border-radius: 12px;
  filter: drop-shadow(1px 2px 5px var(--neon));
  transition: transform 0.6s;
}

.artist-marquee img:hover {
  transform: perspective(200px) translateZ(30px);
}

.section-heading {
  width: min(850px, 100%);
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.projects {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

/* ---------- Projects card (opens the Projects popup) ---------- */
.projects-launch {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  min-height: clamp(200px, 26vw, 300px);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  overflow: hidden;
  border: 1px solid rgba(88, 240, 255, 0.25);
  border-radius: 18px;
  background: #000;
  box-shadow: var(--shadow), 0 0 60px rgba(88, 240, 255, 0.12);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.projects-launch-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 300ms ease, transform 600ms ease;
}

/* Darken the bottom so the text stays readable over the clip */
.projects-launch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 6, 10, 0.92), rgba(5, 6, 10, 0.2) 70%);
}

.projects-launch-text,
.projects-launch-cta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.35rem;
}

.projects-launch .eyebrow {
  margin: 0;
}

.projects-launch .logo {
  justify-content: flex-start;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.projects-launch-copy {
  color: var(--muted);
}

.projects-launch-cta {
  justify-items: end;
  flex-shrink: 0;
}

.projects-launch-count {
  color: var(--muted);
  font-size: 0.85rem;
}

.projects-launch-count b {
  color: var(--accent);
}

.projects-launch-open {
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05060a;
  font-weight: 800;
  white-space: nowrap;
}

.projects-launch:hover,
.projects-launch:focus-visible {
  border-color: rgba(88, 240, 255, 0.6);
  box-shadow: var(--shadow), 0 0 80px rgba(88, 240, 255, 0.25);
  transform: translateY(-3px);
}

.projects-launch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.projects-launch:hover .projects-launch-bg {
  opacity: 0.75;
  transform: scale(1.03);
}

.showcase-preview {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

.slideshow {
  height: 100%;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  list-style: none;
}

.slideshow li video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  animation: fadeVideo 30s infinite;
  will-change: opacity, transform;
}

.slideshow li:nth-child(1) video {
  animation-delay: 0s;
}

.slideshow li:nth-child(2) video {
  animation-delay: 6s;
}

.slideshow li:nth-child(3) video {
  animation-delay: 12s;
}

.slideshow li:nth-child(4) video {
  animation-delay: 18s;
}

.slideshow li:nth-child(5) video {
  animation-delay: 24s;
}

/* ---------- Featured video ---------- */
.featured-video {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(88, 240, 255, 0.25);
  border-radius: 18px;
  background: #000;
  box-shadow: var(--shadow), 0 0 60px rgba(88, 240, 255, 0.12);
}

.featured-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.featured-video figcaption {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 8, 13, 0.6);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  font-weight: 700;
  pointer-events: none;
}

.featured-video .eyebrow {
  margin: 0 0.4rem 0 0;
}

/* ---------- Gallery filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
}

.filters button {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: 700 0.85rem "Poppins", Arial, sans-serif;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.filters button:hover {
  color: var(--text);
  border-color: rgba(88, 240, 255, 0.4);
}

.filters button[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05060a;
}

.filters sup {
  margin-left: 0.3rem;
  font-size: 0.65rem;
  opacity: 0.7;
}

/* Phone-only dropdown, see the 640px breakpoint */
.filters select {
  display: none;
}

/* ---------- Gallery grid ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: 170px;
  grid-auto-flow: dense;
  gap: 0.75rem;
}

.tile {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-solid);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  animation: tile-in 500ms ease both;
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.tile--w { grid-column: span 2; grid-row: span 2; }
.tile--t { grid-row: span 2; }
.tile--v { grid-row: span 3; }

.tile:hover,
.tile:focus-visible {
  z-index: 1;
  border-color: rgba(88, 240, 255, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(88, 240, 255, 0.25);
  transform: translateY(-4px);
  outline: none;
}

.tile img,
.tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease, opacity 300ms ease;
}

.tile:hover :is(img, video) {
  transform: scale(1.06);
}

.tile-preview {
  opacity: 0;
}

.tile-preview.is-playing {
  opacity: 1;
}

/* Gradient + play icon */
.tile::before,
.tile::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.tile::before {
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 6, 10, 0.92), transparent 55%);
}

.tile::after {
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%2305060a'/%3E%3C/svg%3E") center / 26px no-repeat,
    var(--accent);
  box-shadow: 0 0 30px rgba(88, 240, 255, 0.6);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 250ms ease, transform 250ms ease;
}

.tile:hover::after,
.tile:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.tile-info,
.tile-time {
  position: absolute;
  z-index: 2;
}

.tile-info {
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  padding: 1rem;
}

.tile-info small {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tile-info strong {
  font-size: 1.05rem;
  line-height: 1.25;
}

.tile--w .tile-info strong {
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
}

.tile-time {
  top: 0.7rem;
  right: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(5, 6, 10, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
}

@keyframes tile-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(1100px, 94vw);
  max-width: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(3, 4, 8, 0.88);
  backdrop-filter: blur(12px);
}

.lightbox[open] {
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: tile-in 300ms ease;
}

.lightbox figure {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.lightbox video {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  margin-inline: auto;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 0 80px rgba(88, 240, 255, 0.18);
}

.lightbox figcaption {
  padding-top: 1rem;
  text-align: center;
}

.lightbox figcaption .eyebrow {
  margin-bottom: 0.3rem;
}

.lightbox figcaption p {
  margin: 0;
  color: var(--muted);
}

.lb-nav,
.lb-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.lb-nav:hover,
.lb-close:hover {
  background: var(--accent);
  color: #05060a;
}

.lb-close {
  position: absolute;
  top: -3.75rem;
  right: 0;
}

/* ---------- Services ---------- */
.services {
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 232, 255, 0.06), transparent 60%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 2.2vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  /* --x/--y follow the cursor (set in script.js) for a soft spotlight */
  background:
    radial-gradient(400px circle at var(--x, 50%) var(--y, 0%), rgba(0, 232, 255, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: transform 300ms ease, border-color 300ms ease;
}

.service:hover {
  border-color: rgba(0, 232, 255, 0.3);
  transform: translateY(-4px);
}

/* Big faded number in the corner */
.service::after {
  content: attr(data-num);
  position: absolute;
  top: 0.6rem;
  right: 1.2rem;
  color: transparent;
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  transition: -webkit-text-stroke-color 300ms ease;
}

.service:hover::after {
  -webkit-text-stroke-color: rgba(0, 232, 255, 0.35);
}

.service-icon {
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1.5rem;
  padding: 0.6rem;
  border: 1px solid rgba(0, 232, 255, 0.25);
  border-radius: 14px;
  background: rgba(0, 232, 255, 0.06);
  fill: none;
  stroke: var(--neon);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service h3 {
  font-size: 1.2rem;
}

.service p {
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.service ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 0.84rem;
}

.service li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.7rem;
  border-radius: 50%;
  background: var(--neon);
  vertical-align: middle;
  opacity: 0.7;
}

/* ---------- Process (same cards as LimitlessVisual) ---------- */
.process-section {
  scroll-margin-top: 4.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.2vw, 1.6rem);
  border: 1px solid rgba(0, 232, 255, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: opacity 600ms ease, transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.process-card.is-visible:hover {
  border-color: rgba(0, 232, 255, 0.4);
  box-shadow: 0 18px 50px rgba(0, 232, 255, 0.16);
  transform: translateY(-4px);
}

.process-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.card-index {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 232, 255, 0.4);
  border-radius: 12px;
  color: var(--neon);
  background: rgba(0, 232, 255, 0.08);
  box-shadow: 0 0 16px rgba(0, 232, 255, 0.18);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

.service-guarantees {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.service-guarantees span {
  padding: 4px 10px;
  border: 1px solid rgba(0, 232, 255, 0.35);
  border-radius: 999px;
  color: #d7fbff;
  background: rgba(0, 232, 255, 0.07);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.88rem;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  line-height: 1.45;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  top: 0.1em;
  left: 0;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: #001a1f;
  background: var(--neon);
  font-size: 0.62rem;
  font-weight: 900;
}

/* Steps read as a connected sequence on wide screens */
@media (min-width: 1101px) {
  .process-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 46px;
    right: -17px;
    z-index: 1;
    width: 18px;
    height: 1px;
    background: rgba(0, 232, 255, 0.4);
  }
}

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

/* Small screens: compact 2x2 cards, matching the services grid */
@media (max-width: 640px) {
  .card-grid {
    grid-auto-rows: 1fr;
    gap: 8px;
  }

  .process-card {
    min-height: 205px;
    padding: 16px 12px;
    border-radius: 14px;
  }

  .card-index {
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    border-radius: 9px;
    font-size: 0.66rem;
  }

  .process-card h3 {
    margin-bottom: 10px;
    font-size: 0.95rem;
  }

  .service-guarantees {
    gap: 3px;
    margin-bottom: 10px;
  }

  .service-guarantees span {
    padding: 3px 6px;
    font-size: 0.58rem;
  }

  .check-list {
    gap: 6px;
    font-size: 0.78rem;
  }

  .check-list li {
    padding-left: 18px;
  }

  .check-list li::before {
    width: 13px;
    height: 13px;
    font-size: 0.52rem;
  }
}

@media (hover: none) {
  .process-card.is-visible:hover {
    border-color: rgba(0, 232, 255, 0.18);
    box-shadow: none;
    transform: none;
  }
}

/* ---------- Animated arrow flowing from services into process ---------- */
.flow-divider {
  position: relative;
  width: 44px;
  height: 84px;
  margin: calc(clamp(5rem, 10vw, 8rem) * -0.4) auto;
  color: var(--neon);
}

.flow-divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 64px;
  background: rgba(0, 232, 255, 0.28);
  box-shadow: 0 0 12px rgba(0, 232, 255, 0.35);
  transform: translateX(-50%);
}

.flow-divider::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 5px;
  width: 26px;
  height: 26px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  filter: drop-shadow(0 0 7px rgba(0, 232, 255, 0.8));
  transform: rotate(45deg);
}

.flow-divider span {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 7px #fff, 0 0 16px var(--neon), 0 0 28px var(--neon);
  animation: flow-down 1.8s ease-in infinite;
  transform: translateX(-50%);
}

@keyframes flow-down {
  0% { opacity: 0; transform: translate(-50%, -5px); }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 55px); }
}

/* ---------- Contact (neon) ---------- */
.contact {
  padding-top: 2rem;
  scroll-margin-top: 4.5rem; /* keeps the panel clear of the fixed header */
}

.contact-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: center;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 6vw, 4rem);
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(0, 232, 255, 0.2), 0 0 40px rgba(0, 232, 255, 0.1);
}

/* Light that travels around the border */
.contact-panel::before {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: -2;
  background: conic-gradient(transparent 0 70%, rgba(0, 232, 255, 0.55) 85%, transparent);
  animation: spin 8s linear infinite;
}

.contact-panel::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 232, 255, 0.1), transparent 60%),
    var(--panel-solid);
}

.contact-panel .eyebrow {
  color: var(--neon);
}

.contact-panel h2 {
  max-width: 16ch;
  margin-bottom: 1rem;
}

.neon-text {
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 232, 255, 0.55), 0 0 32px rgba(0, 232, 255, 0.25);
  animation: flicker 9s linear infinite;
}

.contact-copy {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-tags li {
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(0, 232, 255, 0.4);
  border-radius: 999px;
  background: rgba(0, 232, 255, 0.07);
  color: #d7fbff;
  font-size: 0.78rem;
  font-weight: 700;
}

.contact-panel .hero-actions {
  justify-content: center;
}

.button.neon {
  border-color: rgba(0, 232, 255, 0.6);
  background: rgba(0, 232, 255, 0.06);
  color: var(--neon);
  box-shadow: 0 0 12px rgba(0, 232, 255, 0.2);
}

.button.neon:hover {
  background: var(--neon);
  color: #05060a;
  box-shadow: 0 0 24px rgba(0, 232, 255, 0.35);
}

.contact-email {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.contact-email:hover {
  color: var(--neon);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 5vw, 4rem) 1.4rem;
  background: linear-gradient(180deg, rgba(0, 232, 255, 0.05), transparent 40%);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Glowing top edge */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 232, 255, 0.6), transparent);
  box-shadow: 0 0 12px rgba(0, 232, 255, 0.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand p {
  max-width: 34ch;
  margin: 0.8rem 0 0;
}

.footer-brand .logo {
  font-size: 1.4rem;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.footer-col h3 {
  margin: 0 0 0.3rem;
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a {
  width: fit-content;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.footer-col a:hover,
.footer-bottom a:hover {
  color: var(--neon);
}

/* Giant outlined wordmark */
.footer-mark {
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  color: transparent;
  font-size: clamp(3.5rem, 17vw, 15rem);
  font-weight: 800;
  line-height: 0.8;
  text-align: center;
  letter-spacing: -0.02em;
  -webkit-text-stroke: 1px rgba(0, 232, 255, 0.35);
  filter: drop-shadow(0 0 18px rgba(0, 232, 255, 0.25));
  -webkit-user-select: none;
  user-select: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--text);
  font-weight: 800;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.55; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes fadeVideo {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }
  5% {
    opacity: 1;
    transform: scale(1.02);
  }
  20% {
    opacity: 1;
    transform: scale(1);
  }
  25%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* Four service cards: 2x2 below laptop width so they never get cramped */
@media (max-width: 1100px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablets: fit every nav link on one line next to the logo */
@media (min-width: 641px) and (max-width: 900px) {
  .site-header {
    gap: 0.5rem;
  }

  .nav-links {
    gap: 0.5rem;
    font-size: 0.78rem;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .nav-player-sep {
    display: none;
  }

  .nav-links .play-btn {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 640px) {
  html {
    -webkit-tap-highlight-color: transparent;
  }

  /* The full-screen scan-line blend is costly to repaint over video on phones */
  body::before {
    display: none;
  }

  /* The page behind stays put while a popup or the video player is open */
  html:has(.modal.show),
  html:has(.lightbox[open]) {
    overflow: hidden;
  }

  /* Clear over the hero, solid once scrolling so content never runs behind the logo */
  .site-header {
    padding-block: 0.5rem;
    background: transparent;
    transition: background 200ms ease, box-shadow 200ms ease;
  }

  .site-header.is-scrolled,
  .site-header.is-open {
    background: rgba(7, 8, 13, 0.94);
    box-shadow: 0 1px 0 var(--line);
  }

  .site-header .logo {
    min-height: 44px;
  }

  /* Touch-sized menu button and links */
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
    padding: 0.5rem 1rem 1rem;
    background: rgba(7, 8, 13, 0.97);
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0.25rem;
  }

  .nav-links > * + * {
    border-top: 1px solid var(--line);
  }

  .site-header.is-open .nav-links {
    display: flex;
  }

  /* No hover on phones: tapping Showcase opens its dropdown list */
  .nav-drop > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-drop > a span,
  .nav-drop:is(:hover, :focus-within) > a span {
    font-size: 1em;
    transform: none;
  }

  .nav-drop.is-open > a {
    color: var(--accent);
  }

  .nav-drop.is-open > a span {
    transform: rotate(180deg);
  }

  .nav-drop-menu,
  .nav-drop:is(:hover, :focus-within) .nav-drop-menu {
    display: none;
    position: static;
    padding: 0 0 0.4rem 1rem;
    border-left: 1px solid rgba(0, 232, 255, 0.35);
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-drop.is-open .nav-drop-menu {
    display: block;
  }

  .nav-drop-menu .nav-drop-self {
    display: block;
  }

  .nav-drop-menu a {
    padding: 0.85rem 0.25rem;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .hero {
    min-height: 92svh;
  }

  /* Label lines up with the centered buttons below it */
  .hero-content {
    text-align: center;
  }

  .hero .logo {
    display: flex;
  }

  /* Tighter, even spacing between sections */
  .services {
    padding-block: 3.5rem;
    scroll-margin-top: 1.5rem;
  }

  .projects {
    padding-block: 2rem;
  }

  /* Projects card: text on top, full-width button below */
  .projects-launch {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    min-height: 230px;
  }

  .projects-launch-cta {
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: stretch;
    gap: 0.75rem;
  }

  .projects-launch-open {
    text-align: center;
  }

  .contact {
    padding-bottom: 3.5rem;
  }

  .featured-video figcaption {
    top: 0.6rem;
    left: 0.6rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
  }

  .featured-video .eyebrow {
    font-size: 0.65rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    min-height: 60px;
    font-size: 1.1rem;
  }

  /* Hero Projects / Contact: small and side by side, like desktop (Contact first) */
  .hero .hero-actions .button {
    width: auto;
    min-height: 3rem;
    font-size: 1rem;
  }

  .hero .hero-actions .button.primary {
    order: -1;
  }

  .hero .hero-actions {
    justify-content: center;
  }

  .lb-nav,
  .lb-close {
    width: 3.6rem;
    height: 3.6rem;
  }

  /* Services: compact two-up cards with equal heights (same layout as LimitlessVisual) */
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 8px;
  }

  .service {
    display: flex;
    flex-direction: column;
    min-height: 205px;
    padding: 16px 12px;
    border-color: rgba(0, 232, 255, 0.18);
    border-radius: 14px;
  }

  /* An odd last card keeps the same size and sits centered on its row */
  .service:last-child:nth-child(odd) {
    grid-column: span 2;
    justify-self: center;
    width: calc(50% - 4px);
  }

  .service::after {
    top: 0.55rem;
    right: 0.7rem;
    font-size: 2.2rem;
  }

  .service-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    padding: 6px;
    border-radius: 9px;
  }

  .service h3 {
    margin-bottom: 10px;
    font-size: 0.95rem;
  }

  .service p {
    margin-bottom: 10px;
    font-size: 0.74rem;
    line-height: 1.45;
  }

  .service ul {
    gap: 6px;
    padding-top: 10px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 400;
  }

  .service li {
    position: relative;
    padding-left: 18px;
    line-height: 1.45;
  }

  /* Small check circles instead of dots */
  .service li::before {
    content: "\2713";
    position: absolute;
    top: 0.1em;
    left: 0;
    display: grid;
    place-items: center;
    width: 13px;
    height: 13px;
    margin: 0;
    color: #001a1f;
    font-size: 0.52rem;
    font-weight: 900;
    opacity: 1;
  }

  /* Two-up gallery on phones */
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 120px;
    gap: 0.5rem;
  }

  .tile--v,
  .tile--t {
    grid-row: span 2;
  }

  .tile--fill {
    grid-column: span 2;
  }

  .tile-info {
    padding: 0.7rem;
  }

  .tile-info strong {
    font-size: 0.88rem;
  }

  /* Filters become a dropdown on phones */
  .filters button {
    display: none;
  }

  .filters select {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 0.75rem 3rem 0.75rem 1.4rem;
    border: 1px solid rgba(88, 240, 255, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2358f0ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1.2rem center / 1.2rem;
    color: var(--text);
    font: 700 1.05rem "Poppins", Arial, sans-serif;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
  }

  .filters select option {
    background: var(--panel-solid);
    color: var(--text);
  }

  /* Lightbox fills the screen so Close and the arrows always stay reachable.
     Arrows sit under the video. */
  .lightbox[open] {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 4.5rem 1rem 1.5rem;
    overflow-y: auto;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
  }

  .lightbox figure {
    flex-basis: 100%;
    order: -1;
  }

  .lightbox video {
    max-height: 58svh;
  }

  .lb-close {
    top: 0.75rem;
    right: 1rem;
  }

  .contact-email {
    margin-top: 1rem;
    padding: 0.6rem;
  }

  /* Bottom padding leaves room for the floating + button */
  .site-footer {
    display: block;
    padding-bottom: 5.5rem;
  }

  .site-footer p + p {
    margin-top: 0.4rem;
  }

  /* Brand on its own row, then the two link columns (the email used to get cut off) */
  .footer-grid {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-col {
    gap: 0;
  }

  .footer-col a {
    padding-block: 0.55rem;
    overflow-wrap: anywhere;
  }
}

/* Touch screens: hover styles would otherwise stick after a tap */
@media (hover: none) {
  .button:hover,
  .tile:hover,
  .tile:hover :is(img, video),
  .artist-marquee img:hover {
    transform: none;
  }

  .tile:hover {
    z-index: auto;
    border-color: var(--line);
    box-shadow: none;
  }

  .tile:hover::after {
    opacity: 0;
  }

  .service:hover {
    border-color: var(--line);
    transform: none;
  }

  .service:hover::after {
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.1);
  }

  .artist-marquee:hover .marquee-track {
    animation-play-state: running;
  }
}

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

  /* The slideshow fades clips in with an animation: show the first one still */
  .slideshow li:first-child video {
    animation: none;
    opacity: 1;
  }
}

/* ---------- Showcase blinking title ---------- */
.blinkingheading {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  color: #fff;
  z-index: 5;
  pointer-events: none;
}

.blinkingheading b {
  font: 400 10dvh "Vibur";
  color: #fee;
  text-shadow:
    0 -40px 100px,
    0 0 2px,
    0 0 1em #4457ff,
    0 0 0.5em #4457ff,
    0 0 0.1em #4744ff,
    0 10px 3px #000;
}

.blinkingheading b span {
  animation: blink 2s linear infinite;
}

.blinkingheading b span:nth-of-type(2) {
  animation: blink 3s linear infinite;
}

@keyframes blink {
  78% {
    color: inherit;
    text-shadow: inherit;
  }
  79% {
    color: #333;
  }
  80% {
    text-shadow: none;
  }
  81% {
    color: inherit;
    text-shadow: inherit;
  }
  82% {
    color: #333;
    text-shadow: none;
  }
  83% {
    color: inherit;
    text-shadow: inherit;
  }
  92% {
    color: #333;
    text-shadow: none;
  }
  92.5% {
    color: inherit;
    text-shadow: inherit;
  }
}

/* Hide on small devices */
@media (max-width: 768px) {
  .toolong {
    display: none;
  }
}

/* Very small phones: a little less padding inside the service cards */
@media (max-width: 360px) {
  .service {
    padding: 14px 9px;
  }

  .service ul {
    font-size: 0.74rem;
  }
}
