/* Project Janus demo site. Supaste-inspired: white, near-black type,
   huge weight contrast, grey 24px cards, generous air. No external assets. */

:root {
  --ink: #0b0b0c;
  --muted: #5f6165;
  --card: #f5f5f6;
  --hair: #e7e7ea;
  --accent: #e8722a;
  --radius: 24px;
  --col: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

@media (min-width: 801px) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }

::selection { background: #ffdcc7; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* anchored sections clear the fixed nav pill */
#aircraft, #console, #v1, #team, #missions, #specs, #top { scroll-margin-top: 84px; }

.skip {
  position: absolute;
  left: 50%; top: -60px;
  transform: translateX(-50%);
  z-index: 60;
  background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 0 0 10px 10px;
  text-decoration: none; font-weight: 600; font-size: 14px;
  transition: top 0.15s ease;
}
.skip:focus { top: 0; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex; align-items: center; gap: 26px;
  padding: 10px 12px 10px 18px;
  background: rgba(16, 16, 18, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.3s ease;
  white-space: nowrap;
}
.nav.scrolled { box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4); }

.nav-brand {
  display: flex; align-items: center; gap: 9px;
  color: #fff; text-decoration: none;
  font-weight: 800; font-size: 17px; letter-spacing: -0.02em;
}
.nav-brand svg { width: 26px; height: 17px; color: var(--accent); }

.nav-links { display: flex; gap: 20px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 8px 2px;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: #fff; }

.nav-cta {
  background: #fff; color: #0b0b0c;
  text-decoration: none;
  font-weight: 700; font-size: 14px;
  padding: 9px 18px; border-radius: 999px;
  transition: transform 0.15s ease;
}
.nav-cta:hover { transform: scale(1.04); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(94vh, 1080px);
  min-height: min(94svh, 1080px);
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
/* the hero photo is a dark night sky: just a whisper of shade up top for the
   nav, and the white page fade at the very bottom */
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 6, 14, 0.32) 0%, rgba(4, 6, 14, 0) 32%, rgba(255, 255, 255, 0) 72%, #fff 96%);
}
.hero-copy {
  position: relative;
  text-align: center;
  padding: 0 24px clamp(100px, 18vh, 200px);
  max-width: 900px;
}
.hero-copy h1 {
  font-size: clamp(2.8rem, 6.8vw, 5.2rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.55);
}
.hero-copy p {
  margin-top: 18px;
  font-size: clamp(1.02rem, 1.8vw, 1.28rem);
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
  font-weight: 500;
}

/* ---------- intro ---------- */

.intro {
  max-width: 860px;
  margin: 0 auto;
  padding: 88px 24px 20px;
  text-align: center;
}
.intro h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
}
.intro .lede {
  margin: 20px auto 30px;
  max-width: 640px;
  color: var(--muted);
  font-size: 1.09rem;
  line-height: 1.55;
}
.chips {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-top: 10px;
}
.chips span {
  border: 1px solid var(--hair);
  background: #fff;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13.5px; font-weight: 600;
  color: #3c3c41;
}

/* ---------- feature cards ---------- */

main { max-width: var(--col); margin: 0 auto; padding: 40px 24px 20px; }

.feature {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 58px) clamp(20px, 4vw, 54px) clamp(22px, 3vw, 40px);
  margin: 44px 0;
  text-align: center;
}
.feature h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.7rem);
  font-weight: 800;
}
.feature > p {
  margin: 16px auto 34px;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}
.feature figure img,
.feature figure video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(11, 11, 12, 0.16);
  border: 1px solid rgba(11, 11, 12, 0.06);
}

.video-figure { position: relative; }
.video-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
}
.video-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.video-play svg { width: 30px; height: 30px; margin-left: 3px; }

/* ---------- capability grid ---------- */

.grid-section {
  max-width: var(--col);
  margin: 0 auto;
  padding: 60px 24px 30px;
  text-align: center;
}
.grid-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 40px;
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}
.cap {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.cap img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
}
.cap h3 { font-size: 1.08rem; font-weight: 700; padding: 16px 18px 0; }
.cap p { color: var(--muted); font-size: 0.94rem; line-height: 1.5; padding: 7px 18px 18px; }
.cap.text-only { justify-content: center; padding-top: 10px; padding-bottom: 10px; }

.pos-teams { object-position: 68% 12%; }
.pos-settings { object-position: 50% 20%; }
.pos-rf { object-position: 0% 40%; }

/* ---------- built for ---------- */

.ops {
  max-width: var(--col);
  margin: 0 auto;
  padding: 60px 24px 30px;
  text-align: center;
}
.ops h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 40px;
}
.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}
.op-card {
  background: #101012;
  color: #fff;
  border-radius: 18px;
  overflow: hidden;
}
.op-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
}
.op-card h3 {
  padding: 18px 20px 0;
  font-size: 1.15rem; font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.op-card p { padding: 8px 20px 20px; color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; line-height: 1.5; }

/* ---------- specs / faq ---------- */

.specs {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.specs h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 34px;
}
.specs details {
  border-bottom: 1px solid var(--hair);
}
.specs summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 4px;
  font-weight: 700; font-size: 1.05rem;
}
.specs summary::-webkit-details-marker { display: none; }
.specs summary::after {
  content: "+";
  font-size: 1.4rem; font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s ease;
  flex-shrink: 0; margin-left: 16px;
}
.specs details[open] summary::after { transform: rotate(45deg); }
.specs details p {
  padding: 0 4px 22px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.99rem;
}

/* ---------- footer ---------- */

.footer {
  position: relative;
  background: #0b0b0c;
  color: #fff;
  overflow: hidden;
}
.footer-art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
}
.footer-inner {
  position: relative;
  max-width: var(--col);
  margin: 0 auto;
  padding: 130px 24px 46px;
  text-align: center;
}
.footer-brand {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; font-size: 1.35rem;
}
.footer-brand svg { width: 34px; height: 22px; color: var(--accent); }
.footer-inner > p {
  margin: 14px auto 20px;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.97rem;
  line-height: 1.55;
}
.footer-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none; font-size: 0.92rem; font-weight: 600;
  padding: 12px 10px;
}
.footer-links a:hover { color: #fff; }

/* ---------- reveal animation ---------- */

/* hidden only when JS runs (html.js) AND reveals are enabled (no .reveal-off),
   so no-JS and mobile both render everything immediately */
.js:not(.reveal-off) .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js:not(.reveal-off) .reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- tablet: 2-col grids ---------- */

@media (min-width: 641px) and (max-width: 1024px) {
  .cap-grid, .ops-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- narrow / mobile ---------- */

@media (max-width: 800px) {
  .nav {
    gap: 16px;
    padding: 8px 16px;
    backdrop-filter: none;
    background: rgba(16, 16, 18, 0.97);
  }
  .nav-cta { display: none; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13.5px; padding: 10px 2px; }
  .hero { min-height: 78vh; min-height: 78svh; }
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(4, 6, 14, 0.38) 0%, rgba(4, 6, 14, 0) 34%, rgba(255, 255, 255, 0) 74%, #fff 97%);
  }
  .hero-copy { padding-bottom: 11vh; }
  .intro { padding-top: 64px; }
  .feature { margin: 22px 0; }
  .feature figure img,
  .feature figure video { border-radius: 10px; }
  .video-play { width: 64px; height: 64px; }
  main { padding: 16px 14px 8px; }
  .grid-section, .ops { padding-left: 14px; padding-right: 14px; }
  .footer-inner { padding-top: 100px; }
}

@media (max-width: 420px) {
  .hero-copy h1 br { display: none; }
}

/* ---------- mobile carousels (reduce vertical scroll) ---------- */

@media (max-width: 640px) {
  .cap-grid, .ops-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 4px 4px 18px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .cap-grid::-webkit-scrollbar, .ops-grid::-webkit-scrollbar { display: none; }
  .cap, .op-card {
    flex: 0 0 78%;
    scroll-snap-align: center;
  }
  .cap.text-only { flex-basis: 64%; }
}

/* ---------- vexil components ---------- */

.feature-wrap { max-width: var(--col); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: block;
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ---------- legal pages ---------- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px 24px 70px;
}
.legal h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 800;
}
.legal-date {
  margin: 10px 0 26px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.legal h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 30px 0 8px;
}
.legal p {
  color: #3c3c41;
  line-height: 1.65;
  margin: 10px 0;
  font-size: 0.99rem;
}
.legal a { color: var(--accent); }
.legal-footer { margin-top: 40px; }
.legal-footer .footer-inner { padding-top: 44px; }

.footer-copy {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
}

.section-lede {
  margin: 18px auto 26px;
  max-width: 640px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}
.grid-section .chips { margin-bottom: 38px; }

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  text-align: center;
}
.spec-stat {
  background: #fff;
  border-radius: 18px;
  padding: 34px 26px 30px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.spec-stat svg {
  width: min(250px, 72%);
  height: auto;
  color: var(--ink);
  margin-bottom: 24px;
}
.spec-num {
  font-size: clamp(3.2rem, 6.5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.spec-num.spec-word {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  letter-spacing: -0.02em;
}
.spec-unit {
  font-size: 0.42em;
  font-weight: 700;
  color: var(--muted);
  margin-left: 8px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.spec-stat > p {
  margin-top: 12px;
  max-width: 330px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.spec-stat.type-only { justify-content: center; min-height: 260px; }
.spec-stat.wide { grid-column: 1 / -1; }

.dev-chip {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 30px;
  padding: 8px 17px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: #fff;
  color: #3c3c41;
  font-size: 13.5px; font-weight: 600;
}
.dev-chip svg {
  width: 13px; height: 13px;
  color: var(--accent);
  flex-shrink: 0;
}

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 30px;
  background: var(--ink); color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700; font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.btn:hover { transform: scale(1.04); }
.btn::after { content: "\2192"; font-weight: 400; }
.btn-outline {
  background: #fff; color: var(--ink);
  border: 1px solid var(--hair);
}

.console-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.console-thumbs img {
  border-radius: 14px;
  border: 1px solid rgba(11, 11, 12, 0.06);
  box-shadow: 0 12px 34px rgba(11, 11, 12, 0.1);
}

.ops-grid.two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px;
  margin: 0 auto;
}
.op-card .picto { padding: 26px 20px 0; }
.op-card .picto svg { width: 44px; height: 44px; color: var(--accent); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.member {
  background: var(--card);
  border-radius: 18px;
  padding: 12px 12px 18px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: transform 0.15s ease;
}
.member:hover { transform: translateY(-4px); }
.member img { border-radius: 10px; width: 100%; height: auto; }
.member h3 { margin-top: 14px; font-size: 1rem; font-weight: 700; }
.member p { margin-top: 3px; color: var(--muted); font-size: 0.85rem; }
.member-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--accent);
}

@media (min-width: 641px) and (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .ops-grid.two { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  .feature-wrap { padding: 0 14px; }
}

@media (max-width: 640px) {
  .spec-grid { grid-template-columns: 1fr; }
  .spec-stat.type-only { min-height: 0; padding-top: 26px; }
  .console-thumbs { grid-template-columns: 1fr; }
  .ops-grid.two .op-card { flex: 0 0 84%; }
  .team-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 4px 4px 18px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .team-grid::-webkit-scrollbar { display: none; }
  .member { flex: 0 0 62%; scroll-snap-align: center; }
}
