/* ============================================================
   Blue Moon Development — styles
   ============================================================ */

:root {
  --night-0: #02060f;
  --night-1: #050b1e;
  --night-2: #0a1533;
  --night-3: #10214d;

  --blue-100: #eaf6ff;
  --blue-200: #bfe2ff;
  --blue-300: #8fd0ff;
  --blue-400: #5bb2f5;
  --blue-500: #3b8fe0;
  --blue-600: #2b6fd6;

  --text: #dce8f7;
  --text-dim: #9db0cc;
  --text-faint: #6d81a1;

  --panel: rgba(12, 24, 55, 0.55);
  --panel-line: rgba(139, 190, 255, 0.16);

  --wrap: 1160px;
  --radius: 18px;
  /* rendered height of the sticky nav — the hero subtracts it so it fills
     exactly one screen. Re-measure if the brand or nav padding changes. */
  --nav-h: 89px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night-1);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand__text {
  font-family: "Sora", "Inter", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

a { color: var(--blue-300); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-100); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.grad {
  background: linear-gradient(100deg, var(--blue-100), var(--blue-300) 40%, var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-400);
  font-weight: 600;
  margin-bottom: 1rem;
}

.body { color: var(--text-dim); max-width: 56ch; }
.body--center { margin-inline: auto; text-align: center; }

/* ============================================================
   Night sky
   ============================================================ */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(43, 111, 214, 0.28), transparent 55%),
    radial-gradient(90% 70% at 10% 100%, rgba(16, 33, 77, 0.9), transparent 60%),
    linear-gradient(180deg, var(--night-0) 0%, var(--night-1) 35%, var(--night-2) 75%, var(--night-3) 100%);
}

#stars { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* --- Moon --- */
.moon {
  position: absolute;
  top: 7vh;
  right: 9vw;
  width: clamp(150px, 20vw, 300px);
  aspect-ratio: 1;
  animation: moonDrift 26s ease-in-out infinite alternate;
}

.moon__glow {
  position: absolute;
  inset: -85%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(143, 208, 255, 0.42) 0%,
    rgba(91, 178, 245, 0.20) 28%,
    rgba(43, 111, 214, 0.10) 48%,
    transparent 70%
  );
  animation: pulse 7s ease-in-out infinite;
}

.moon__body {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #ffffff 0%, #dff0ff 18%, #a9d8ff 45%, #6fb4ee 70%, #3f7fce 100%);
  box-shadow:
    0 0 60px rgba(143, 208, 255, 0.55),
    0 0 140px rgba(91, 178, 245, 0.35),
    inset -22px -18px 60px rgba(10, 21, 51, 0.55);
  overflow: hidden;
}

.crater {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.35), rgba(63,127,206,0.5));
  box-shadow: inset 2px 3px 6px rgba(10, 21, 51, 0.5);
  opacity: 0.55;
}
.c1 { width: 22%; height: 22%; top: 22%; left: 46%; }
.c2 { width: 13%; height: 13%; top: 52%; left: 24%; }
.c3 { width: 17%; height: 17%; top: 63%; left: 57%; }
.c4 { width: 9%;  height: 9%;  top: 36%; left: 22%; }
.c5 { width: 7%;  height: 7%;  top: 15%; left: 66%; }

/* --- Clouds --- */
.clouds { position: absolute; inset: 0; overflow: hidden; }

.cloud {
  position: absolute;
  height: 90px;
  border-radius: 999px;
  filter: blur(26px);
  background: linear-gradient(90deg, transparent, rgba(122, 168, 235, 0.16), rgba(60, 100, 170, 0.10), transparent);
}
.cloud--1 { top: 16%;  width: 46vw; left: -50vw; animation: drift 58s linear infinite; }
.cloud--2 { top: 34%;  width: 62vw; left: -70vw; animation: drift 84s linear infinite 12s; opacity: 0.7; }
.cloud--3 { top: 58%;  width: 38vw; left: -45vw; animation: drift 70s linear infinite 30s; opacity: 0.5; }

.horizon {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 32vh;
  background: linear-gradient(180deg, transparent, rgba(5, 11, 30, 0.85) 70%, var(--night-0));
}

@keyframes moonDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-14px, 22px, 0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.06); }
}
@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(200vw); }
}

/* ============================================================
   Keyboard access
   ============================================================ */

/* Every interactive element needs a visible focus ring (WCAG 2.4.7).
   :focus-visible so mouse clicks don't draw one, only keyboard travel. */
:focus-visible {
  outline: 2px solid var(--blue-300);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }
/* form fields draw their own ring below — don't stack a second one */
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: none; }

/* Lets keyboard and screen-reader users jump the nav. Off-screen until focused. */
.skip {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 200;
  padding: 0.7rem 1.4rem;
  border-radius: 0 0 12px 12px;
  background: var(--blue-400);
  color: #02060f;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translate(-50%, -130%);
  transition: transform 0.2s var(--ease);
}
.skip:focus { transform: translate(-50%, 0); color: #02060f; }

/* skip-link target: focus it programmatically without ringing the whole page */
main[tabindex="-1"]:focus { outline: none; }

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.is-stuck {
  background: rgba(4, 9, 24, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--panel-line);
}

.brand { display: flex; align-items: center; gap: 0.85rem; color: var(--text); }
.brand__mark {
  width: clamp(42px, 4.2vw, 52px);
  height: clamp(42px, 4.2vw, 52px);
  flex: none;
  filter: drop-shadow(0 0 12px rgba(143, 208, 255, 0.55));
}
.brand__text {
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  font-weight: 700;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.brand__sub {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.64rem, 0.9vw, 0.74rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
}

.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a { color: var(--text-dim); font-size: 0.92rem; font-weight: 500; }
.nav__links a:hover { color: var(--blue-100); }
/* keep the CTA readable — plain link colours must not win over .btn */
.nav__links a.btn, .nav__links a.btn:hover { color: #02060f; font-weight: 600; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: none;
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 10px;
}
.nav__toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(120deg, var(--blue-400), var(--blue-600));
  color: #02060f;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(59, 143, 224, 0.32);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 42px rgba(59, 143, 224, 0.45); filter: brightness(1.08); color: #02060f; }
.btn--sm { padding: 0.55rem 1.15rem; font-size: 0.87rem; }
.btn--ghost {
  background: transparent;
  border-color: var(--panel-line);
  color: var(--text);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(143, 208, 255, 0.08); color: var(--blue-100); box-shadow: none; }
.btn--full { width: 100%; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 4rem 0 6rem;
}
.hero__inner { max-width: 800px; }
.lede { font-size: 1.1rem; color: var(--text-dim); max-width: 60ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 2rem 0 3.5rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--panel-line);
}
.stats strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--blue-200);
}
.stats span { font-size: 0.82rem; color: var(--text-faint); }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
}
.scroll-hint span {
  position: absolute;
  top: 8px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--blue-300);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translateY(0); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

/* ============================================================
   Sections
   ============================================================ */

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--alt { background: rgba(4, 10, 26, 0.55); backdrop-filter: blur(3px); border-block: 1px solid rgba(139, 190, 255, 0.08); }
.section__head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }

.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

/* --- Ticks --- */
.ticks { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--text-dim); font-size: 0.97rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--blue-400);
  box-shadow: 0 0 12px rgba(91, 178, 245, 0.9);
}

/* --- Values --- */
.values { display: grid; gap: 1rem; }
.value {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.value:hover { transform: translateY(-4px); border-color: rgba(143, 208, 255, 0.4); background: rgba(16, 33, 77, 0.6); }
.value__icon { color: var(--blue-300); font-size: 1.2rem; margin-bottom: 0.5rem; }
.value h3 { margin-bottom: 0.35rem; }
.value p { margin: 0; color: var(--text-dim); font-size: 0.94rem; }

/* --- Cards --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem 1.8rem;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.card::after {
  content: "";
  position: absolute;
  inset: -40% 50% 50% -40%;
  background: radial-gradient(circle, rgba(143, 208, 255, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(143, 208, 255, 0.42); }
.card:hover::after { opacity: 1; }
.card__num {
  font-family: "Sora", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--blue-500);
  margin-bottom: 0.9rem;
}
.card p { margin: 0; color: var(--text-dim); font-size: 0.94rem; }

/* --- Services --- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.1rem; }
.service {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 1.8rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.service:hover { transform: translateY(-5px); border-color: rgba(143, 208, 255, 0.42); }
.service h3 { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.55rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(120deg, var(--blue-200), var(--blue-500)); box-shadow: 0 0 14px rgba(143, 208, 255, 0.8); flex: none; }
.service p { color: var(--text-dim); font-size: 0.94rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0; margin: 1.1rem 0 0; }
.tags li {
  font-size: 0.75rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--panel-line);
  color: var(--blue-200);
  background: rgba(43, 111, 214, 0.12);
}

/* --- Timeline --- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; position: relative; max-width: 780px; margin-inline: auto; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 10px; bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--blue-500), transparent);
}
.timeline li { position: relative; padding-left: 2.6rem; }
.timeline__dot {
  position: absolute;
  left: 0; top: 0.45rem;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--night-1);
  border: 2px solid var(--blue-400);
  box-shadow: 0 0 16px rgba(91, 178, 245, 0.7);
}
.timeline h3 { margin-bottom: 0.3rem; color: var(--blue-100); }
.timeline p { margin: 0; color: var(--text-dim); font-size: 0.96rem; }

/* --- Work --- */
/* two-up so an even number of case studies never leaves an orphan row */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; }
@media (max-width: 820px) { .work { grid-template-columns: 1fr; } }

.work__item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 33, 77, 0.55), rgba(5, 11, 30, 0.45));
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.work__item:hover {
  transform: translateY(-5px);
  border-color: rgba(143, 208, 255, 0.42);
  box-shadow: 0 18px 50px rgba(2, 6, 15, 0.6);
}

/* browser-chrome preview panel — swap .work__face for a screenshot any time */
.work__frame { border-bottom: 1px solid var(--panel-line); background: rgba(2, 6, 15, 0.5); }

.work__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid rgba(139, 190, 255, 0.1);
}
.work__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(143, 208, 255, 0.28); flex: none; }
.work__bar i:first-child { background: rgba(255, 138, 138, 0.45); }
.work__bar i:nth-child(2) { background: rgba(255, 209, 128, 0.45); }
.work__bar i:nth-child(3) { background: rgba(126, 231, 168, 0.45); }
.work__bar span {
  margin-left: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* live screenshot of the client site; top-anchored so the hero stays in frame */
.work__face {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: top center;
  background: linear-gradient(150deg, rgba(16, 33, 77, 0.85), rgba(2, 6, 15, 0.9));
  /* screenshots are bright next to the night palette — settle them until hover */
  filter: saturate(0.92) brightness(0.88);
  transition: filter 0.35s var(--ease), transform 0.5s var(--ease);
}
.work__item:hover .work__face { filter: none; transform: scale(1.02); }

/* keeps the shot from glaring against the dark card */
.work__frame { position: relative; overflow: hidden; }
.work__frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 11, 30, 0.55));
}

.work__body { padding: 1.6rem 1.7rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.work__tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 0.7rem;
}
.work__body h3 { margin-bottom: 0.55rem; font-size: 1.25rem; }
.work__body p { color: var(--text-dim); font-size: 0.93rem; }
.work__body .tags { margin-top: auto; padding-top: 0.4rem; }

.work__link {
  margin-top: 1.2rem;
  align-self: flex-start;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-300);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.work__link span { display: inline-block; transition: transform 0.25s var(--ease); }
.work__link:hover { color: var(--blue-100); border-bottom-color: rgba(143, 208, 255, 0.5); }
.work__link:hover span { transform: translate(2px, -2px); }

/* ============================================================
   Contact
   ============================================================ */

.section--contact { padding-bottom: clamp(4rem, 8vw, 6rem); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.85rem; }
.contact__list li { display: flex; gap: 1rem; align-items: baseline; font-size: 0.95rem; color: var(--text-dim); }
.contact__list span {
  min-width: 68px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.form {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  backdrop-filter: blur(12px);
  display: grid;
  gap: 1.1rem;
}
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.8rem; letter-spacing: 0.06em; color: var(--text-dim); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--panel-line);
  background: rgba(2, 6, 15, 0.55);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(59, 143, 224, 0.18);
}
.field input.invalid, .field textarea.invalid { border-color: #e0708a; }
.field select option { background: var(--night-2); color: var(--text); }

.form__note { margin: 0; font-size: 0.87rem; color: var(--blue-300); min-height: 1.2em; }
.form__note.error { color: #f0a0b0; }

/* replaces the fields once a request has actually been delivered */
.form__success { display: grid; justify-items: center; text-align: center; padding: 1.5rem 0.5rem; gap: 0.2rem; }
.form__success-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  color: var(--blue-200);
  background: rgba(59, 143, 224, 0.14);
  border: 1px solid rgba(143, 208, 255, 0.35);
  box-shadow: 0 0 26px rgba(91, 178, 245, 0.25);
}
.form__success-mark svg { width: 26px; height: 26px; }
.form__success h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.form__success p { margin: 0; color: var(--text-dim); font-size: 0.94rem; max-width: 34ch; }

.form__legal { margin: 0; font-size: 0.78rem; line-height: 1.55; color: var(--text-faint); text-align: center; }
.form__legal a { color: var(--text-dim); border-bottom: 1px solid rgba(139, 190, 255, 0.25); }
.form__legal a:hover { color: var(--blue-200); }

.btn:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }

/* spam honeypot — hidden from people, still reachable by bots filling every input */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; margin: 0; }

/* ============================================================
   Footer
   ============================================================ */

.footer { border-top: 1px solid var(--panel-line); padding: 2rem 0; background: rgba(2, 6, 15, 0.6); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer p { margin: 0; font-size: 0.87rem; color: var(--text-faint); }
.footer__links { display: flex; gap: 1.4rem; font-size: 0.87rem; }
.footer__links a { color: var(--text-dim); }

/* ============================================================
   Reveal animation
   ============================================================ */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */

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

  .nav__toggle { display: flex; }
  .nav__links {
    /* anchored to the nav itself, so it can't drift when the brand resizes */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem 1.6rem;
    background: rgba(4, 9, 24, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--panel-line);
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { padding: 0.85rem 0; border-bottom: 1px solid rgba(139, 190, 255, 0.08); }
  .nav__links .btn { margin-top: 1rem; border-bottom: none; justify-content: center; }

  .moon { top: 5vh; right: 6vw; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { min-height: auto; padding-top: 2rem; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
