/* Atlas Foundry — design system.
   Palette is sampled from the logo: the navy ink (#101A26) and the cool
   steel gradient on its chevron strokes (#B4B8C0 → #747E8E → #556376).
   Near-monochrome by design; one blue carries interaction. */

/* ─────────────────────────────  tokens  ───────────────────────────── */

:root {
  color-scheme: light dark;

  --navy-900: #0b1219;
  --navy-800: #101a26;  /* the logo ink */
  --navy-700: #1a2634;
  --navy-600: #2a3849;
  --navy-500: #556376;  /* chevron, dark step */
  --navy-400: #747e8e;  /* chevron, mid step */
  --navy-300: #9aa4b2;
  --navy-200: #b4b8c0;  /* chevron, light step */
  --navy-100: #dce1e7;
  --navy-50:  #f1f4f7;

  --accent: #2e6be6;
  --accent-hover: #1f56c9;
  --accent-soft: rgba(46, 107, 230, 0.10);

  /* semantic — light */
  --bg: #ffffff;
  --bg-sunk: #f7f9fb;
  --bg-raised: #ffffff;
  --ink: var(--navy-800);
  --ink-muted: #5a6b80;
  --ink-faint: #8b9aac;
  --line: #e4e9ef;
  --line-strong: #d3dae2;
  --shadow-sm: 0 1px 2px rgba(16, 26, 38, 0.05);
  --shadow-md: 0 4px 16px -4px rgba(16, 26, 38, 0.10);
  --shadow-lg: 0 18px 48px -12px rgba(16, 26, 38, 0.18);

  --font-display: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell: 1120px;
  --radius: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1219;
    --bg-sunk: #0e1720;
    --bg-raised: #131e2a;
    --ink: #e9eef4;
    --ink-muted: #9dabbc;
    --ink-faint: #6f7f92;
    --line: #1e2b39;
    --line-strong: #2a3a4c;
    --accent: #6699ff;
    --accent-hover: #8fb3ff;
    --accent-soft: rgba(102, 153, 255, 0.14);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px -4px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 18px 48px -12px rgba(0, 0, 0, 0.6);
  }
}

/* ─────────────────────────────  base  ───────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
img { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection { background: var(--accent-soft); color: var(--ink); }

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

.eyebrow {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint);
}

/* ─────────────────────────────  header  ───────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .shell {
  display: flex; align-items: center; gap: 14px;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: inherit; }
.brand:hover { color: inherit; }

.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark-light { display: none; }
@media (prefers-color-scheme: dark) {
  .brand-mark-dark { display: none; }
  .brand-mark-light { display: block; }
}

.brand-name {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.19em; text-transform: uppercase;
  line-height: 1;
}

.brand-sub {
  display: block;
  font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint); line-height: 1; margin-top: 5px;
}

.nav { display: flex; align-items: center; gap: 26px; }

.nav a {
  font-size: 14px; font-weight: 500; color: var(--ink-muted);
}
.nav a:hover { color: var(--ink); }

/* ─────────────────────────────  buttons  ───────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500; line-height: 1;
  padding: 13px 22px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
              transform 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
}

.btn-primary {
  background: var(--ink); color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--navy-700); color: var(--bg);
  transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.btn-primary:active { transform: translateY(0); }
@media (prefers-color-scheme: dark) {
  .btn-primary { background: var(--ink); color: var(--navy-900); }
  .btn-primary:hover { background: #ffffff; color: var(--navy-900); }
}

.btn-ghost {
  color: var(--ink-muted); border-color: var(--line-strong); background: transparent;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-faint); background: var(--bg-sunk); }

.btn .arrow { transition: transform 0.18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ─────────────────────────────  hero  ───────────────────────────── */

.hero { padding: clamp(64px, 9vw, 112px) 0 clamp(28px, 4vw, 48px); }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px); align-items: start;
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 500; letter-spacing: -0.035em;
  margin: 0 0 24px;
}

.hero-lead {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.65; color: var(--ink-muted);
  max-width: 46ch; margin: 0 0 34px;
}

.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* the at-a-glance stats */
.stats { display: grid; gap: 0; border-top: 1px solid var(--line); }

.stat {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.stat dt { font-size: 13px; color: var(--ink-faint); font-weight: 500; }
.stat dd {
  margin: 0; font-family: var(--font-display);
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
}

/* ─────────────────────────────  sections  ───────────────────────────── */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin-top: 12px; letter-spacing: -0.03em;
}

/* applications */

.entries { border-top: 1px solid var(--line); }

.entry {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  gap: clamp(20px, 4vw, 56px); align-items: start;
  padding: clamp(30px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}

.entry-head { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

.entry-name {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px); font-weight: 500;
  letter-spacing: -0.028em; line-height: 1.1;
}

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.11em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink-muted);
  background: var(--bg-sunk);
}
.pill-live { color: var(--accent); border-color: transparent; background: var(--accent-soft); }
.pill-live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
}

.entry-body { font-size: 17px; line-height: 1.65; color: var(--ink-muted); max-width: 58ch; }
.entry-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px; font-size: 15px; font-weight: 500;
}
.entry-link .arrow { transition: transform 0.18s var(--ease); }
.entry-link:hover .arrow { transform: translateX(3px); }

/* ─────────────────────────────  contact  ───────────────────────────── */

.contact-card {
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 60px);
}

.contact-lead {
  font-size: 17px; line-height: 1.65; color: var(--ink-muted);
  max-width: 52ch; margin: 14px 0 28px;
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.6vw, 42px); font-weight: 500;
  letter-spacing: -0.032em; line-height: 1.15;
  color: var(--ink); display: inline-block;
  word-break: break-word;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px; background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s var(--ease), color 0.18s var(--ease);
}
.contact-email:hover { color: var(--accent); background-size: 100% 2px; }

/* ─────────────────────────────  footer  ───────────────────────────── */

.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; }

.site-footer .shell {
  display: flex; justify-content: space-between; align-items: center;
  gap: 22px; flex-wrap: wrap;
}

.site-footer p { font-size: 13.5px; color: var(--ink-faint); }

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; color: var(--ink-muted); }
.footer-links a:hover { color: var(--ink); }

/* ─────────────────────────────  prose pages  ───────────────────────────── */

.prose { max-width: 70ch; padding: clamp(52px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); }
.prose h1 { font-size: clamp(32px, 4.6vw, 48px); margin: 10px 0 18px; letter-spacing: -0.032em; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 500; letter-spacing: -0.015em;
  margin: 44px 0 12px;
}
.prose p, .prose li { font-size: 16.5px; line-height: 1.7; color: var(--ink-muted); }
.prose p { margin-bottom: 14px; }
.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 9px; }
.prose strong { color: var(--ink); font-weight: 600; }

.prose-note {
  display: flex; gap: 12px;
  background: var(--bg-sunk); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 16px 18px; margin: 0 0 32px;
}
.prose-note p { font-size: 14.5px; margin: 0; }

/* ─────────────────────────────  responsive  ───────────────────────────── */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: start; }
  .entry { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 560px) {
  .shell { padding: 0 20px; }
  .site-header .shell { height: 60px; }
  .brand-sub { display: none; }
  .nav { gap: 18px; }
  .hero-actions .btn { width: 100%; }
  .site-footer .shell { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media print {
  .site-header { position: static; border-bottom: 1px solid #ccc; }
  .nav, .hero-actions { display: none; }
}
