/* ============================================================
   NITARA PRIMES — label-clean design system
   Palette: petrol ink on paper, saffron accent
   Type: Archivo (display) / Instrument Sans (body) / IBM Plex Mono (labels)
   ============================================================ */

:root {
  --ink: #10282E;
  --petrol: #1D4E5A;
  --paper: #F7F9F8;
  --mist: #DCE6E4;
  --saffron: #E89B2E;
  --saffron-deep: #C97F14;
  --white: #FFFFFF;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- header ---------- */
header {
  background: var(--paper);
  border-bottom: 1px solid var(--mist);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: var(--maxw); margin: 0 auto;
}
.logo {
  font-family: "Archivo", sans-serif;
  font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em;
  color: var(--ink); text-decoration: none; text-transform: uppercase;
}
.logo span { color: var(--saffron-deep); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a:focus-visible { border-bottom-color: var(--saffron); }
.nav-links a.active { border-bottom-color: var(--ink); }
.nav-toggle { display: none; }

/* ---------- signature: compliance label strip ---------- */
.label-strip {
  border-bottom: 1px solid var(--mist);
  background: var(--white);
  overflow-x: auto;
}
.label-strip .wrap {
  display: flex; gap: 0; align-items: stretch;
}
.label-strip span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--petrol);
  padding: 8px 16px 8px 0; margin-right: 16px;
  border-right: 1px solid var(--mist);
  white-space: nowrap;
}
.label-strip span:last-child { border-right: none; }
.label-strip b { color: var(--saffron-deep); font-weight: 600; }

/* section marker version of the signature */
.marker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--saffron-deep);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.marker::before {
  content: ""; display: block; width: 34px; height: 1px; background: var(--saffron);
}

/* ---------- hero ---------- */
.hero { padding: 88px 0 72px; }
.hero h1 {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.04; letter-spacing: -0.02em;
  max-width: 15ch;
}
.hero h1 em { font-style: normal; color: var(--petrol); }
.hero p.lead {
  margin-top: 26px; max-width: 58ch; font-size: 1.15rem; color: var(--petrol);
}
.cta-row { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.98rem;
  padding: 13px 26px; border-radius: 3px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--petrol); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--white); transform: translateY(-1px); }

/* ---------- sections ---------- */
section { padding: 66px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); }
h2 {
  font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; letter-spacing: -0.01em;
  max-width: 24ch; margin-bottom: 20px;
}
h3 {
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.2rem;
  margin-bottom: 10px;
}
p + p { margin-top: 16px; }
.prose { max-width: 66ch; }
.prose p { color: #23444C; }

/* three-block grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.card {
  background: var(--white); border: 1px solid var(--mist); border-radius: 4px;
  padding: 28px 26px;
}
section.alt .card { background: var(--paper); }
.card h3 { color: var(--ink); }
.card p { font-size: 0.98rem; color: #2E4E56; }

/* principles list */
.principles { list-style: none; margin-top: 26px; max-width: 70ch; }
.principles li {
  padding: 16px 0 16px 30px; border-bottom: 1px solid var(--mist); position: relative;
  color: #23444C;
}
.principles li::before {
  content: ""; position: absolute; left: 0; top: 24px;
  width: 12px; height: 12px; border: 2.5px solid var(--saffron); border-radius: 50%;
}
.principles li b { color: var(--ink); }

/* roadmap (building page) */
.phase { border-left: 2px solid var(--mist); padding: 8px 0 42px 34px; position: relative; max-width: 70ch; }
.phase:last-of-type { padding-bottom: 8px; }
.phase::before {
  content: ""; position: absolute; left: -8px; top: 12px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--paper);
  border: 3px solid var(--petrol);
}
.phase.now::before { background: var(--saffron); border-color: var(--saffron-deep); }
.phase .phase-tag {
  font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--saffron-deep); display: block; margin-bottom: 8px;
}
.phase p { color: #23444C; max-width: 62ch; }

/* closing band */
.band { background: var(--ink); color: var(--white); padding: 62px 0; }
.band h2 { color: var(--white); max-width: 30ch; }
.band p { color: #C4D6D2; max-width: 60ch; }
.band .btn-primary { background: var(--saffron); color: var(--ink); }
.band .btn-primary:hover { background: var(--saffron-deep); color: var(--white); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; margin-top: 30px; }
.details dt {
  font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--saffron-deep); margin-top: 22px;
}
.details dd { margin-top: 4px; color: #23444C; }
.details dd a { color: var(--petrol); }

form .field { margin-bottom: 18px; }
label {
  display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px;
}
input, select, textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 0.98rem;
  border: 1.5px solid var(--mist); border-radius: 3px; background: var(--white);
  color: var(--ink);
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(29,78,90,0.15);
}
textarea { min-height: 130px; resize: vertical; }
form .btn { border: none; cursor: pointer; }

/* ---------- footer ---------- */
footer { background: var(--white); border-top: 1px solid var(--mist); padding: 40px 0; }
.foot {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--petrol);
}
.foot .mono { font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; letter-spacing: 0.06em; }

/* ---------- reveal on scroll (progressive enhancement) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--mist);
    flex-direction: column; gap: 0; padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 0; }
  .nav-toggle {
    display: block; background: none; border: 1.5px solid var(--ink); border-radius: 3px;
    font: inherit; font-weight: 600; font-size: 0.85rem; padding: 7px 14px; cursor: pointer;
    color: var(--ink);
  }
  .hero { padding: 60px 0 52px; }
  section { padding: 52px 0; }
}
