/* ============================================================
   AI Guardians — showcase site
   Palette and type sourced from the game's gui.rpy
   ============================================================ */

/* ---------- Fonts (self-hosted, no third-party CDN) ---------- */
@font-face {
  font-family: "Rajdhani";
  src: url("/assets/fonts/Rajdhani-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Rajdhani";
  src: url("/assets/fonts/Rajdhani-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Rajdhani";
  src: url("/assets/fonts/Rajdhani-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Exo 2";
  src: url("/assets/fonts/Exo2-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --cyan: #00d4ff;
  --cyan-deep: #0099cc;
  --green: #43d48d;
  --gold: #e8d5b7;
  --gold-bright: #ffd673;

  --navy: #0c1625;
  --navy-deep: #05080c;
  --card: #111a2e;
  --card-hover: #162030;

  --text: #e8eaf0;
  --text-dim: #c8cdd6;
  --text-mute: #8b9bb0;

  --line: rgba(0, 212, 255, 0.16);
  --line-soft: rgba(160, 190, 220, 0.10);
  --glow: 0 0 40px rgba(0, 212, 255, 0.28);

  --display: "Rajdhani", "Futura", system-ui, sans-serif;
  --body: "Exo 2", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --r: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--navy-deep);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--cyan); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: #fff; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.06; letter-spacing: 0.01em; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--cyan); color: #001018; padding: 10px 16px;
  border-radius: 8px; font-weight: 600; z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: #001018; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.wrap--narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5em;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.85em 1.8em; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: nowrap;
}
.btn--sm { font-size: 0.92rem; padding: 0.6em 1.3em; }
.btn--lg { font-size: 1.18rem; padding: 1em 2.4em; }

.btn--primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  color: #001018;
  box-shadow: 0 6px 24px rgba(0, 212, 255, 0.30);
}
.btn--primary:hover {
  color: #001018;
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(0, 212, 255, 0.50);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover {
  color: #fff;
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  transform: translateY(-2px);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 12, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); }
.nav__brand:hover { color: #fff; }
.nav__emblem { width: 40px; height: 40px; filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.45)); }
.nav__wordmark { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.06em; text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav__links a:not(.btn) {
  color: var(--text-dim); font-family: var(--display); font-weight: 500;
  font-size: 1.02rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.nav__links a:not(.btn):hover { color: var(--cyan); }
.nav__links a[aria-current="true"]:not(.btn) { color: var(--cyan); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 26px; height: 2px; background: var(--text); transition: transform 0.25s var(--ease), opacity 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); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, #102236 0%, var(--navy) 38%, var(--navy-deep) 100%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(0, 153, 204, 0.10), transparent 70%),
    linear-gradient(to bottom, transparent 55%, rgba(5, 8, 12, 0.65) 100%);
}
.hero__glow {
  position: absolute; left: 50%; bottom: -10%; transform: translateX(-50%);
  width: 90%; height: 40%; z-index: 1;
  background: radial-gradient(50% 100% at 50% 100%, rgba(0, 212, 255, 0.18), transparent 70%);
  filter: blur(20px);
}
.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }

.hero__emblem {
  width: clamp(140px, 22vw, 230px); height: auto;
  filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.55));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero__title {
  font-size: clamp(3rem, 11vw, 7rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.4rem;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0, 212, 255, 0.35);
}
.hero__strap {
  display: flex; align-items: center; gap: 0.8rem;
  font-family: var(--display); font-weight: 500;
  letter-spacing: 0.35em; text-transform: uppercase;
  font-size: clamp(0.8rem, 2vw, 1.05rem);
  color: var(--cyan);
  margin-top: 0.6rem; padding: 0.5rem 1.4rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(0, 212, 255, 0.05);
}
.hero__strap i { color: var(--text-mute); font-style: normal; }
.hero__lede {
  max-width: 620px; margin-top: 1.6rem;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--text-dim);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.hero__badges {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; justify-content: center;
  list-style: none; padding: 0; margin-top: 2.2rem;
}
.hero__badges li {
  font-family: var(--display); font-size: 0.92rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text-mute);
  display: flex; align-items: center; gap: 0.6rem;
}
.hero__badges li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: var(--cyan);
  animation: scrolly 1.8s ease-in-out infinite;
}
@keyframes scrolly { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 100% { opacity: 0; top: 22px; } }

/* ---------- Section shell ---------- */
.section { padding: clamp(72px, 11vw, 130px) 0; position: relative; scroll-margin-top: 88px; }
.section--about { background: linear-gradient(to bottom, var(--navy-deep), var(--navy)); }
.section--careers { background: var(--navy); }
.section--gallery { background: linear-gradient(to bottom, var(--navy), var(--navy-deep)); }
.section--ally { background: var(--navy-deep); }
.section--educators { background: linear-gradient(to bottom, var(--navy-deep), var(--navy)); }
.section--faq { background: var(--navy); }
.section--get {
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(0, 153, 204, 0.14), transparent 60%),
    var(--navy-deep);
  text-align: center;
}

.eyebrow {
  font-family: var(--display); font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--cyan); font-size: 0.86rem; margin-bottom: 0.8rem;
}
.section__title { font-size: clamp(1.9rem, 4.6vw, 3.1rem); color: #fff; max-width: 16ch; }
.section--careers .section__title, .section--gallery .section__title, .section--get .section__title { max-width: none; }
.section__title em { color: var(--cyan); font-style: normal; }

.lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--text-dim); max-width: 65ch; margin-top: 1.2rem; }
.lede--center { margin-inline: auto; text-align: center; }
.section--careers .lede--center, .section--gallery .lede--center, .section--get .lede--center { margin-top: 1.2rem; }

/* center the careers/gallery/get headers */
.section--careers .wrap > .eyebrow,
.section--gallery .wrap > .eyebrow,
.section--get .wrap > .eyebrow { text-align: center; }
.section--careers .section__title,
.section--gallery .section__title,
.section--get .section__title { text-align: center; margin-inline: auto; }

/* ---------- Features ---------- */
.features {
  list-style: none; padding: 0; margin-top: clamp(2.4rem, 5vw, 3.6rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1.2rem;
}
.feature {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 1.6rem 1.5rem; position: relative; overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease);
}
.feature::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0.5; transition: opacity 0.22s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: var(--line); background: var(--card-hover); }
.feature:hover::before { opacity: 1; }
.feature h3 { font-size: 1.28rem; color: var(--gold); margin-bottom: 0.5rem; letter-spacing: 0.02em; }
.feature p { color: var(--text-dim); font-size: 0.98rem; }

/* ---------- Routes ---------- */
.routes {
  list-style: none; padding: 0; margin-top: clamp(2.4rem, 5vw, 3.6rem);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 1.4rem;
}
.route {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.route:hover { transform: translateY(-6px); border-color: var(--cyan); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 212, 255, 0.25); }
.route__art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.route__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.route:hover .route__art img { transform: scale(1.06); }
.route__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17, 26, 46, 0.9), transparent 60%); }
.route__badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-family: var(--display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #001018; background: var(--gold-bright);
  padding: 0.3em 0.8em; border-radius: 999px;
}
.route__body { padding: 1.3rem 1.4rem 1.5rem; }
.route__role { font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.route__name { font-size: 1.5rem; color: #fff; margin: 0.2rem 0 0.5rem; }
.route__line { color: var(--text-dim); font-size: 0.98rem; }
.route--bonus { border-color: rgba(255, 214, 115, 0.28); }

/* ---------- Gallery ---------- */
.gallery {
  list-style: none; padding: 0; margin-top: clamp(2.4rem, 5vw, 3.6rem);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1rem;
}
.shot {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line-soft); border-radius: 10px;
  overflow: hidden; cursor: zoom-in; background: var(--card); position: relative;
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease);
}
.shot img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.shot:hover { transform: translateY(-4px); border-color: var(--cyan); }
.shot:hover img { transform: scale(1.05); }
.shot__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none;
  padding: 1.5rem 0.95rem 0.7rem;
  font-family: var(--display); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.03em;
  color: #fff; text-align: left;
  background: linear-gradient(to top, rgba(5, 8, 12, 0.92), rgba(5, 8, 12, 0.5) 55%, transparent);
}

/* ---------- A.L.L.Y. quote ---------- */
.ally { display: flex; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); flex-wrap: wrap; justify-content: center; }
.ally__portrait {
  width: clamp(180px, 28vw, 300px); height: auto; border-radius: 50%;
  border: 1px solid var(--line); background: radial-gradient(circle at 50% 35%, rgba(0, 212, 255, 0.18), transparent 70%);
  filter: drop-shadow(0 0 26px rgba(0, 212, 255, 0.30));
}
.ally__quote { max-width: 560px; flex: 1 1 320px; }
.ally__quote blockquote {
  font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.35; color: var(--text); border-left: 3px solid var(--cyan); padding-left: 1.4rem;
}
.ally__quote figcaption { margin-top: 1rem; color: var(--cyan); letter-spacing: 0.04em; font-family: var(--display); }

/* ---------- Educators ---------- */
.edu { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.edu__list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 0.9rem; }
.edu__list li { padding-left: 1.8rem; position: relative; color: var(--text-dim); }
.edu__list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px;
  border-radius: 2px; background: var(--green); box-shadow: 0 0 8px var(--green);
}
.edu__list strong { color: var(--text); }
.edu__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.edu__card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.8rem; position: sticky; top: 96px;
}
.edu__card h3 { color: var(--gold); font-size: 1.3rem; margin-bottom: 1rem; }
.edu__card ul { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.edu__card li { color: var(--text-dim); padding-left: 1.6rem; position: relative; }
.edu__card li::before { content: "▸"; position: absolute; left: 0; color: var(--cyan); }

/* ---------- FAQ ---------- */
.faq { margin-top: 2.4rem; display: grid; gap: 0.8rem; }
.faq details {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 10px;
  overflow: hidden; transition: border-color 0.2s var(--ease);
}
.faq details[open] { border-color: var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.4rem;
  font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.5rem; line-height: 1; transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--cyan); }
.faq__body { padding: 0 1.4rem 1.2rem; color: var(--text-dim); }

/* ---------- Team / Made by ---------- */
.section--team { background: linear-gradient(to bottom, var(--navy-deep), var(--navy)); }
.section--team .eyebrow { text-align: center; }
.section--team .section__title { text-align: center; margin-inline: auto; max-width: none; }
.team {
  list-style: none; padding: 0; margin: clamp(2.4rem, 5vw, 3.4rem) auto 2.4rem;
  max-width: 940px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 1.2rem;
}
.team__member {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 1.6rem 1.4rem; text-align: center;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}
.team__member:hover { transform: translateY(-4px); border-color: var(--line); }
.team__role { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.team__name { font-size: 1.4rem; color: var(--gold); margin-top: 0.3rem; }
.team__studios {
  display: flex; align-items: center; justify-content: center; gap: 1.2rem;
  font-family: var(--display); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); font-size: clamp(1rem, 2.4vw, 1.4rem);
}
.team__studios i { color: var(--cyan); font-style: normal; }

/* ---------- Contact ---------- */
.section--contact { background: linear-gradient(to bottom, var(--navy), var(--navy-deep)); }
.section--contact .eyebrow { text-align: center; }
.section--contact .section__title { text-align: center; margin-inline: auto; max-width: none; }

.contact__paths {
  list-style: none; padding: 0; margin-top: clamp(2.4rem, 5vw, 3.4rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 1.2rem;
}
.contact__card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 1.7rem 1.6rem; display: flex; flex-direction: column; gap: 0.6rem;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease);
}
.contact__card:hover { transform: translateY(-4px); border-color: var(--line); background: var(--card-hover); }
.contact__card h3 { font-size: 1.3rem; color: var(--gold); letter-spacing: 0.02em; }
.contact__card p { color: var(--text-dim); font-size: 0.98rem; flex: 1; }
.contact__card .btn { margin-top: 0.8rem; align-self: flex-start; max-width: 100%; white-space: normal; text-align: center; }

/* ---------- Launch-notify ---------- */
.notify {
  margin-top: 1.2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: center;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(0, 212, 255, 0.07), transparent 60%),
    var(--card);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.notify__text h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); color: #fff; }
.notify__text p { color: var(--text-dim); margin-top: 0.6rem; }

.notify__form { display: grid; gap: 0.9rem; align-content: start; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--display); font-weight: 500; font-size: 0.86rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim);
}
.notify__form input[type="email"] {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--text);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  border-radius: 10px; padding: 0.8em 1em;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.notify__form input[type="email"]::placeholder { color: var(--text-mute); }
.notify__form input[type="email"]:focus-visible {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.25);
}
.notify__form input[aria-invalid="true"] { border-color: #ff6b6b; }
.notify__form .btn { justify-self: start; }

/* Honeypot: pulled out of view and out of layout, present only for bots. */
.notify__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notify__status { min-height: 1.2em; font-size: 0.95rem; color: var(--text-mute); }
.notify__status.is-ok { color: var(--green); }
.notify__status.is-error { color: #ff8a8a; }

@media (max-width: 720px) {
  .notify { grid-template-columns: 1fr; }
}

/* ---------- Get / final CTA ---------- */
.get__cta { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; margin-top: 2.2rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); border-top: 1px solid var(--line); padding: 3rem 0 2.4rem; }
.footer__inner { display: grid; gap: 1.6rem; }
.footer__brand { display: flex; align-items: center; gap: 0.8rem; }
.footer__brand img { filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4)); }
.footer__name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.footer__tag { color: var(--text-mute); font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; }
.footer__links a { color: var(--text-dim); font-family: var(--display); letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.95rem; }
.footer__links a:hover { color: var(--cyan); }
.footer__legal { color: var(--text-mute); font-size: 0.85rem; max-width: 70ch; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(3, 6, 10, 0.92); backdrop-filter: blur(8px); padding: 4vw;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 92vw; max-height: 88vh; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.lightbox__close {
  position: absolute; top: 18px; right: 24px; background: none; border: 0;
  color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; padding: 8px;
}
.lightbox__close:hover { color: var(--cyan); }

/* ---------- Scroll reveal ---------- */
[data-reveal]:not(.is-visible) { will-change: opacity, transform; }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7, 12, 20, 0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 1rem clamp(20px, 5vw, 40px) 1.6rem;
    transform: translateY(-130%); transition: transform 0.32s var(--ease);
    max-height: calc(100svh - 72px); overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a:not(.btn) { padding: 0.9rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1.1rem; }
  .nav__links .btn { margin-top: 1rem; }
  .nav__toggle { display: flex; }
  .edu { grid-template-columns: 1fr; }
  .edu__card { position: static; }
  .ally { flex-direction: column; text-align: center; }
  .ally__quote blockquote { border-left: 0; border-top: 3px solid var(--cyan); padding-left: 0; padding-top: 1.2rem; }
  .ally__quote figcaption { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__emblem, .hero__scroll span { animation: none; }
  .route:hover .route__art img, .shot:hover img { transform: none; }
  .btn, .feature, .route, .team__member, .shot, .contact__card, .nav__links { transition: none; }
  .btn:hover, .feature:hover, .route:hover, .team__member:hover, .shot:hover, .contact__card:hover { transform: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
