/* ============================================================
   LAWMAN TECHNOLOGIES — styles.css
   Palette pulled from the badge: near-black field, bone/stone,
   white. Monochrome and stoic. Stone is the single warm accent.
   ============================================================ */

:root {
  /* Core surfaces */
  --ink:        #0A0A0B;   /* page background — matches badge field */
  --ink-2:      #0F1011;   /* alt sections */
  --ink-3:      #15161A;   /* cards / panels */
  --line:       rgba(255, 255, 255, 0.09);
  --line-soft:  rgba(255, 255, 255, 0.05);

  /* Text */
  --text:       #ECEDEF;
  --muted:      #9A9CA1;
  --faint:      #65686E;

  /* Accent — warm stone/bone from the logo's center disc */
  --stone:      #C9C2B4;
  --stone-dim:  rgba(201, 194, 180, 0.14);
  --stone-line: rgba(201, 194, 180, 0.30);

  /* Type */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Metrics */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Mono utility */
[data-mono] {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--stone); color: var(--ink); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 500; font-size: 0.95rem; line-height: 1;
  padding: 15px 26px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--stone); color: var(--ink); font-weight: 600; }
.btn-primary:hover { background: #fff; transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--stone-line); background: var(--stone-dim); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 700; letter-spacing: 0.14em; font-size: 0.95rem; }
.brand-sub { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.34em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 36px; }
.nav-list { display: flex; gap: 30px; }
.nav-link {
  font-size: 0.92rem; color: var(--muted); position: relative; padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--stone); transition: width .3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after { width: 100%; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px; z-index: 110;
}
.hamburger span { width: 24px; height: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 105;
  background: rgba(10, 10, 11, 0.97); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.mobile-link {
  font-family: var(--mono); font-size: 1.4rem; letter-spacing: 0.04em;
  color: var(--muted); padding: 12px 0; transition: color .25s var(--ease);
}
.mobile-link:hover { color: var(--text); }
.mobile-cta { color: var(--stone); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: 96px; overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 80%);
}
.hero-glow {
  position: absolute; z-index: 0; right: -10%; top: 10%;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; pointer-events: none;
  background: radial-gradient(circle, var(--stone-dim) 0%, transparent 62%);
  filter: blur(20px);
}
.hero-inner { position: relative; z-index: 2; padding-block: 40px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; color: var(--muted);
  letter-spacing: 0.16em; margin-bottom: 28px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--stone); box-shadow: 0 0 12px var(--stone); }

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02; font-weight: 600;
  letter-spacing: -0.025em; margin-bottom: 28px; max-width: 16ch;
}
.accent-text { color: var(--stone); }

.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 60ch; margin-bottom: 38px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--ink); padding: 20px 22px; }
.stat dt { color: var(--faint); margin-bottom: 8px; }
.stat dd { font-size: 0.98rem; font-weight: 500; color: var(--text); }

.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 30px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--faint);
}
.scroll-cue span[data-mono] { font-size: 0.62rem; letter-spacing: 0.3em; writing-mode: vertical-rl; }
.scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--stone), transparent); animation: scrollPulse 2.4s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100% { opacity: .3; transform: scaleY(.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================
   TRUST TICKER
   ============================================================ */
.trust-strip { border-block: 1px solid var(--line); background: var(--ink-2); overflow: hidden; }
.ticker { padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: ticker 38s linear infinite; }
.ticker-track span { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--muted); white-space: nowrap; }
.ticker-track .sep { color: var(--stone); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { padding-block: clamp(72px, 11vw, 150px); position: relative; }
.section-alt { background: var(--ink-2); border-block: 1px solid var(--line); }

.section-head { margin-bottom: 56px; max-width: 56ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-label { color: var(--stone); margin-bottom: 18px; }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.section-lead { margin-top: 20px; color: var(--muted); font-size: 1.05rem; }

.grid-2 { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }

.prose p { color: var(--muted); margin-bottom: 18px; font-size: 1.05rem; }
.prose strong { color: var(--text); font-weight: 600; }
.cred-list { margin-top: 30px; display: grid; gap: 14px; }
.cred-list li { display: flex; gap: 14px; color: var(--text); font-size: 0.98rem; }
.cred-list li span { color: var(--stone); }

/* ---------- Capabilities grid ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cap-card {
  background: var(--ink); padding: 38px 34px; position: relative;
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.cap-card:hover { background: var(--ink-3); }
.cap-index { color: var(--faint); margin-bottom: 26px; }
.cap-card h3 { font-size: 1.22rem; font-weight: 600; margin-bottom: 14px; letter-spacing: -0.01em; }
.cap-card p { color: var(--muted); font-size: 0.96rem; }
.cap-card::after {
  content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 0;
  background: var(--stone); transition: height .4s var(--ease);
}
.cap-card:hover::after { height: 100%; }

/* ---------- Roadmap ---------- */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: r; }
.road-step {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; position: relative; overflow: hidden;
}
.road-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.road-phase { color: var(--muted); }
.road-status { padding: 5px 11px; border-radius: 100px; border: 1px solid var(--line); font-size: 0.62rem; }
.road-now { color: var(--stone); border-color: var(--stone-line); background: var(--stone-dim); }
.road-build { color: #d8d2c6; }
.road-next { color: var(--faint); }
.road-step h3 { font-size: 1.18rem; font-weight: 600; margin-bottom: 14px; letter-spacing: -0.01em; }
.road-step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.principle { background: var(--ink-2); padding: 40px 38px; }
.principle-num { color: var(--stone); display: block; margin-bottom: 20px; }
.principle h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.01em; }
.principle p { color: var(--muted); font-size: 1rem; }

/* ---------- Compliance ---------- */
.compliance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.comp-item { background: var(--ink); padding: 28px 26px; }
.comp-tag {
  display: inline-block; color: var(--stone); border: 1px solid var(--stone-line);
  background: var(--stone-dim); padding: 5px 11px; border-radius: var(--radius); margin-bottom: 14px;
}
.comp-item p { color: var(--muted); font-size: 0.94rem; }

/* ============================================================
   FIELD IMAGE BAND
   To use a real photo, just add a background-image here:
     .field-band { background-image: url("../assets/field.jpg"); }
   The overlays below keep text legible over any image.
   ============================================================ */
.field-band {
  position: relative; overflow: hidden;
  min-height: clamp(340px, 46vw, 560px);
  display: flex; align-items: flex-end;
  border-block: 1px solid var(--line);
  background-color: #0C0D0F;
  background-size: cover; background-position: center;
  /* layered gradients so the placeholder reads as deliberate, and so
     real photos stay dark enough for the caption */
  background-image:
    radial-gradient(120% 90% at 80% 0%, rgba(201,194,180,0.07), transparent 55%),
    linear-gradient(180deg, rgba(10,10,11,0.2) 0%, rgba(10,10,11,0.85) 100%);
}
.field-band-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 100% at 50% 100%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 50% 100%, #000, transparent 75%);
}
.field-band-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--stone-line), transparent);
  animation: bandScan 7s var(--ease) infinite;
}
@keyframes bandScan { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(clamp(340px,46vw,560px)); opacity: 0; } }
.field-band-inner {
  position: relative; z-index: 2; width: 100%;
  padding-block: 38px; display: flex; flex-wrap: wrap; gap: 24px;
  align-items: flex-end; justify-content: space-between;
}
.fb-tag { display: inline-flex; align-items: center; gap: 9px; color: var(--stone); margin-bottom: 14px; }
.fb-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--stone); box-shadow: 0 0 10px var(--stone); }
.fb-line { font-size: clamp(1.3rem, 2.8vw, 2rem); font-weight: 600; letter-spacing: -0.02em; max-width: 18ch; }
.field-band-readout { display: flex; flex-direction: column; gap: 7px; text-align: right; color: var(--faint); font-size: 0.66rem; }
.field-band-readout span { white-space: nowrap; }

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact { background: var(--ink-2); border-top: 1px solid var(--line); }
.contact-grid { align-items: start; }
.contact-direct { margin-top: 40px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.contact-line { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--ink); padding: 18px 22px; transition: background .3s var(--ease); }
a.contact-line:hover { background: var(--ink-3); }
.contact-line span[data-mono] { color: var(--faint); }
.contact-line span:last-child { color: var(--text); font-size: 0.96rem; }

.contact-form { background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 42px); }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); font-family: var(--sans); font-size: 0.98rem; padding: 13px 15px;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--stone-line); background: var(--ink-3); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239A9CA1' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 38px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { margin-top: 16px; font-size: 0.92rem; min-height: 1.2em; }
.form-status.ok { color: var(--stone); }
.form-status.err { color: #e0a0a0; }
.form-note { margin-top: 14px; color: var(--faint); font-size: 0.78rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); background: var(--ink); padding-top: 60px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: center; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-mark { width: 56px; height: 56px; border-radius: 50%; }
.footer-name { font-weight: 700; letter-spacing: 0.12em; }
.footer-tag { color: var(--muted); margin-top: 5px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { color: var(--muted); font-size: 0.92rem; transition: color .25s var(--ease); }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-block: 26px; }
.footer-bottom p { color: var(--faint); font-size: 0.68rem; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .principles, .compliance-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 40px; }
}

@media (max-width: 560px) {
  .cap-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
  .footer-bottom { flex-direction: column; }
  .hero-title { font-size: clamp(2.2rem, 11vw, 3rem); }
  .field-band-readout { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 14px; }
}
