/* ============================================================
   Dau Data Solutions
   Palette derived from the brand mark (deep navy #000243) and the
   Fenceline Day/Night system: navy enclosure, bone-paper body.
   ============================================================ */

:root {
  --ink:        #000243;   /* brand navy — enclosure + ink */
  --ink-2:      #0a1150;   /* lifted navy for gradients/depth */
  --ink-line:   rgba(255, 255, 255, 0.14);
  --ink-soft:   rgba(255, 255, 255, 0.66);
  --ink-faint:  rgba(255, 255, 255, 0.42);

  --bone:       #faf9f5;   /* warm paper page surface */
  --paper:      #ffffff;   /* panels */
  --line:       #e6e4da;   /* warm hairline on bone */
  --text:       #15172e;   /* near-navy body ink */
  --muted:      #565a72;   /* secondary text */
  --muted-2:    #8b8e9e;

  --amber:      #f97316;   /* signal accent — used sparingly */
  --amber-ink:  #c2410c;

  --font-display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-logo:    'Quicksand', 'Archivo', system-ui, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --container: 1140px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

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

/* ---------- Eyebrow (instrument label) ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 18px;
}
.eyebrow-dark { color: var(--amber-ink); }

/* ---------- Brand lockup ---------- */
.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark { filter: brightness(0) invert(1); } /* navy mark -> white on navy */
.brand-word {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: #fff;
  white-space: nowrap;
}

/* ============================================================
   HEADER — navy enclosure, sticky
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 2, 67, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.18s ease;
}
.site-nav a:hover { color: #fff; }
.nav-cta {
  border: 1px solid var(--ink-line);
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff !important;
}
.nav-cta:hover { background: rgba(255, 255, 255, 0.08); }

/* ============================================================
   HERO — navy, continuous with header
   ============================================================ */
.hero {
  background:
    radial-gradient(120% 140% at 85% 0%, var(--ink-2) 0%, var(--ink) 55%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 11vw, 130px) 0 clamp(72px, 12vw, 140px);
}
/* faint knot watermark */
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 460px;
  height: 460px;
  background: url("assets/knot.png") no-repeat center / contain;
  filter: brightness(0) invert(1);
  opacity: 0.05;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}
.hero-sub {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 44ch;
  margin: 0 0 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: #fb8534; }
.btn-ghost { color: #fff; border-color: var(--ink-line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }

/* ---------- Hero signature panel ---------- */
.panel {
  background: linear-gradient(180deg, #20262f 0%, #161b22 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 22px 24px 18px;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.panel-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}
.status {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.readout { margin: 0; }
.readout .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.readout dt {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.readout dd {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  text-align: right;
}
.panel-foot {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--ink-faint);
  margin: 14px 0 0;
  letter-spacing: 0.03em;
}

/* ============================================================
   SECTIONS (bone body)
   ============================================================ */
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-h {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  max-width: 22ch;
}

/* ---------- What we do ---------- */
.work { border-bottom: 1px solid var(--line); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -26px rgba(0, 2, 67, 0.35);
}
.card-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--amber);
  letter-spacing: 0.1em;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  margin: 14px 0 10px;
}
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Product ---------- */
.product { border-bottom: 1px solid var(--line); }
.product-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.product .section-h { font-size: clamp(2rem, 4vw, 3rem); }
.lead { font-size: 1.12rem; color: var(--muted); margin: 18px 0 24px; max-width: 52ch; }
.spec {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 32px;
}
.spec li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text);
  background: #f1efe6;
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 999px;
}
.product-aside { display: flex; justify-content: center; }
.product-mark {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 16px;
}
.product-mark img { opacity: 0.92; }
.mono-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  margin: 0;
}

/* ---------- About ---------- */
.about { border-bottom: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}
.about-body p { color: var(--muted); margin: 0 0 18px; font-size: 1.06rem; }
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { color: var(--text); }

/* ---------- Contact ---------- */
.contact-card {
  background:
    radial-gradient(120% 160% at 90% 0%, var(--ink-2) 0%, var(--ink) 60%);
  color: #fff;
  border-radius: 22px;
  padding: clamp(40px, 6vw, 68px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.contact-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.contact-sub { color: var(--ink-soft); margin: 0; max-width: 36ch; }
.contact-details { margin: 0; display: grid; gap: 24px; }
.contact-details dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.contact-details dd {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.55;
  color: #fff;
}
.contact-details a { color: var(--amber); text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER — navy enclosure
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--ink-soft);
  padding: 56px 0 44px;
  border-top: 1px solid var(--ink-line);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px 48px;
  align-items: start;
}
.footer-brand { grid-column: 1; }
.footer-nav {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-end;
}
.footer-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.18s ease;
}
.footer-nav a:hover { color: #fff; }
.footer-meta {
  grid-column: 1 / -1;
  border-top: 1px solid var(--ink-line);
  padding-top: 26px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--ink-faint);
}
.footer-meta p { margin: 0; }
.footer-meta a { color: var(--ink-soft); text-decoration: none; }
.footer-meta a:hover { color: #fff; }
.footer-meta .copy { margin-top: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .panel { max-width: 420px; }
  .cards { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-aside { justify-content: flex-start; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-nav { gap: 16px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { grid-column: 1; grid-row: auto; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}
