/* GV5 Technologies — shared editorial system
   Palette: Paper ivory + ink near-black, single rust accent.
   Type: Instrument Serif (display) / Geist Sans (body) / Geist Mono (utility)
*/

:root {
  /* Obsidian dossier — true black ground, warm parchment fg, single signet accent */
  --paper: #0a0a0b; /* base */
  --paper-2: #111113; /* raised */
  --paper-3: #18181b; /* card */
  --paper-4: #202024; /* hover */
  --ink: #ece6d4; /* warm bone — primary text */
  --ink-2: #c9c2ae; /* secondary */
  --ink-3: #7e7866; /* tertiary / labels */
  --ink-4: #4d4838; /* faint */
  --rule: rgba(236, 230, 212, 0.1);
  --rule-strong: rgba(236, 230, 212, 0.24);
  --accent: #c8612f; /* rust signet, slightly hotter for dark ground */
  --accent-2: #a04820;
  --signal: #6fae82; /* "ok" green */

  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Geist", "Geist Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo,
    monospace;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 2px; /* editorial, almost square */
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Paper grain — extremely subtle film grain on dark */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(
    rgba(236, 230, 212, 0.025) 1px,
    transparent 1px
  );
  background-size: 3px 3px;
  mix-blend-mode: screen;
  opacity: 0.5;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* ——— Layout primitives ——— */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.hairline {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 0;
}
.hairline-strong {
  border: 0;
  height: 1px;
  background: var(--rule-strong);
  margin: 0;
}

/* ——— Type ——— */
.serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.mono {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.02;
}
h1 {
  font-size: clamp(56px, 9vw, 132px);
}
h2 {
  font-size: clamp(44px, 6.4vw, 96px);
}
h3 {
  font-size: clamp(28px, 3.6vw, 52px);
}
h4 {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
}

p {
  margin: 0;
}
.lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.4;
  color: var(--ink-2);
  font-style: italic;
  letter-spacing: -0.005em;
}

.body-lg {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
}
.body-md {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* italic-only refinement */
em,
.it {
  font-style: italic;
  font-family: var(--serif);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: all 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.btn .arrow {
  transition: transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.btn:hover .arrow {
  transform: translateX(4px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover {
  background: var(--paper-3);
  color: var(--ink);
  border-color: var(--ink);
}

/* ——— Header / Nav ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--paper) 78%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.brand-mark {
  display: inline-block;
  width: 36px;
  height: 36px;
  position: relative;
  background: center / contain no-repeat url("uploads/gv5-mark.svg");
}
.brand-mark::after {
  content: none;
}
.brand-mark em {
  display: none;
}
.brand-name {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
}
.brand-suffix {
  color: var(--ink-3);
}

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 14px;
  color: var(--ink-2);
  position: relative;
  transition: color 200ms;
}
.nav a:hover {
  color: var(--ink);
}
.nav a[aria-current="page"] {
  color: var(--ink);
}
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
}
.nav-cta {
  margin-left: 12px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  transition: all 200ms;
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 80px 0 36px;
  margin-top: 120px;
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .serif-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 64px;
  line-height: 0.9;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 20px;
  font-weight: 400;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.footer-col a {
  color: var(--ink-2);
  transition: color 200ms;
  font-size: 14px;
}
.footer-col a:hover {
  color: var(--accent);
}

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 36px;
  margin-top: 60px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.footer-base .meta {
  display: flex;
  gap: 24px;
}

/* ——— Section header with corner crosshairs ——— */
.section {
  padding: clamp(80px, 10vw, 160px) 0;
  position: relative;
  z-index: 2;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.section-head .meta-col {
  display: grid;
  gap: 16px;
  align-content: end;
}
.section-head .number {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}

/* corner ticks utility */
.ticks {
  position: relative;
}
.ticks::before,
.ticks::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--ink);
  pointer-events: none;
}
.ticks::before {
  top: -6px;
  left: -6px;
  border-right: 0;
  border-bottom: 0;
}
.ticks::after {
  bottom: -6px;
  right: -6px;
  border-left: 0;
  border-top: 0;
}

/* tag chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: transparent;
}
.chip .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* "Q-Branch" status bar — subtle, ambient */
.statusbar {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--paper-2);
}
.statusbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.statusbar .group {
  display: flex;
  gap: 24px;
  align-items: center;
}
.statusbar .pulse {
  width: 6px;
  height: 6px;
  background: var(--signal);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
  display: inline-block;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* fade-in on enter */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* responsive */
@media (max-width: 880px) {
  .nav a:not(.nav-cta) {
    display: none;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
