/* ============================================================
   safai-labs.github.io — style.css
   High contrast only — investor/acquirer pitch
   ARIA-compliant, print-optimized
   ============================================================ */

:root {
  --bg:      #FFFFFF;
  --bg2:     #F5F5F5;
  --bg3:     #EBEBEB;
  --fg:      #000000;
  --mid:     #1A1A1A;
  --faint:   #595959;
  --accent:  #0047AB;
  --gold:    #7A4F00;
  --rule:    #CCCCCC;
  --serif:   'EB Garamond', Georgia, serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --max-w:   860px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.7;
}
img, svg { display: block; max-width: 100%; }

/* ── ACCESSIBILITY ───────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--accent); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: 2px;
  font-size: 14px; font-weight: 500;
  text-decoration: none; z-index: 9999; transition: top 0.15s;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ── NAV ─────────────────────────────────────────────────── */
header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 3rem;
  border-bottom: 2px solid var(--fg);
  flex-wrap: wrap;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  font-style: italic;
  color: var(--fg);
  text-decoration: none;
  margin-right: auto;
}
.nav-links {
  display: flex; gap: 2rem; list-style: none; flex-wrap: wrap;
}
.nav-links a {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); text-decoration: none; transition: color 0.15s;
}
.nav-links a:hover { color: var(--fg); }
.print-btn {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.45rem 1rem; border: 1.5px solid var(--fg);
  background: transparent; color: var(--fg);
  border-radius: 2px; cursor: pointer; transition: all 0.15s;
  white-space: nowrap;
}
.print-btn:hover { background: var(--fg); color: var(--bg); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  padding: 6rem 3rem 5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-kicker {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--serif); font-size: 4rem;
  font-weight: 500; line-height: 1.05;
  letter-spacing: -0.02em; color: var(--fg); margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 1rem; color: var(--mid);
  line-height: 1.85; max-width: 560px; margin-bottom: 2.5rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 0.7rem 1.5rem;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px; transition: all 0.15s;
}
.btn-primary { background: var(--fg); color: var(--bg); border: 1.5px solid var(--fg); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { border: 1.5px solid var(--fg); color: var(--fg); }
.btn-ghost:hover { background: var(--fg); color: var(--bg); }

/* ── SECTION SCAFFOLDING ─────────────────────────────────── */
.rule { border: none; border-top: 1px solid var(--rule); margin: 0; }
.section { padding: 4rem 3rem; max-width: var(--max-w); margin: 0 auto; }
.section-label {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 1.5rem;
}
.section h2 {
  font-family: var(--serif); font-size: 2rem;
  font-weight: 500; letter-spacing: -0.02em;
  color: var(--fg); margin-bottom: 1.75rem;
}

/* ── METRICS ─────────────────────────────────────────────── */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--fg);
  border: 1.5px solid var(--fg); margin-bottom: 2rem;
}
.metric { background: var(--bg); padding: 1.5rem 1.25rem; }
.metric dt {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 0.5rem;
}
.metric dd {
  font-family: var(--serif); font-size: 2.4rem;
  font-weight: 500; color: var(--fg); line-height: 1;
}

/* ── PATENT ──────────────────────────────────────────────── */
.patent-block {
  border-left: 3px solid var(--fg);
  padding: 1.5rem;
  background: var(--bg2);
  margin-bottom: 0;
}
.patent-num {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.5rem;
}
.patent-title {
  font-family: var(--serif); font-size: 1.3rem;
  font-weight: 500; color: var(--fg); margin-bottom: 0.5rem;
}
.patent-desc { font-size: 0.875rem; color: var(--mid); line-height: 1.8; }

/* ── ARCHITECTURE ────────────────────────────────────────── */
.arch-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); margin-bottom: 1.75rem;
}
.arch-cell { background: var(--bg); padding: 1rem 0.75rem; text-align: center; }
.arch-name {
  font-family: var(--mono); font-size: 11px;
  color: var(--fg); margin-bottom: 0.3rem; font-weight: 500;
}
.arch-desc { font-size: 11px; color: var(--faint); line-height: 1.4; }
.compliance-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; list-style: none; }
.badge {
  font-family: var(--mono); font-size: 10px;
  padding: 0.3rem 0.75rem; border: 1.5px solid var(--fg);
  color: var(--fg); border-radius: 2px; letter-spacing: 0.04em;
}
.tech-note { font-size: 0.875rem; color: var(--mid); line-height: 1.8; }

/* ── EXIT GRID ───────────────────────────────────────────── */
.exit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.exit-card { padding: 1.5rem; border: 1.5px solid var(--fg); }
.exit-card-label {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 0.5rem;
}
.exit-card h3 {
  font-family: var(--serif); font-size: 1.1rem;
  font-weight: 500; color: var(--fg); margin-bottom: 0.5rem;
}
.exit-card p { font-size: 0.875rem; color: var(--mid); line-height: 1.75; }

/* ── TIMELINE ────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; list-style: none; }
.timeline-item {
  display: grid; grid-template-columns: 70px 1fr;
  gap: 1.5rem; padding: 1.25rem 0;
  border-bottom: 0.5px solid var(--rule);
}
.timeline-item:first-child { border-top: 0.5px solid var(--rule); }
.timeline-year {
  font-family: var(--mono); font-size: 10px;
  color: var(--faint); padding-top: 3px;
}
.timeline-event { font-size: 0.875rem; color: var(--mid); line-height: 1.75; }
.timeline-event strong { color: var(--fg); font-weight: 500; }

/* ── CONTACT BLOCK ───────────────────────────────────────── */
.contact-block {
  background: var(--fg); color: var(--bg);
  padding: 4rem 3rem;
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 2rem;
}
.contact-block h2 {
  font-family: var(--serif); font-size: 2.4rem;
  font-weight: 500; color: var(--bg); margin-bottom: 0.5rem;
}
.contact-sub { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.contact-details {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 0.5rem; font-style: normal;
}
.contact-details a { color: var(--bg); font-size: 14px; text-decoration: underline; }
.contact-details a:hover { color: rgba(255,255,255,0.75); }
.domain-note {
  font-family: var(--mono); font-size: 10px;
  color: rgba(255,255,255,0.4); letter-spacing: 0.04em;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer { border-top: 1px solid var(--rule); }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 1.5rem 3rem;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
footer p { font-family: var(--mono); font-size: 10px; color: var(--faint); }
footer nav { display: flex; gap: 1.5rem; }
footer a {
  font-family: var(--mono); font-size: 10px;
  color: var(--faint); text-decoration: none;
}
footer a:hover { color: var(--fg); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 720px) {
  header nav { padding: 1rem 1.5rem; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .hero h1 { font-size: 2.8rem; }
  .section { padding: 3rem 1.5rem; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .arch-grid { grid-template-columns: 1fr 1fr; }
  .exit-grid { grid-template-columns: 1fr; }
  .contact-block { padding: 3rem 1.5rem; }
  .contact-details { align-items: flex-start; }
  .footer-inner { padding: 1.5rem; flex-direction: column; }
}
@media (max-width: 480px) {
  .nav-links { display: none; }
  .metrics { grid-template-columns: 1fr; }
}

/* ── PRINT ───────────────────────────────────────────────── */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { font-size: 11pt; background: #fff; color: #000; }
  .skip-link, .print-btn { display: none !important; }
  header nav { border-bottom: 1.5pt solid #000; padding: 0 0 0.75rem; }
  .nav-links { display: none; }
  .hero { padding: 1.5rem 0; }
  .hero h1 { font-size: 24pt; }
  .section { padding: 1rem 0; page-break-inside: auto; }
  .section h2 { font-size: 14pt; page-break-after: avoid; break-after: avoid; }
  .metrics { border: 1pt solid #000; gap: 0; }
  .metric { border: 0.5pt solid #ccc; }
  .metric dd { font-size: 18pt; }
  .patent-block { border-left: 2pt solid #000; background: #f5f5f5; }
  .arch-grid { border: 0.5pt solid #ccc; }
  .arch-cell { border: 0.5pt solid #ccc; }
  .badge { border: 1pt solid #000; }
  .exit-card { border: 1pt solid #000; page-break-inside: avoid; break-inside: avoid; }
  .timeline-item { page-break-inside: avoid; break-inside: avoid; }
  .contact-block { background: #000; color: #fff; padding: 1.5rem; page-break-inside: avoid; }
  .rule { border-top: 0.5pt solid #ccc; }
  footer { border-top: 0.5pt solid #ccc; }
  a { color: #000; text-decoration: none; }
}
