/* Created by LT Sean Egan, PhD 2026-11-25
   Crew Scientific company site. One file; the page allows no inline styles. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100% 110%;
  font-display: swap;
  src: url("fonts/archivo-var-latin.woff2") format("woff2");
}

/* Colors. Day is the default; night follows the reader's device setting. */
:root {
  color-scheme: light;
  --page: #ffffff;
  --tint: #f3f6f9;
  --panel: #ffffff;
  --line: #dbe3ea;
  --text: #10202f;
  --muted: #4a5d6e;
  --quiet: #6b7c8b;
  --navy: #0b2a4a;
  --accent: #14508c;
  --on-navy: #ffffff;
  --on-navy-muted: #b9cbdc;
  --sans: "Archivo", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wide: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0a1420;
    --tint: #0f1c2b;
    --panel: #132235;
    --line: #24384d;
    --text: #edf3f8;
    --muted: #a9bac9;
    --quiet: #8296a8;
    --navy: #07182b;
    --accent: #7db7ee;
    --on-navy: #ffffff;
    --on-navy-muted: #a9bdd0;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }

/* ---- header ---- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--text); text-decoration: none; white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.94rem; font-weight: 500; padding: 6px 0; }
.nav a:hover { color: var(--accent); }
@media (max-width: 720px) {
  .head-row { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 10px; padding-bottom: 8px; }
  .nav { justify-content: flex-start; gap: 0 16px; }
  .nav a { font-size: 0.86rem; }
  html { scroll-padding-top: 100px; }
}

/* ---- hero ---- */
.hero { padding: clamp(40px, 7vw, 76px) 0 clamp(36px, 6vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 760; letter-spacing: -0.02em; line-height: 1.12; }
.lead { margin-top: 20px; color: var(--muted); font-size: 1.1rem; max-width: 34em; }
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.4;
  padding: 11px 22px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--page); }
.btn.primary:hover { filter: brightness(1.1); color: var(--page); }
.hero-shot img, .work img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #06101b;
}
.hero-shot img { box-shadow: 0 18px 40px -22px rgba(11, 42, 74, 0.55); }
.hero-shot figcaption { margin-top: 10px; font-size: 0.84rem; color: var(--quiet); }

/* ---- figures band ---- */
.band { background: var(--navy); color: var(--on-navy); }
.figures { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.figure { padding: 22px 0; display: flex; align-items: baseline; gap: 14px; }
.figure + .figure { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.figure-n { font-size: 2rem; font-weight: 760; letter-spacing: -0.02em; line-height: 1; min-width: 2.6em; }
.figure-t { color: var(--on-navy-muted); font-size: 0.98rem; }
@media (min-width: 800px) {
  .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .figure { padding: 30px 28px; flex-direction: column; gap: 8px; }
  .figure:first-child { padding-left: 0; }
  .figure + .figure { border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.14); }
  .figure-n { min-width: 0; font-size: 2.3rem; }
}

/* ---- sections ---- */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section.tinted { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(1.5rem, 2.8vw, 1.95rem); font-weight: 740; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 22px; }
h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.section-lead { color: var(--muted); max-width: 44em; margin: -8px 0 30px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 56px; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.prose p { color: var(--muted); max-width: 40em; }
.prose p + p { margin-top: 16px; }
.prose p:first-child { color: var(--text); font-size: 1.14rem; }
.side-note { color: var(--quiet); font-size: 0.95rem; max-width: 22em; }

.grid-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.cell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 6px;
  padding: 22px 22px 24px;
}
.cell p, .work p, .row p { color: var(--muted); font-size: 0.97rem; margin-top: 8px; }

.rows { display: grid; }
.row { padding: 22px 0; border-top: 1px solid var(--line); }
.row:first-child { padding-top: 4px; border-top: 0; }
.row p { max-width: 42em; }

.works { gap: 32px 24px; }
.work h3 { margin-top: 16px; }
.after { margin-top: 36px; }
.fine { margin-top: 18px; color: var(--quiet); font-size: 0.84rem; line-height: 1.55; max-width: 62em; }

/* ---- footer ---- */
.site-foot { background: var(--navy); color: var(--on-navy-muted); padding: 34px 0 40px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.foot-brand { color: var(--on-navy); font-weight: 800; font-size: 1.05rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.92rem; }
.foot-links a, .linklike { color: var(--on-navy-muted); text-decoration: underline; text-underline-offset: 3px; }
.linklike { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.foot-links a:hover, .linklike:hover { color: var(--on-navy); }
.site-foot .fine { color: var(--on-navy-muted); opacity: 0.85; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
