/* NimWiz Studios. Neon pink and blue on a night-city tower. */
:root {
  --night: #070a1d;
  --night-2: #0b0820;
  --ink: #eef0ff;
  --ink-dim: #b7bbdc;
  --ink-faint: #8a8fb8;
  --pink: #ff3fb4;
  --violet: #a35bff;
  --blue: #3fa9ff;
  --glass: rgba(14, 12, 38, 0.62);
  --glass-edge: rgba(170, 150, 255, 0.18);
  --radius: 18px;
  --display: "Avenir Next", "Futura", "Segoe UI", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.15; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--pink); color: #fff; }
.skip:focus { top: 12px; }

/* The tower runs down behind the whole page; its top meets the banner, its foot fades into the night. */
.page {
  position: relative;
  background:
    linear-gradient(to bottom, transparent 0, transparent calc(100% - 520px), var(--night) 100%),
    url("../assets/tower.webp") center top / 900px auto no-repeat,
    var(--night-2);
}
@media (min-width: 900px) { .page { background-size: auto, 100% auto, auto; } }
@media (min-width: 1500px) {
  .page {
    background:
      linear-gradient(to bottom, transparent 0, transparent calc(100% - 520px), var(--night) 100%),
      linear-gradient(to right, var(--night-2) 0, transparent calc(50% - 650px), transparent calc(50% + 650px), var(--night-2) 100%),
      url("../assets/tower.webp") center top / 1500px auto no-repeat,
      var(--night-2);
  }
}

/* Banner: the opening plays once, then hands over to the loop. Its sides and foot melt into the tower. */
.hero { display: flex; justify-content: center; position: relative; }
.hero-frame {
  position: relative;
  width: min(100%, calc(84vh * 16 / 9));
  aspect-ratio: 16 / 9;
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 100%), linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 84%, transparent 100%), linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect;
}
.hero-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-opening { transition: opacity 0.9s ease; }
.hero.is-looping .hero-opening { opacity: 0; pointer-events: none; }
/* A soft glow from the sign spills onto the wall below it. */
.hero::after {
  content: "";
  position: absolute; left: 50%; bottom: -12%; width: min(90%, 900px); height: 40%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 63, 180, 0.18), rgba(63, 169, 255, 0.10) 55%, transparent);
  filter: blur(20px);
  pointer-events: none;
}

/* Nav appears once the banner has scrolled away. */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(10px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left));
  background: rgba(8, 8, 26, 0.72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-edge);
  transform: translateY(-110%);
  transition: transform 0.35s ease;
}
.nav.is-shown { transform: none; }
.nav-brand { font: 700 18px/1 var(--display); text-decoration: none; letter-spacing: 0.02em; color: var(--pink); text-shadow: 0 0 12px rgba(255, 63, 180, 0.6); white-space: nowrap; }
.nav-brand span { color: var(--blue); text-shadow: 0 0 12px rgba(63, 169, 255, 0.6); }
.nav-links { display: flex; gap: clamp(12px, 3vw, 28px); }
.nav-links a { text-decoration: none; color: var(--ink-dim); font-size: 15px; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }
@media (max-width: 520px) { .nav-brand { font-size: 16px; } .nav-links { gap: 12px; } .nav-links a { font-size: 14px; } .nav-links a[href="#services"] { display: none; } }

main { position: relative; z-index: 1; }

/* Intro starts just under the sign. */
.intro {
  max-width: 760px;
  margin: clamp(4px, 1.5vw, 20px) auto 0;
  padding: 0 20px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 10px;
  font: 600 13px/1 var(--text);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue);
  text-shadow: 0 0 10px rgba(63, 169, 255, 0.55);
}
.lede { font-size: clamp(30px, 5.4vw, 52px); font-weight: 700; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6); }
.sub { margin: 16px auto 0; max-width: 620px; color: var(--ink-dim); font-size: clamp(16px, 2vw, 18px); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font: 600 16px/1 var(--display); text-decoration: none; letter-spacing: 0.02em;
  border: 1.5px solid currentColor; background: rgba(8, 8, 26, 0.55);
  transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.btn-pink { color: #ff8fd0; box-shadow: 0 0 14px rgba(255, 63, 180, 0.35), inset 0 0 12px rgba(255, 63, 180, 0.2); }
.btn-blue { color: #8ccaff; box-shadow: 0 0 14px rgba(63, 169, 255, 0.35), inset 0 0 12px rgba(63, 169, 255, 0.2); }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); background: rgba(20, 16, 50, 0.8); }
.btn-pink:hover, .btn-pink:focus-visible { box-shadow: 0 0 26px rgba(255, 63, 180, 0.6), inset 0 0 14px rgba(255, 63, 180, 0.3); }
.btn-blue:hover, .btn-blue:focus-visible { box-shadow: 0 0 26px rgba(63, 169, 255, 0.6), inset 0 0 14px rgba(63, 169, 255, 0.3); }

.section { max-width: 1160px; margin: 0 auto; padding: clamp(72px, 10vw, 120px) 20px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2, .contact h2 { font-size: clamp(26px, 4vw, 38px); }

/* Project cards: frosted glass panels lit by the tower's neon. */
.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 120, 210, 0.45); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 24px rgba(163, 91, 255, 0.25); }
.card-art { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-art img { transform: scale(1.04); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 23px; }
.card-body p { margin: 0; color: var(--ink-dim); font-size: 16px; }
.tag { font-size: 13px !important; letter-spacing: 0.04em; color: var(--ink-faint) !important; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pill { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.pill-soon { color: #ffd1ec; background: rgba(255, 63, 180, 0.22); border: 1px solid rgba(255, 63, 180, 0.5); }
.pill-live { color: #cfe9ff; background: rgba(63, 169, 255, 0.2); border: 1px solid rgba(63, 169, 255, 0.5); }
.pill-dev { color: #e4d4ff; background: rgba(163, 91, 255, 0.2); border: 1px solid rgba(163, 91, 255, 0.5); }
.note { color: var(--ink-faint) !important; font-size: 14px !important; }
.link { margin-top: auto; padding-top: 4px; color: #8ccaff; font-weight: 600; text-decoration: none; font-size: 15px; }
.link:hover, .link:focus-visible { color: #fff; text-shadow: 0 0 10px rgba(63, 169, 255, 0.8); }

/* Services */
.services { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.service { padding: 26px 22px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.service h3 { font-size: 20px; margin: 14px 0 8px; }
.service p { margin: 0; color: var(--ink-dim); font-size: 15.5px; }
.service-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 63, 180, 0.12); border: 1px solid rgba(255, 63, 180, 0.4); box-shadow: 0 0 16px rgba(255, 63, 180, 0.25); }
.service:nth-child(even) .service-icon { background: rgba(63, 169, 255, 0.12); border-color: rgba(63, 169, 255, 0.45); box-shadow: 0 0 16px rgba(63, 169, 255, 0.25); }
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: #ffb3df; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service:nth-child(even) .service-icon svg { stroke: #a9d6ff; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: none; }
.steps li { padding: 24px 22px; border-radius: var(--radius); background: rgba(10, 9, 30, 0.5); border: 1px solid var(--glass-edge); border-top: 2px solid rgba(255, 63, 180, 0.55); }
.steps li:nth-child(even) { border-top-color: rgba(63, 169, 255, 0.6); }
.step-n { font: 700 14px/1 var(--display); letter-spacing: 0.12em; color: var(--pink); }
.steps li:nth-child(even) .step-n { color: var(--blue); }
.steps h3 { font-size: 19px; margin: 10px 0 6px; }
.steps p { margin: 0; color: var(--ink-dim); font-size: 15.5px; }
.stack { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.stack li { padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-dim); background: rgba(10, 9, 30, 0.55); border: 1px solid var(--glass-edge); }

/* Contact */
.contact { text-align: center; padding-bottom: 20px; }
.contact-slot { margin-top: 26px; display: flex; justify-content: center; }

.footer { text-align: center; padding: 90px 20px max(36px, env(safe-area-inset-bottom)); color: var(--ink-faint); font-size: 14px; }
.footer p { margin: 0; }

/* Sections drift up as they come into view (only when JavaScript and motion are both on). */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card-art img, .btn, .nav, .hero-opening { transition: none; }
}
