/* =========================================================
   PROJECT XPLORE — shared design system
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,300;1,6..72,400;1,6..72,500&family=Special+Elite&display=swap');

/* ---------- Tokens ---------- */
:root {
  --ink: #e9eef2;
  --ink-mute: #bccad4;
  --ink-faint: #8595a1;
  --paper: #f3ede0;
  --brass: #c89b5e;
  --brass-bright: #e6b878;
  --rust: #8a4a2a;

  --surface-0: #06121c;   /* deepest base */
  --surface-1: #0a1a26;
  --surface-2: #0f2434;
  --surface-3: #163149;

  --aqua-1: #2a6a8a;
  --aqua-2: #3a8aaa;
  --aqua-3: #7fc6dc;
  --abyss:  #02080e;

  --hairline: rgba(233, 238, 242, 0.10);
  --hairline-strong: rgba(233, 238, 242, 0.22);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 56px);

  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Newsreader', Georgia, serif;
  --mono: 'Special Elite', 'Courier New', monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brass);
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.005em; }
h1 { font-size: clamp(40px, 7vw, 88px); }
h2 { font-size: clamp(30px, 4.4vw, 56px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
h4 { font-size: 20px; }
p { color: var(--ink-mute); max-width: 64ch; }
p.lede { font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); font-weight: 400; color: var(--ink); line-height: 1.45; }
em { font-style: italic; color: var(--paper); }
small, .small { font-size: 13px; color: var(--ink-faint); }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.stack > * + * { margin-top: 1.1em; }
.stack-lg > * + * { margin-top: 1.8em; }
.divider { height: 1px; background: var(--hairline); margin: clamp(40px, 6vw, 80px) 0; border: 0; }
.rule-brass { width: 56px; height: 1px; background: var(--brass); border: 0; margin: 0 0 28px; }

/* ---------- Page chrome ---------- */
.site-header {
  position: sticky; top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 50;
  background: linear-gradient(180deg, rgba(6,18,28,0.92), rgba(6,18,28,0.78) 70%, rgba(6,18,28,0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--paper);
}
.brand .dot { color: var(--brass); }
.nav { display: flex; gap: 36px; align-items: center; }
.nav a {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  transition: color 0.2s;
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}
.nav a:hover { color: var(--brass-bright); }
.nav a.active { color: var(--brass); }

/* ---------- Hamburger (mobile) ---------- */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(243, 237, 224, 0.25);
  color: var(--paper);
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  transition: border-color 0.2s;
}
.nav-toggle:hover { border-color: var(--brass); }
.nav-toggle span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--paper);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6, 18, 28, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    padding: 8px 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    display: block;
    padding: 16px clamp(20px, 4vw, 56px);
    font-size: 13px;
    letter-spacing: 0.22em;
    border-top: 1px solid var(--hairline);
  }
  .nav a:first-child { border-top: 0; }
  .site-header .container { position: relative; }
}

.site-footer {
  margin-top: 100px;
  padding: 44px 0 36px;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(2,8,14,0), rgba(2,8,14,0.6));
}
.site-footer .container { display: block; }
.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 24px;
}
.site-footer .credit { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper); }
.site-footer .links { display: flex; gap: 26px; justify-self: end; }
.site-footer .links a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--paper); white-space: nowrap; }
.site-footer .links a:hover { color: var(--brass-bright); }
@media (max-width: 640px) {
  .site-footer .footer-top { grid-template-columns: 1fr; }
  .site-footer .links { justify-self: start; }
}

/* ---------- Page hero (interior) ---------- */
.page-hero {
  padding: clamp(80px, 14vh, 160px) 0 clamp(60px, 8vh, 100px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(58, 138, 170, 0.18), transparent 60%),
    linear-gradient(180deg, var(--surface-1), var(--surface-0));
  border-bottom: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}
.page-hero .eyebrow { display: block; margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(30px, 4.2vw, 52px); }
.page-hero p.lede { margin-top: 24px; max-width: 36ch; }

/* ---------- Section blocks ---------- */
section.block { padding: clamp(70px, 10vh, 120px) 0; }
section.block + section.block { border-top: 1px solid var(--hairline); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 16px 22px; border: 1px solid var(--hairline-strong);
  color: var(--paper); transition: all 0.2s ease;
}
.btn:hover { border-color: var(--brass); color: var(--brass); }
.btn-primary { background: var(--brass); color: var(--surface-0); border-color: var(--brass); }
.btn-primary:hover { background: var(--brass-bright); border-color: var(--brass-bright); color: var(--surface-0); }
.btn .arrow { display: inline-block; transform: translateX(0); transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, rgba(15, 36, 52, 0.45), rgba(10, 26, 38, 0.2));
  border: 1px solid var(--hairline);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--hairline-strong); transform: translateY(-2px); }
.card .meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); }
.card h3 { margin: 12px 0 10px; color: var(--paper); }
.card p { font-size: 15px; }

/* ---------- Stat strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border: 1px solid var(--hairline);
  border-radius: 2px;
}
.stats > div { padding: 22px 24px; border-right: 1px solid var(--hairline); }
.stats > div:last-child { border-right: 0; }
.stats .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.stats .v { font-family: var(--serif); font-size: 28px; color: var(--paper); }
@media (max-width: 640px) {
  .stats > div { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .stats > div:last-child { border-bottom: 0; }
}

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Pull quote ---------- */
.pull-quote {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.32;
  color: var(--paper);
  border-left: 1px solid var(--brass);
  padding: 8px 0 8px 28px;
  max-width: 32ch;
}
.pull-quote .attrib { display: block; font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); margin-top: 18px; }

/* ---------- Decorative wreck silhouette for hero pages ---------- */
.hero-wreck {
  position: absolute; bottom: -20px; left: 0; right: 0; width: 100%; height: 180px;
  opacity: 0.18; pointer-events: none;
}

/* ---------- Form bits ---------- */
.contact-box {
  border: 1px solid var(--hairline);
  padding: 32px;
  background: rgba(10, 26, 38, 0.3);
}
.contact-box .row { display: flex; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.contact-box .row:last-child { border-bottom: 0; }
.contact-box .row .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); width: 100px; }
.contact-box .row .v { color: var(--paper); }

/* ---------- Tag chips ---------- */
.chip {
  display: inline-block; padding: 4px 10px; border: 1px solid var(--hairline-strong);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
}
.chip.brass { color: var(--brass); border-color: var(--brass); }
.chip.muted { color: var(--ink-faint); }
