/* AJA Computing Investments LLC — site styles
   Palette follows the house style used in the build books: navy + teal. */

:root {
  color-scheme: light dark;

  --navy-900: #0a1c2e;
  --navy-800: #0f2942;
  --navy-700: #16385a;
  --teal-500: #2b8a80;
  --teal-400: #34a396;
  --teal-300: #4db6ac;

  --bg:            #ffffff;
  --bg-alt:        #f5f8fa;
  --surface:       #ffffff;
  --border:        #dde5ec;
  --text:          #16283a;
  --text-muted:    #5a6b7c;
  --accent:        var(--teal-500);
  --hero-bg:       linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  --hero-text:     #eef4f8;
  --hero-muted:    #a9bfd1;
  --shadow:        0 1px 2px rgba(16, 40, 64, .05), 0 8px 24px rgba(16, 40, 64, .06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #0c1620;
    --bg-alt:     #101d2a;
    --surface:    #121f2c;
    --border:     #22394d;
    --text:       #e4edf4;
    --text-muted: #92a8bb;
    --accent:     var(--teal-300);
    --hero-bg:    linear-gradient(160deg, #10293f 0%, #081420 100%);
    --shadow:     0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 8px;
  background: var(--navy-800);
  color: var(--teal-300);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .5px;
}

.brand-text { display: flex; align-items: baseline; gap: 6px; }

.brand-name {
  font-weight: 650;
  letter-spacing: -.01em;
  font-size: 16px;
}

.brand-suffix {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .06em;
}

.site-nav {
  display: flex;
  gap: 26px;
  font-size: 15px;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.site-nav a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ---------- hero ---------- */

.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 104px 0 108px;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 5.2vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 680;
  max-width: 16ch;
}

.lede {
  margin: 0 0 34px;
  max-width: 60ch;
  font-size: clamp(1.02rem, 1.9vw, 1.18rem);
  color: var(--hero-muted);
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 7px;
  background: var(--teal-500);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background .15s ease, transform .1s ease;
}

.btn:hover { background: var(--teal-400); }
.btn:active { transform: translateY(1px); }

/* ---------- sections ---------- */

.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  letter-spacing: -.02em;
  font-weight: 660;
}

.section-lede {
  margin: 0 0 44px;
  max-width: 68ch;
  color: var(--text-muted);
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 28px 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  opacity: .85;
}

.card h3 {
  margin: 4px 0 10px;
  font-size: 1.06rem;
  font-weight: 650;
  letter-spacing: -.01em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: .965rem;
}

/* ---------- entity facts ---------- */

.facts {
  margin: 0;
  border-top: 1px solid var(--border);
  max-width: 760px;
}

.fact {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  padding: 17px 2px;
  border-bottom: 1px solid var(--border);
}

.fact dt {
  color: var(--text-muted);
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.fact dd {
  margin: 0;
  font-weight: 500;
}

.pending {
  color: #b4531b;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .88rem;
}

@media (prefers-color-scheme: dark) {
  .pending { color: #e8944f; }
}

/* ---------- contact ---------- */

.contact-line { margin: 0; }

.contact-pending, .availability-note { color: var(--text-muted); }
.availability-note { margin: 0; padding: 20px 24px; border: 1px dashed var(--border); border-radius: 9px; max-width: 700px; }

.contact-email {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 620;
  text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
  transition: border-color .15s ease;
}

.contact-email:hover { border-bottom-color: var(--accent); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: #93a9bd;
  padding: 34px 0;
  font-size: .9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
  align-items: center;
}

.site-footer p { margin: 0; }
.footer-note { color: #6b8199; }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .hero { padding: 72px 0 76px; }
  .section { padding: 60px 0; }
  .site-nav { gap: 18px; font-size: 14px; }
  .brand-name { font-size: 15px; }
  .fact { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 460px) {
  .site-nav { display: none; }
}

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

/* ---------- secondary heading inside a section ---------- */

.h2-spaced { margin-top: 68px; }

/* ---------- metric callout ---------- */

.metric {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 34px;
  align-items: start;
  margin-top: 34px;
  padding: 32px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 11px;
  box-shadow: var(--shadow);
}

.metric-figure {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-number {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--accent);
}

.metric-unit {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.metric-body h3 {
  margin: 0 0 11px;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -.01em;
}

.metric-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: .965rem;
}

@media (max-width: 720px) {
  .metric {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px 22px;
  }
  .h2-spaced { margin-top: 52px; }
}

/* ---------- link row (repo, docs) ---------- */

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.link-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 270px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color .15s ease;
}

.link-item:hover { border-color: var(--accent); }

.link-label {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.link-value {
  font-weight: 600;
  color: var(--accent);
}

/* ---------- team ---------- */

.person {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 26px;
  align-items: start;
  max-width: 780px;
}

.person-avatar {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--teal-300);
  font-size: 31px;
  font-weight: 700;
  letter-spacing: .5px;
}

.person-body h3 {
  margin: 0 0 3px;
  font-size: 1.16rem;
  font-weight: 660;
  letter-spacing: -.01em;
}

.person-role {
  margin: 0 0 13px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--accent);
}

.person-body p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: .965rem;
}

@media (max-width: 560px) {
  .person {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .link-item { min-width: 0; width: 100%; }
}
