/* ── Asset150 — Shared Stylesheet ─────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Serif:ital,wght@0,300;0,400;1,400&display=swap');

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --abyss:   #0A1628;
  --vault:   #152744;
  --chalk:   #E4EBF2;
  --slate:   #9DAFC0;
  --grid-c:  #5B8DB8;
  --signal:  #B8912E;
  --rule:    rgba(91,141,184,0.18);
  --rule-lt: rgba(91,141,184,0.08);

  --display: 'Barlow Condensed', sans-serif;
  --serif:   'IBM Plex Serif', Georgia, serif;
  --mono:    'IBM Plex Mono', 'Courier New', monospace;

  --nav-h: 84px;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
img, svg { display: block; }

body {
  background-color: var(--abyss);
  color: var(--chalk);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  background-image:
    linear-gradient(var(--rule-lt) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-lt) 1px, transparent 1px),
    linear-gradient(rgba(91,141,184,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,141,184,0.10) 1px, transparent 1px);
  background-size: 30px 30px, 30px 30px, 120px 120px, 120px 120px;
}

/* ── Skip link ───────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--grid-c);
  color: var(--abyss);
  padding: 0.5rem 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  z-index: 200;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(10,22,40,0.90);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(10,22,40,0.98); }
.nav-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0%;
  background: var(--grid-c);
  box-shadow: 0 0 8px rgba(91,141,184,0.6);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--chalk);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-logo em { color: var(--signal); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--chalk); }

.nav-cta {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--abyss) !important;
  background: var(--grid-c);
  padding: 0.72rem 1.6rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.nav-cta::after {
  content: '\2192';
  font-size: 0.9em;
  transition: transform 0.2s;
}
.nav-cta:hover { background: var(--chalk); color: var(--abyss); box-shadow: 0 0 0 4px rgba(91,141,184,0.15); }
.nav-cta:hover::after { transform: translateX(3px); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--chalk);
  transition: transform 0.25s, opacity 0.25s;
}

/* ── Focus states ────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 1.5px solid var(--grid-c);
  outline-offset: 4px;
}

/* ── Section anatomy ─────────────────────────────────────────────────────── */
.section {
  padding: 6rem 2.5rem;
  border-top: 1px solid var(--rule);
  position: relative;
}
.section--alt { background: rgba(21,39,68,0.35); }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: start;
}

/* ── Crosshair + label ───────────────────────────────────────────────────── */
.s-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  padding-top: 0.4rem;
}
.s-label .cross {
  position: relative;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.s-label .cross::before,
.s-label .cross::after {
  content: '';
  position: absolute;
  background: var(--grid-c);
}
.s-label .cross::before { width: 100%; height: 1px; top: 50%; transform: translateY(-50%); }
.s-label .cross::after  { height: 100%; width: 1px; left: 50%; transform: translateX(-50%); }

.section-headline {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--chalk);
}
.section-sub {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.7;
  margin-top: 0.75rem;
  max-width: 60ch;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.65rem 1.5rem;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}
.btn-lg {
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  padding: 1.05rem 2.6rem;
}
.btn-primary {
  background: var(--grid-c);
  color: var(--abyss);
  box-shadow: 0 8px 30px -12px rgba(91,141,184,0.7);
}
.btn-primary:hover { background: var(--chalk); box-shadow: 0 10px 34px -12px rgba(228,235,242,0.5); }

.btn-outline {
  background: transparent;
  color: var(--chalk);
  border: 1px solid var(--rule);
}
.btn-outline:hover { border-color: var(--grid-c); color: var(--grid-c); }

.btn-ghost {
  background: transparent;
  color: var(--grid-c);
  border: 1px solid rgba(91,141,184,0.3);
  padding: 0.5rem 1rem;
}
.btn-ghost:hover { background: rgba(91,141,184,0.1); }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: rgba(21,39,68,0.5);
  border: 1px solid var(--rule);
  padding: 2rem;
}
.card-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grid-c);
  margin-bottom: 1rem;
}
.card-title {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--chalk);
  margin-bottom: 0.75rem;
}
.card-body {
  font-family: var(--serif);
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.75;
}

/* ── Rule divider ────────────────────────────────────────────────────────── */
.rule {
  height: 1px;
  background: var(--rule);
  margin: 2rem 0;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--rule);
  padding: 3rem 2.5rem;
  position: relative;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--chalk);
  letter-spacing: 0.06em;
}
.footer-brand em { color: var(--signal); font-style: normal; }
.footer-addr {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--slate);
  line-height: 1.9;
  letter-spacing: 0.04em;
  margin-top: 0.75rem;
}
.footer-meta {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--slate);
  letter-spacing: 0.08em;
  text-align: right;
  line-height: 2;
}
.footer-nav {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--chalk); }

/* ── Scroll reveal ───────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  body { background-image:
    linear-gradient(var(--rule-lt) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-lt) 1px, transparent 1px),
    linear-gradient(rgba(91,141,184,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,141,184,0.10) 1px, transparent 1px);
    background-size: 30px 30px, 30px 30px, 120px 120px, 120px 120px;
    animation: none;
  }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .section { padding: 4rem 1.5rem; }
  .section-header { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2.5rem; }
  .nav { padding: 0 1.5rem; }
  .footer { padding: 2.5rem 1.5rem; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    /* Height is explicit because .nav's backdrop-filter makes it the
       containing block for this fixed child, so `bottom: 0` would resolve
       against the 68px nav instead of the viewport. */
    height: calc(100dvh - var(--nav-h));
    background: var(--abyss);
    padding: 1.5rem 1.5rem 2rem;
    gap: 0.25rem;
    align-items: stretch;
    border-top: 1px solid var(--rule);
    overflow-y: auto;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open li a {
    display: flex;
    align-items: center;
    min-height: 52px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links.open .nav-cta {
    margin-top: 1rem;
    justify-content: center;
    border-bottom: none;
    min-height: 52px;
  }
  .nav-toggle { display: flex; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
  .footer-nav { gap: 1.25rem 1.75rem; }
  .footer-nav a { display: inline-block; padding: 0.35rem 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-lg { width: 100%; text-align: center; }
}
