/* =========================================================
   Field Muster · wagingwork.com
   Operational command software for construction
   ========================================================= */

:root {
  --navy-950: #070b14;
  --navy-900: #0c1424;
  --navy-800: #121c30;
  --navy-700: #1a2740;
  --navy-600: #243352;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --off-white: #f7f9fc;

  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-on-dark: #fcd34d;

  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --red-soft: #f87171;
  --green-soft: #4ade80;

  --font: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Outfit", var(--font);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgb(7 11 20 / 0.06);
  --shadow: 0 8px 24px rgb(7 11 20 / 0.1);
  --shadow-lg: 0 24px 48px -12px rgb(7 11 20 / 0.28);
  --header-h: 80px;
  --container: 1140px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy-800);
  background: var(--off-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px;
}
@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--amber-600); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--amber-500);
  color: var(--navy-950);
  font-weight: 600;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-950);
  color: var(--slate-300);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  min-height: 2.25rem;
  padding-block: 0.4rem;
}
.topbar a { color: var(--amber-on-dark); font-weight: 600; }
.topbar a:hover { color: var(--white); }
.topbar-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  min-height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  flex-shrink: 0;
}
.logo:hover { color: inherit; }
.logo-mark {
  width: 62px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #fff9ef, #f3e6c8);
  border: 1px solid rgba(217, 119, 6, 0.22);
  box-shadow: 0 3px 12px rgb(12 20 36 / 0.1);
  overflow: hidden;
  flex-shrink: 0;
  padding: 0.15rem 0.28rem;
  position: relative;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Animated dragon next to Field Muster (Imagine GIF) */
.logo-mark.logo-mark-dragon {
  width: 64px;
  height: 72px;
  padding: 0.25rem 0.28rem;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #fff9ef, #f3e6c8);
}
.logo-mark.logo-mark-griffin {
  width: 96px;
  height: 56px;
  padding: 0.35rem 0.45rem;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #fff9ef, #f3e6c8);
}
.logo-mark img.logo-on-light { display: block; }
.logo-mark img.logo-on-dark { display: none; }
.logo-mark-dragon img.dragon-anim {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  /* force decode of animated gif */
  image-rendering: auto;
}
@media (prefers-reduced-motion: reduce) {
  .logo-mark-dragon img.dragon-anim {
    animation: none;
  }
}
.logo-text { display: flex; flex-direction: column; line-height: 1.12; }
.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy-900);
}
@media (min-width: 480px) {
  .logo-text strong { font-size: 1.5rem; }
  .logo-mark { width: 68px; height: 48px; }
  .logo-mark.logo-mark-dragon { width: 72px; height: 80px; }
  .logo-mark.logo-mark-griffin { width: 118px; height: 62px; }
}
.logo-text span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.logo-lockup-home {
  max-width: 17.5rem;
}
.logo-lockup-home .logo-presents {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 0.1rem;
}
.logo-lockup-home .logo-discipline {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25;
}
.footer-brand .logo-lockup-home .logo-presents,
.footer-brand .logo-lockup-home .logo-discipline {
  color: var(--slate-400);
}
@media (max-width: 420px) {
  .logo-lockup-home { max-width: 11.5rem; }
  .logo-lockup-home .logo-presents { font-size: 0.55rem; }
}

.nav {
  display: none;
  align-items: center;
  gap: 0.15rem 1.35rem;
  margin-left: auto;
  font-weight: 600;
  font-size: 0.94rem;
}
.nav a { color: var(--navy-700); padding: 0.35rem 0; }
.nav a:hover,
.nav a[aria-current="page"] { color: var(--amber-600); }
.header-cta { display: none; margin-left: 0.75rem; }
.menu-toggle {
  margin-left: auto;
  border: 1px solid var(--slate-200);
  background: var(--white);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--navy-800);
}
.menu-toggle[aria-expanded="true"] { background: var(--slate-100); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1rem 1.25rem;
  border-top: 1px solid var(--slate-200);
  background: var(--white);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 0.7rem 0.5rem;
  font-weight: 600;
  color: var(--navy-800);
  border-radius: 8px;
}
.mobile-nav a:hover { background: var(--slate-100); }

@media (min-width: 900px) {
  .nav { display: flex; }
  .header-cta { display: block; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent {
  background: var(--amber-500);
  color: var(--navy-950);
  box-shadow: 0 4px 14px rgb(245 158 11 / 0.35);
}
.btn-accent:hover { background: var(--amber-400); color: var(--navy-950); }
.btn-primary {
  background: var(--navy-800);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-700); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.28);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--slate-300);
}
.btn-outline:hover { border-color: var(--navy-700); color: var(--navy-900); background: var(--white); }
.btn-lg { padding: 0.9rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(245, 158, 11, 0.16), transparent 55%),
    radial-gradient(700px 420px at 95% 10%, rgba(45, 212, 191, 0.1), transparent 50%),
    linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 48%, #152038 100%);
  color: var(--white);
  padding: 3.25rem 0 3.75rem;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.45), transparent);
  z-index: 1;
}
/* Photo-backed hero: field image under navy/amber wash */
.hero-with-photo {
  background: var(--navy-950);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.02);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 11, 20, 0.94) 0%, rgba(7, 11, 20, 0.88) 38%, rgba(12, 20, 36, 0.72) 62%, rgba(12, 20, 36, 0.55) 100%),
    radial-gradient(700px 420px at 18% 20%, rgba(245, 158, 11, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(7, 11, 20, 0.25) 0%, transparent 40%, rgba(7, 11, 20, 0.45) 100%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr 0.95fr; gap: 3rem; }
  .hero { padding: 4.25rem 0 4.75rem; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-on-dark);
  margin-bottom: 1rem;
}
.eyebrow-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.2);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 1.1rem;
  max-width: 18ch;
}
.hero .lead {
  font-size: 1.1rem;
  color: var(--slate-300);
  max-width: 40rem;
  margin: 0 0 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  font-size: 0.875rem;
  color: var(--slate-400);
}
.hero-proof strong {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
}

/* Cockpit mock card */
.cockpit-card {
  background: linear-gradient(160deg, rgba(26, 39, 64, 0.95), rgba(12, 20, 36, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cockpit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-400);
}
.cockpit-bar .live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--green-soft);
}
.cockpit-bar .live::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}
.cockpit-body { padding: 0; }
.cockpit-shot {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #070b14;
  cursor: zoom-in;
  position: relative;
  text-align: left;
  font: inherit;
  color: inherit;
}
.cockpit-shot img {
  width: 100%;
  height: auto;
  display: block;
}
.cockpit-shot-hint {
  display: block;
  padding: 0.55rem 0.95rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--slate-400);
  background: rgba(0, 0, 0, 0.28);
}
.cockpit-shot:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: -3px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
@media (min-width: 480px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
}
.metric {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
}
.metric .label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 0.25rem;
}
.metric .value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.metric .value.pos { color: var(--green-soft); }
.metric .value.neg { color: var(--red-soft); }
.metric .value.warn { color: var(--amber-400); }

.hitlist {
  margin-top: 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.25);
  background: rgba(248, 113, 113, 0.08);
  padding: 0.75rem 0.9rem;
}
.hitlist h3 {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-soft);
}
.hitlist ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hitlist li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--slate-200);
  padding: 0.3rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.hitlist li:first-child { border-top: 0; }
.hitlist .due { color: var(--amber-on-dark); font-weight: 600; white-space: nowrap; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-sm { padding: 2.75rem 0; }
.bg-white { background: var(--white); }
.bg-muted { background: var(--slate-100); }
.bg-navy {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: var(--white);
}
.bg-navy .muted,
.bg-navy .text-muted { color: var(--slate-400); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}
.section-head.center {
  text-align: center;
  margin-inline: auto;
}
.section-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 0.55rem;
}
.bg-navy .section-kicker { color: var(--amber-on-dark); }
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--navy-900);
}
.section-head p {
  margin: 0;
  color: var(--slate-500);
  font-size: 1.05rem;
}

/* ---------- Cards / grids ---------- */
.cards-3 {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 720px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}
.cards-2 {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 800px) {
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
}
.cards-4 {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
  color: var(--amber-400);
  margin-bottom: 1rem;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}
.card p {
  margin: 0;
  color: var(--slate-500);
  font-size: 0.96rem;
}
.card.dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(148, 163, 184, 0.16);
  color: var(--slate-200);
}
.card.dark h3 { color: var(--white); }
.card.dark p { color: var(--slate-400); }

/* Module list */
.module-row {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-top: 1px solid var(--slate-200);
}
@media (min-width: 800px) {
  .module-row {
    grid-template-columns: 220px 1fr;
    gap: 2rem;
  }
}
.module-row:last-child { border-bottom: 1px solid var(--slate-200); }
.module-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}
.module-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-600);
  background: rgba(245, 158, 11, 0.12);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}
.module-body p { margin: 0 0 0.75rem; color: var(--slate-500); }
.module-body ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--navy-700);
}
.module-body li { margin-bottom: 0.3rem; }

/* Stats */
.stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 800px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148, 163, 184, 0.14);
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--amber-on-dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat .label {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--slate-400);
}

/* Quote */
.quote-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.85rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.quote-card blockquote {
  margin: 0 0 1.15rem;
  font-size: 1.02rem;
  color: var(--navy-800);
  line-height: 1.6;
}
.quote-card footer {
  font-size: 0.9rem;
  color: var(--slate-500);
}
.quote-card footer strong {
  display: block;
  color: var(--navy-900);
  font-weight: 700;
}
.redact {
  display: inline;
  background: #1a1a1a;
  color: transparent;
  border-radius: 2px;
  padding: 0 0.12em;
  user-select: none;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.redact::selection {
  background: #1a1a1a;
  color: transparent;
}
.quote-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-600);
}
.testimonial-grid {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 1000px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}
.letter-strip {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
}
@media (min-width: 800px) {
  .letter-strip { grid-template-columns: repeat(3, 1fr); }
}
.letter-chip {
  display: block;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  color: inherit;
  text-decoration: none;
}
.letter-chip:hover {
  border-color: var(--amber-400);
  color: inherit;
}
.letter-chip strong {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
}
.letter-chip span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--slate-400);
  line-height: 1.45;
}

/* Split layout */
.split {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; }
  .split.flip > :first-child { order: 2; }
}

/* ---------- Field photo strip / gallery ---------- */
.photo-strip {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .photo-strip {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
  }
}
.photo-card {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-800);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  width: 100%;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}
.photo-card:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 3px;
}
@media (min-width: 960px) {
  .photo-card { aspect-ratio: 3 / 4; }
  .photo-card:nth-child(even) { aspect-ratio: 3 / 4.2; margin-top: 0.75rem; }
  .photo-card:nth-child(odd) { margin-bottom: 0.75rem; }
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.photo-card:hover img,
.photo-card:focus-visible img {
  transform: scale(1.03);
  filter: brightness(1.04);
}
.photo-card .photo-expand-hint {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(7, 11, 20, 0.55);
  color: var(--white);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.photo-card:hover .photo-expand-hint,
.photo-card:focus-visible .photo-expand-hint {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .photo-card:hover img,
  .photo-card:focus-visible img { transform: none; }
  .hero-bg img { transform: none; }
}
.photo-card .photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.75rem 0.85rem 0.75rem;
  background: linear-gradient(transparent, rgba(7, 11, 20, 0.88));
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  pointer-events: none;
}
.photo-card .photo-caption span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-on-dark);
  margin-bottom: 0.15rem;
  opacity: 0.95;
}
.photo-strip-note {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--slate-500);
}
.photo-strip-note a {
  font-weight: 600;
  color: var(--navy-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.photo-strip-note a:hover { color: var(--amber-600); }

/* Results / multi-group photo gallery */
.photo-gallery {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.photo-gallery-group > h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: var(--navy-900);
}
.photo-gallery-group > p {
  margin: 0 0 1rem;
  color: var(--slate-500);
  font-size: 0.95rem;
  max-width: 40rem;
}
.photo-gallery-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .photo-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .photo-gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
/* Gallery cards: consistent landscape crop (override strip stagger) */
.photo-gallery .photo-card,
.photo-gallery-grid .photo-card {
  aspect-ratio: 4 / 3;
  margin: 0 !important;
}
.photo-gallery-note {
  margin: 0.25rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--slate-500);
}

/* David's job-site captions — photo + line, not overlay */
.why-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}
.why-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.why-card .photo-card {
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0 !important;
}
.why-card blockquote {
  margin: 0;
  padding: 1.05rem 1.2rem 1.25rem;
  font-size: 1.02rem;
  color: var(--navy-800);
  line-height: 1.5;
}
.why-card .quote-kicker {
  margin: 1rem 1.2rem 0;
}
.why-closer {
  margin: 1.5rem auto 0;
  max-width: 40rem;
  text-align: center;
  font-size: 1.08rem;
  color: var(--navy-800);
  line-height: 1.55;
}

/* Soften navy proven band when photos sit above */
.section.field-proof {
  padding-top: 3.25rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(7, 11, 20, 0.9);
  backdrop-filter: blur(6px);
}
.lightbox.is-open {
  display: flex;
}
.lightbox-dialog {
  position: relative;
  max-width: min(1320px, 100%);
  max-height: min(94vh, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  outline: none;
}
.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: min(82vh, 960px);
  width: auto;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  background: var(--navy-900);
}
.lightbox-caption {
  color: var(--slate-200);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.4;
}
.lightbox-caption strong {
  display: block;
  color: var(--amber-on-dark);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy-900);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}
.lightbox-close:hover { background: var(--amber-400); }
.lightbox-close:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 2px;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy-900);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}
.lightbox-nav:hover { background: var(--amber-400); }
.lightbox-nav:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 2px;
}
.lightbox-prev { left: 0.25rem; }
.lightbox-next { right: 0.25rem; }
@media (min-width: 720px) {
  .lightbox-prev { left: -3rem; }
  .lightbox-next { right: -3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox { transition: none; }
}
body.lightbox-open { overflow: hidden; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(245, 158, 11, 0.18), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-950));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem;
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.65rem;
}
.cta-band p {
  color: var(--slate-300);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Page hero (inner) */
.page-hero {
  background: linear-gradient(165deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  padding: 2.75rem 0 2.5rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
  line-height: 1.15;
}
.page-hero p {
  margin: 0;
  color: var(--slate-300);
  max-width: 40rem;
  font-size: 1.05rem;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--slate-400);
  margin-bottom: 0.85rem;
}
.breadcrumb a { color: var(--amber-on-dark); }

/* Contact */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.contact-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--navy-900);
  color: var(--amber-400);
  flex-shrink: 0;
}
.contact-list strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 0.15rem;
}
.contact-list a { font-weight: 600; color: var(--navy-800); }
.contact-list a:hover { color: var(--amber-600); }

.form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.form-card h2, .form-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}
.form-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.15rem;
}
@media (min-width: 560px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 0.35rem;
}
input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--slate-300);
  border-radius: 10px;
  font: inherit;
  color: var(--navy-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}
textarea { min-height: 140px; resize: vertical; }
.form-note {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin: 0.75rem 0 0;
}
.form-success {
  display: none;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--navy-800);
  margin-top: 1rem;
}
.form-success.is-visible { display: block; }

/* Audience chips */
.audience-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.pill {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--slate-200);
}

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--slate-200);
}
.timeline-item { position: relative; padding-left: 0.5rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.25rem - 5px);
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}
.timeline-item strong {
  display: block;
  font-family: var(--font-display);
  color: var(--navy-900);
  margin-bottom: 0.25rem;
}
.timeline-item p { margin: 0; color: var(--slate-500); font-size: 0.95rem; }

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 0.65rem;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--navy-900);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--amber-600);
  font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 0.75rem 0 0;
  color: var(--slate-500);
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: var(--slate-400);
  padding: 3rem 0 1.75rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1rem;
  margin: 0 0 0.85rem;
  letter-spacing: -0.01em;
}
.site-footer a { color: var(--slate-300); }
.site-footer a:hover { color: var(--amber-on-dark); }
.footer-brand .logo-text strong { color: var(--white); }
.footer-brand .logo-text span { color: var(--slate-400); }
.footer-brand .logo-mark {
  background: linear-gradient(145deg, var(--navy-700), var(--navy-950));
  border-color: rgba(251, 191, 36, 0.28);
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.3);
}
.footer-brand .logo-mark img.logo-on-light { display: none; }
.footer-brand .logo-mark img.logo-on-dark { display: block; }
.footer-brand p { margin: 0.85rem 0 0; font-size: 0.92rem; max-width: 28rem; }

/* Product screenshots */
.product-shots {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.25rem;
}
@media (min-width: 900px) {
  .product-shots.product-shots-2 {
    grid-template-columns: 1.35fr 1fr;
    align-items: start;
  }
}
.shot-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.shot-card figcaption {
  padding: 0.9rem 1.1rem 1.05rem;
  border-top: 1px solid var(--slate-100);
}
.shot-card figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--navy-900);
  margin-bottom: 0.25rem;
}
.shot-card figcaption span {
  display: block;
  font-size: 0.9rem;
  color: var(--slate-500);
  line-height: 1.5;
}
.shot-frame {
  background: var(--navy-900);
  padding: 0.65rem;
}
.shot-frame img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.18);
}
button.shot-frame.shot-expand {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
  position: relative;
  -webkit-appearance: none;
  appearance: none;
}
button.shot-frame.shot-expand:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 2px;
}
button.shot-frame.shot-expand img {
  transition: filter 0.25s ease, transform 0.25s ease;
}
button.shot-frame.shot-expand:hover img,
button.shot-frame.shot-expand:focus-visible img {
  filter: brightness(1.05);
}
button.shot-frame.shot-expand .photo-expand-hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(7, 11, 20, 0.55);
  color: var(--white);
  opacity: 0.85;
  transition: opacity var(--transition);
  pointer-events: none;
}
button.shot-frame.shot-expand:hover .photo-expand-hint,
button.shot-frame.shot-expand:focus-visible .photo-expand-hint {
  opacity: 1;
  background: rgba(7, 11, 20, 0.75);
}
@media (prefers-reduced-motion: reduce) {
  button.shot-frame.shot-expand:hover img,
  button.shot-frame.shot-expand:focus-visible img {
    transform: none;
  }
}
.shot-card figcaption em {
  font-style: normal;
  font-weight: 600;
  color: var(--amber-600);
}
.shot-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-600);
  background: rgba(245, 158, 11, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}
.pv-callout {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .pv-callout { grid-template-columns: 1fr 1.05fr; gap: 2rem; }
}
.pv-callout-copy .lead-tight {
  font-size: 1.05rem;
  color: var(--navy-700);
  margin: 0 0 1rem;
}
.pv-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.pv-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.75rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
}
.pv-points li strong {
  display: block;
  color: var(--navy-900);
  margin-bottom: 0.15rem;
}
.pv-points li span { color: var(--slate-500); font-size: 0.92rem; }
.pv-points .pv-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--navy-950);
  background: var(--amber-400);
  flex-shrink: 0;
}
.shot-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--slate-500);
  text-align: center;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
}
.footer-bottom a.footer-quiet {
  color: var(--slate-500);
  font-weight: 500;
}
.footer-bottom a.footer-quiet:hover { color: var(--amber-on-dark); }

/* Mobile sticky CTA */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255,255,255,0.96);
  border-top: 1px solid var(--slate-200);
  box-shadow: 0 -8px 24px rgb(7 11 20 / 0.08);
  backdrop-filter: blur(10px);
}
.mobile-cta .btn { flex: 1; }
@media (min-width: 768px) {
  .mobile-cta { display: none; }
}

/* Utils */
.text-muted { color: var(--slate-500); }
.muted { color: var(--slate-500); }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.icon { display: block; }
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.check-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--navy-700);
}
.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-600);
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 0.1rem;
}
.bg-navy .check-list li { color: var(--slate-200); }
.bg-navy .check-list li::before {
  background: rgba(245, 158, 11, 0.2);
  color: var(--amber-on-dark);
}
.prose h2 { margin-top: 2rem; }
.prose h3 {
  font-family: var(--font-display);
  margin-top: 1.5rem;
  color: var(--navy-900);
}
.prose p { color: var(--navy-700); }
.prose ul { color: var(--navy-700); }
.table-wrap { overflow-x: auto; }

/* ---------- Recovery Impact Curve (nip it in the bud) ---------- */
.ric-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 960px) {
  .ric-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 2.75rem;
    align-items: center;
  }
}
.ric-copy .lead-tight {
  margin: 0 0 1.25rem;
  color: var(--slate-500);
  font-size: 1.05rem;
  line-height: 1.65;
}
.ric-milestones {
  display: grid;
  gap: 0.75rem;
}
.ric-milestone {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.ric-milestone.early {
  border-color: rgba(20, 184, 166, 0.35);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(255, 255, 255, 0.95));
}
.ric-milestone.mid {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(255, 255, 255, 0.95));
}
.ric-milestone.late {
  border-color: rgba(248, 113, 113, 0.4);
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.08), rgba(255, 255, 255, 0.95));
}
.ric-milestone .badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  white-space: nowrap;
  line-height: 1.2;
}
.ric-milestone.early .badge {
  background: rgba(20, 184, 166, 0.16);
  color: #0f766e;
}
.ric-milestone.mid .badge {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}
.ric-milestone.late .badge {
  background: rgba(248, 113, 113, 0.16);
  color: #b91c1c;
}
.ric-milestone h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}
.ric-milestone p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--slate-500);
  line-height: 1.5;
}
.ric-milestone strong {
  color: var(--navy-800);
  font-weight: 700;
}

.ric-chart-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ric-chart-card.dark {
  background: linear-gradient(165deg, var(--navy-900) 0%, var(--navy-950) 100%);
  border-color: rgba(148, 163, 184, 0.14);
}
.ric-chart-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.15rem 1.25rem 0.65rem;
}
.ric-chart-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}
.ric-chart-card.dark .ric-chart-head h3 { color: var(--white); }
.ric-chart-head p {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--slate-500);
  max-width: 28rem;
}
.ric-chart-card.dark .ric-chart-head p { color: var(--slate-400); }
.ric-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-500);
}
.ric-chart-card.dark .ric-legend { color: var(--slate-400); }
.ric-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.ric-legend i {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--amber-500);
  display: inline-block;
}
.ric-legend i.zone {
  height: 10px;
  width: 10px;
  border-radius: 3px;
  background: rgba(20, 184, 166, 0.35);
}

.ric-chart {
  padding: 0 0.5rem 0.35rem;
}
.ric-chart svg {
  width: 100%;
  height: auto;
  display: block;
}
.ric-chart-note {
  margin: 0;
  padding: 0.65rem 1.25rem 1.15rem;
  font-size: 0.82rem;
  color: var(--slate-500);
  line-height: 1.45;
}
.ric-chart-card.dark .ric-chart-note { color: var(--slate-400); }

.ric-table-wrap {
  margin-top: 1.75rem;
  overflow-x: auto;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.ric-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 520px;
}
.ric-table th,
.ric-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
}
.ric-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  background: var(--slate-100);
  font-weight: 700;
}
.ric-table td {
  color: var(--navy-800);
  font-variant-numeric: tabular-nums;
}
.ric-table tr:last-child td { border-bottom: 0; }
.ric-table tr.highlight-early td {
  background: rgba(20, 184, 166, 0.07);
}
.ric-table tr.highlight-late td {
  background: rgba(248, 113, 113, 0.07);
  color: #991b1b;
  font-weight: 600;
}
.ric-table .cell-note {
  font-size: 0.8rem;
  color: var(--slate-500);
  font-weight: 500;
}
.ric-footnote {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--slate-500);
  line-height: 1.5;
}

/* Compact home variant */
.ric-compact .ric-milestones {
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .ric-compact .ric-milestones {
    grid-template-columns: repeat(3, 1fr);
  }
}
.ric-compact .ric-milestone {
  grid-template-columns: 1fr;
  height: 100%;
}
.ric-compact .ric-milestone .badge {
  justify-self: start;
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--slate-200);
}
table.compare th,
table.compare td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: top;
}
table.compare th {
  background: var(--navy-900);
  color: var(--white);
  font-weight: 700;
}
table.compare tr:last-child td { border-bottom: 0; }
table.compare td:first-child { font-weight: 600; color: var(--navy-900); width: 28%; }

/* OODA loop — Job Site Walk */
.ooda-steps {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 720px) {
  .ooda-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
}
.ooda-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.55rem;
  row-gap: 0.15rem;
  padding: 0.7rem 0.75rem;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
}
.ooda-letter {
  grid-row: 1 / span 2;
  align-self: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-900);
  color: var(--amber-on-dark);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
}
.ooda-steps strong {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-900);
}
.ooda-steps li > span:last-child {
  grid-column: 2;
  font-size: 0.82rem;
  color: var(--slate-500);
  line-height: 1.4;
}

.check-list em {
  font-style: italic;
  font-weight: 600;
  color: var(--navy-900);
}

/* About-page logo easter egg */
.logo-easter {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  place-items: center;
  padding: 1.5rem;
  background: rgba(7, 11, 20, 0.78);
}
.logo-easter.is-open { display: grid; }
.logo-easter-dialog {
  position: relative;
  width: min(920px, 100%);
}
.logo-easter video {
  display: block;
  width: 100%;
  border-radius: 16px;
  background: #0c1424;
  box-shadow: var(--shadow-lg);
}
.logo-easter-close {
  position: absolute;
  top: -0.6rem;
  right: -0.6rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-900);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.logo-easter-close:hover { background: var(--amber-400); }
body.logo-easter-open { overflow: hidden; }

/* Hide The Book nav when config.showBookPage is false */
[data-nav-book][hidden] { display: none !important; }

@media (min-width: 900px) and (max-width: 1120px) {
  .nav { gap: 0.1rem 0.85rem; font-size: 0.88rem; }
}

/* ---------- Waging Work book (doctrine map) ---------- */
.book-intro-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 800px) {
  .book-intro-grid {
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    gap: 3rem;
  }
}
.book-cover {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  box-shadow: var(--shadow);
}
.book-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.book-shell {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 880px) {
  .book-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 2.25rem;
    align-items: start;
  }
}
.book-rail {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 0.9rem 0.85rem 1rem;
  box-shadow: var(--shadow-sm);
}
.book-rail-label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.book-rail nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.book-rail a {
  display: block;
  padding: 0.42rem 0.55rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1.3;
}
.book-rail a:hover,
.book-rail a.is-active {
  background: var(--slate-100);
  color: var(--amber-600);
}
@media (max-width: 879px) {
  .book-rail {
    position: static;
    padding: 0.75rem;
  }
  .book-rail nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.35rem;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
  }
  .book-rail a {
    flex: 0 0 auto;
    white-space: nowrap;
    background: var(--off-white);
    border: 1px solid var(--slate-200);
  }
}
.book-pages { display: grid; gap: 1.1rem; }
.book-excerpt {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem 1.25rem;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.book-excerpt:target {
  border-color: rgba(217, 119, 6, 0.45);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}
.book-cite {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-600);
}
.book-excerpt h3 {
  font-family: var(--font-display);
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}
.book-excerpt blockquote {
  margin: 0 0 1rem;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--amber-500);
}
.book-excerpt blockquote p {
  margin: 0 0 0.75rem;
  color: var(--navy-800);
  font-size: 1.02rem;
  line-height: 1.7;
}
.book-excerpt blockquote p:last-child { margin-bottom: 0; }
.book-lives {
  margin: 0;
  font-size: 0.95rem;
  color: var(--slate-500);
}
.book-lives a { font-weight: 700; color: var(--navy-800); text-decoration: underline; text-underline-offset: 2px; }
.book-lives a:hover { color: var(--amber-600); }
.book-legal {
  margin: 1.5rem 0 0;
  font-size: 0.82rem;
  color: var(--slate-500);
  max-width: 46rem;
}
.book-title-plate {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}
.book-title-plate .book-cover {
  max-width: 220px;
  margin: 0 auto 1.5rem;
}
.book-title-plate h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}
.book-title-plate .book-sub {
  margin: 0 0 0.35rem;
  color: var(--slate-500);
  font-size: 1.05rem;
  line-height: 1.55;
}
.book-title-plate .book-author {
  margin: 1rem 0 0;
  font-weight: 700;
  color: var(--navy-900);
}
.book-prose {
  max-width: 42rem;
  margin: 0 auto;
}
.book-prose p {
  color: var(--navy-800);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 1rem;
}
.book-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 28rem;
}
.book-toc li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.15rem;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-500);
  font-size: 0.95rem;
}
.book-toc .toc-num { font-variant-numeric: tabular-nums; color: var(--slate-400); }
.book-toc a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  font-weight: 700;
  color: var(--navy-900);
}
.book-toc li.is-live {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(217, 119, 6, 0.35);
  padding-left: 0.65rem;
  padding-right: 0.65rem;
  border-radius: 8px;
  border-bottom-color: transparent;
}
.book-toc li.is-live a { color: var(--navy-900); }
.book-toc li.is-live a:hover { color: var(--amber-600); }
.book-chapter {
  max-width: 44rem;
  margin: 0 auto;
}
.book-chapter .book-page {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin: 1.75rem 0 0.65rem;
}
.book-tzu {
  margin: 0 0 0.65rem;
  padding-left: 0.15rem;
  color: var(--navy-700);
  font-size: 1.02rem;
  line-height: 1.65;
  font-style: italic;
}
.book-tzu strong {
  font-style: normal;
  font-family: var(--font-display);
  margin-right: 0.35rem;
  color: var(--amber-600);
}
.book-comment {
  margin: 0 0 1.15rem;
  color: var(--navy-800);
  font-size: 1.04rem;
  line-height: 1.75;
}
.book-chapter h2 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
#title, #introduction, #contents, #chapter-v {
  scroll-margin-top: calc(var(--header-h) + 8px);
}
.timeline-item a { font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.timeline-item a:hover { color: var(--amber-600); }
.module-name a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.module-name a:hover { color: var(--amber-600); }
#jsw-recon { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Day in the Life (timed superintendent tasks) ---------- */
.ditl-highlights {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  margin: 0 0 1.5rem;
}
@media (min-width: 640px) {
  .ditl-highlights { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .ditl-highlights { grid-template-columns: repeat(4, 1fr); }
}
.ditl-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.15rem;
  box-shadow: var(--shadow-sm);
  min-height: 100%;
}
.ditl-card .ditl-time {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy-900);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ditl-card .ditl-task {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  color: var(--slate-500);
  line-height: 1.45;
}
.ditl-card.ditl-total {
  background: var(--navy-900);
  border-color: var(--navy-900);
}
.ditl-card.ditl-total .ditl-time { color: var(--amber-on-dark); }
.ditl-card.ditl-total .ditl-task { color: var(--slate-300); }

.ditl-setup {
  margin: 0 0 1.25rem;
  color: var(--slate-500);
  max-width: 46rem;
}
.ditl-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
table.ditl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.ditl-table th,
table.ditl-table td {
  padding: 0.7rem 0.95rem;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: top;
}
table.ditl-table th {
  background: var(--navy-900);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
table.ditl-table td:first-child {
  color: var(--slate-400);
  font-variant-numeric: tabular-nums;
  width: 3.2rem;
  white-space: nowrap;
}
table.ditl-table td:nth-child(3),
table.ditl-table th:nth-child(3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
  width: 5.5rem;
}
table.ditl-table tbody tr:last-child td { border-bottom: 0; }
table.ditl-table tfoot td {
  background: var(--navy-900);
  color: var(--white);
  border-bottom: 0;
  font-weight: 700;
}
table.ditl-table tfoot td:first-child { color: var(--slate-300); }
table.ditl-table tfoot td:nth-child(3) { color: var(--amber-on-dark); font-size: 1.05rem; }
.ditl-note {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--slate-500);
}
.ditl-actions { margin-top: 1.35rem; }

#day-in-the-life { scroll-margin-top: calc(var(--header-h) + 12px); }

table.ditl-table th.ditl-watch,
table.ditl-table td.ditl-watch {
  width: 7.4rem;
  text-align: right;
  vertical-align: middle;
  font-weight: 600;
  white-space: nowrap;
}
table.ditl-table tfoot td.ditl-watch { background: var(--navy-900); }

.ditl-thumb {
  position: relative;
  display: block;
  width: 6.6rem;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--navy-700);
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy-900);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.ditl-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.ditl-thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(7, 11, 20, 0.42);
  color: var(--amber-on-dark);
  pointer-events: none;
}
.ditl-thumb-badge {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--amber-on-dark);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--amber-400);
}
.ditl-thumb-badge svg { display: block; margin-left: 1px; }
.ditl-thumb:hover { border-color: var(--amber-500); }
.ditl-thumb:hover .ditl-thumb-play { background: rgba(7, 11, 20, 0.22); }
.ditl-thumb:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 2px;
}

.ditl-video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(7, 11, 20, 0.9);
  backdrop-filter: blur(6px);
}
.ditl-video-modal.is-open { display: flex; }
.ditl-video-dialog {
  position: relative;
  width: min(960px, 100%);
  outline: none;
}
.ditl-video-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ditl-video-stage video {
  width: 100%;
  max-height: min(78vh, 720px);
  border-radius: 10px;
  background: var(--navy-900);
  box-shadow: var(--shadow-lg);
}
#ditl-video-caption {
  color: var(--slate-200);
  text-align: center;
  font-family: var(--font);
  font-size: 0.95rem;
}
.ditl-video-dialog .lightbox-close {
  top: -0.35rem;
  right: -0.35rem;
}
