/* ============================================================
   Obelisk Strategic Services — global stylesheet
   Palette: deep navy / charcoal / paper white / slate silver / muted gold
   Type: Barlow Condensed (display) · Barlow (body) · IBM Plex Mono (utility)
   ============================================================ */

:root {
  --navy-950: #0A1220;
  --navy-900: #0E1A2E;
  --navy-800: #16273F;
  --navy-700: #1F3355;
  --ink: #1C2430;
  --slate: #5B6675;
  --silver: #95A0B0;
  --line: #D9DEE5;
  --line-dark: rgba(255, 255, 255, 0.14);
  --paper: #F6F7F9;
  --white: #FFFFFF;
  --gold: #B38B45;
  --gold-bright: #CFA95E;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  --wrap: 1160px;
  --radius: 2px;
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, h4 { margin: 0 0 0.5em; }

p { margin: 0 0 1em; }

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

.wrap {
  width: min(var(--wrap), 100% - 3rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Typography ---------- */

.display-1,
.display-2,
.display-3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.04;
}

.display-1 { font-size: clamp(2.9rem, 6.2vw, 4.6rem); }
.display-2 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
.display-3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--slate);
  max-width: 42em;
}

.on-dark .lede { color: var(--silver); }

/* Eyebrow: mono label with gold pyramidion tick */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  flex: none;
}

/* Meridian rule: vertical gold marker used beside section heads */
.meridian {
  border: 0;
  width: 2px;
  height: 44px;
  margin: 0 0 1.2rem;
  background: linear-gradient(var(--gold) 0 8px, var(--line) 8px);
}

.on-dark .meridian { background: linear-gradient(var(--gold) 0 8px, var(--line-dark) 8px); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-950);
}
.btn-gold:hover { background: var(--gold-bright); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

.btn-ghost-dark {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}
.btn-ghost-dark:hover { border-color: var(--gold); color: var(--gold); }

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Inline text link */
.text-link {
  font-weight: 600;
  color: var(--navy-800);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}
.text-link:hover { color: var(--gold); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-950);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.site-header.scrolled { border-bottom-color: var(--line-dark); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark { width: 29px; height: 36px; flex: none; }

.brand-text { line-height: 1.1; }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--silver);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--white); }

.site-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--gold);
}

.site-nav .nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
}
.site-nav .nav-cta:hover { background: var(--gold); color: var(--navy-950); }
.site-nav .nav-cta[aria-current="page"] { background: var(--gold); color: var(--navy-950); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
}

.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block;
  width: 20px; height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before,
.nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }

body.nav-open .nav-toggle .bars { transform: rotate(45deg); }
body.nav-open .nav-toggle .bars::before { transform: rotate(-90deg) translateX(-6px); }
body.nav-open .nav-toggle .bars::after { opacity: 0; }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding: 5.5rem 0 5rem;
  min-height: min(78vh, 760px);
}

.hero h1 { color: var(--white); margin-bottom: 1.2rem; }

.hero .lede { margin-bottom: 2.2rem; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-figure { position: relative; }

.hero-figure svg { width: 100%; height: auto; }

/* line styles inside the hero obelisk SVG */
.ob-line { stroke: var(--silver); stroke-width: 1.4; fill: none; }
.ob-faint { stroke: rgba(149, 160, 176, 0.35); stroke-width: 1; fill: none; }
.ob-gold { stroke: var(--gold-bright); stroke-width: 1.4; fill: none; }
.ob-gold-fill { fill: var(--gold); }
.ob-route {
  stroke: rgba(207, 169, 94, 0.55);
  stroke-width: 1.2;
  fill: none;
  stroke-dasharray: 5 8;
  animation: route-drift 26s linear infinite;
}
.ob-node { fill: var(--gold-bright); }
.ob-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  fill: var(--silver);
}

@keyframes route-drift {
  to { stroke-dashoffset: -260; }
}

/* Marker strip under hero */
.hero-strip {
  border-top: 1px solid var(--line-dark);
  padding: 1.1rem 0;
}

.hero-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.4rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
}

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  position: relative;
  background:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
  background-size: 56px 56px, 56px 56px, 100% 100%;
  color: var(--white);
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}

.page-hero h1 { color: var(--white); max-width: 16em; }

.page-hero .lede { max-width: 40em; margin-bottom: 0; }

.page-hero .watermark {
  position: absolute;
  right: 4%;
  bottom: -12%;
  width: clamp(120px, 16vw, 210px);
  opacity: 0.1;
  pointer-events: none;
}

/* ---------- Sections ---------- */

.section { padding: 5.5rem 0; }

.section-tight { padding: 4rem 0; }

.section-dark {
  background: var(--navy-900);
  color: var(--white);
}

.section-dark h2, .section-dark h3 { color: var(--white); }

.section-paper { background: var(--paper); }

.section-head { max-width: 46em; margin-bottom: 3rem; }

.section-head h2 { margin-bottom: 0.6rem; }

.section-head .lede { margin-bottom: 0; }

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ---------- Cards & grids ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: border-top-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  border-top-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(14, 26, 46, 0.09);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0.9rem 0 0.5rem;
}

.card p { margin-bottom: 0; color: var(--slate); font-size: 0.98rem; }

.card .icon {
  width: 34px; height: 34px;
  stroke: var(--navy-800);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Dark variant */
.section-dark .card {
  background: var(--navy-800);
  border-color: var(--line-dark);
  border-top-color: var(--line-dark);
}
.section-dark .card:hover { border-top-color: var(--gold); box-shadow: none; }
.section-dark .card p { color: var(--silver); }
.section-dark .card .icon { stroke: var(--gold-bright); }

/* Link cards */
a.card { display: block; text-decoration: none; color: inherit; }

/* Capability group blocks */
.cap-group { margin-bottom: 3.5rem; }
.cap-group:last-child { margin-bottom: 0; }

.cap-group-head {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.9rem;
  margin-bottom: 1.6rem;
}

.cap-group-head h2 { margin: 0; }

.cap-group-head .mono-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Definition rows (used on capability + government pages) */
.def-list { display: grid; gap: 0; }

.def-row {
  display: grid;
  grid-template-columns: 0.85fr 1.6fr;
  gap: 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.def-row:last-child { border-bottom: 0; }

.def-row h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.def-row p { margin: 0; color: var(--slate); }

.def-row ul { margin: 0.6rem 0 0; padding-left: 1.1rem; color: var(--slate); }
.def-row li { margin-bottom: 0.25rem; }

/* Split feature (two-column band) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.split h2 { margin-bottom: 1rem; }

/* Checklist */
.checklist { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.7rem; }

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--slate);
}

.on-dark .checklist li, .section-dark .checklist li { color: var(--silver); }

.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.52em;
  width: 9px; height: 9px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* Process steps (real sequence — numbering is meaningful) */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}

.step {
  border-top: 2px solid var(--line-dark);
  padding-top: 1.2rem;
  counter-increment: step;
}

.step::before {
  content: "PHASE 0" counter(step);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0.6rem 0 0.4rem;
}

.step p { color: var(--silver); font-size: 0.96rem; margin: 0; }

/* Light-background variant */
.steps-light .step { border-top-color: var(--line); }
.steps-light .step::before { color: var(--gold); }
.steps-light .step p { color: var(--slate); }

/* Stat-free positioning strip */
.domain-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.domain-strip > div {
  padding: 1.4rem 1.2rem;
  border-right: 1px solid var(--line);
  background: var(--white);
}

.domain-strip > div:last-child { border-right: 0; }

.domain-strip .mono-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.domain-strip strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* ---------- CTA band ---------- */

.cta-band {
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    var(--navy-950);
  background-size: 56px 56px, 56px 56px, auto;
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.cta-band h2 { color: var(--white); max-width: 22em; margin-inline: auto; }

.cta-band .lede { margin: 0 auto 2.2rem; }

.cta-band .hero-ctas { justify-content: center; }

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field.full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(179, 139, 69, 0.18);
}

.field textarea { resize: vertical; min-height: 150px; }

.form-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: #FBF6EC;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--ink);
}

/* Contact info block */
.contact-detail {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-detail:last-of-type { border-bottom: 0; }

.contact-detail .icon {
  width: 26px; height: 26px;
  flex: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 0.2rem;
}

.contact-detail h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 0.3rem;
}

.contact-detail p { margin: 0; font-weight: 500; }

.contact-detail a { text-decoration: none; }
.contact-detail a:hover { color: var(--gold); }

/* ---------- Map figure (global trade page) ---------- */

.map-figure {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--navy-950);
  padding: 1.5rem;
}

.map-figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  margin-top: 1rem;
}

/* ---------- Registration table (government page) ---------- */

.reg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.reg-table th, .reg-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.reg-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
}

.reg-table td:first-child { font-weight: 600; }

.placeholder-flag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: var(--silver);
  padding: 4rem 0 0;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-grid h3 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }

.footer-grid a { text-decoration: none; color: var(--silver); }
.footer-grid a:hover { color: var(--gold-bright); }

.footer-brand p { max-width: 30em; margin-top: 1rem; }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 1.3rem 0;
}

.footer-bottom .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease var(--d, 0s), transform 0.6s ease var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ob-route { animation: none; }
  .btn .arrow, .card, .btn { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding: 3.5rem 0 3rem; min-height: 0; }
  .hero-figure { max-width: 420px; margin-inline: auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .domain-strip { grid-template-columns: repeat(2, 1fr); }
  .domain-strip > div { border-bottom: 1px solid var(--line); }
  .domain-strip > div:nth-child(even) { border-right: 0; }
  .domain-strip > div:nth-last-child(-n+1) { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .def-row { grid-template-columns: 1fr; gap: 0.6rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-950);
    border-bottom: 1px solid var(--line-dark);
    padding: 0.5rem 1.5rem 1.2rem;
    display: none;
  }

  body.nav-open .site-nav { display: flex; }

  .site-nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

  .site-nav .nav-cta {
    margin-top: 1rem;
    text-align: center;
    justify-content: center;
    border-bottom: 1px solid var(--gold);
  }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 3.8rem 0; }
  .hero-strip .wrap { justify-content: flex-start; }
  .domain-strip { grid-template-columns: 1fr; }
  .domain-strip > div { border-right: 0; }
}
