@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --canvas: #FBFBFA;
  --surface: #FFFFFF;
  --surface-2: #F7F6F3;
  --text: #111111;
  --text-soft: #2F3437;
  --text-muted: #787774;
  --text-faint: #A8A7A2;
  --border: #EAEAEA;
  --border-soft: rgba(0,0,0,0.06);

  --pale-red-bg: #FDEBEC;
  --pale-red-text: #9F2F2D;
  --pale-blue-bg: #E1F3FE;
  --pale-blue-text: #1F6C9F;
  --pale-green-bg: #EDF3EC;
  --pale-green-text: #346538;
  --pale-yellow-bg: #FBF3DB;
  --pale-yellow-text: #956400;

  --serif: 'Instrument Serif', 'Newsreader', 'Lyon Text', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', 'Switzer', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Geist Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text-soft);
  background: var(--canvas);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient */
.ambient {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.ambient::before, .ambient::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.ambient::before {
  width: 780px; height: 780px;
  top: -220px; right: -220px;
  background: radial-gradient(circle, rgba(251, 243, 219, 0.45), transparent 65%);
  animation: drift 28s ease-in-out infinite;
}
.ambient::after {
  width: 620px; height: 620px;
  bottom: -180px; left: -180px;
  background: radial-gradient(circle, rgba(225, 243, 254, 0.32), transparent 65%);
  animation: drift 34s ease-in-out infinite reverse;
}
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px,30px) scale(1.04); }
}

/* Layout */
.wrap { position: relative; z-index: 1; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 860px; margin: 0 auto; padding: 0 32px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 250, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
}
.nav-brand .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--text); }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  padding: 8px 14px; border-radius: 4px;
  transition: color 200ms, background 200ms;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }

/* Hero */
.hero { padding: 128px 0 88px; }
.hero-meta {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 36px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; color: var(--text-muted);
  text-transform: uppercase;
}
.hero-meta .sep { width: 22px; height: 1px; background: var(--border); }
h1.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 7vw, 88px); line-height: 1.02;
  letter-spacing: -0.025em; color: var(--text);
  max-width: 17ch; margin-bottom: 28px;
}
h1.hero-title em { font-style: italic; color: var(--text-muted); }
.hero-sub {
  font-size: 18px; line-height: 1.55;
  color: var(--text-muted); max-width: 62ch;
}

/* Section */
.section { padding: 88px 0; border-top: 1px solid var(--border); }
.section-header {
  display: flex; align-items: baseline; gap: 20px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.section-num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; color: var(--text-faint);
  text-transform: uppercase;
}
h2.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.05; letter-spacing: -0.025em;
  color: var(--text);
}
.section-sub {
  font-family: var(--sans); color: var(--text-muted);
  font-size: 15px; max-width: 56ch; margin-top: 4px;
}
h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 28px; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--text);
  margin: 44px 0 18px;
}
h4 {
  font-family: var(--sans); font-size: 12px;
  font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
  margin: 32px 0 12px;
}
p { margin-bottom: 14px; color: var(--text-soft); }
p.lead { font-size: 17px; color: var(--text-soft); }
ul, ol { margin: 0 0 18px 20px; }
li { margin-bottom: 6px; line-height: 1.55; color: var(--text-soft); }
li::marker { color: var(--text-faint); }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; transition: text-decoration-color 200ms; }
a:hover { text-decoration-color: var(--text); }

code {
  font-family: var(--mono); font-size: 0.86em;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 4px; color: var(--text);
}
pre {
  font-family: var(--mono); font-size: 12.5px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 20px 24px;
  overflow-x: auto; line-height: 1.6;
  margin: 18px 0; color: var(--text);
}
pre code { background: transparent; border: none; padding: 0; }

/* Scorecard bento */
.scorecard {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-auto-rows: minmax(160px, auto);
  gap: 14px; margin-bottom: 56px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  transition: box-shadow 240ms ease, transform 240ms ease;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 160px;
}
.card:hover {
  box-shadow: 0 2px 14px rgba(0,0,0,0.035);
  transform: translateY(-1px);
}
.card-big { grid-row: span 2; }
.card-wide { grid-column: span 2; }
.stat-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; color: var(--text-muted);
  text-transform: uppercase; margin-bottom: 14px;
}
.stat-value {
  font-family: var(--serif); font-weight: 400;
  font-size: 82px; line-height: 0.95;
  letter-spacing: -0.035em; color: var(--text);
}
.stat-value-sm {
  font-family: var(--serif); font-weight: 400;
  font-size: 44px; line-height: 1;
  letter-spacing: -0.025em; color: var(--text);
}
.stat-unit { font-size: 0.38em; color: var(--text-muted); margin-left: 4px; letter-spacing: 0; font-style: italic; }
.stat-foot {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-muted); margin-top: 14px;
  letter-spacing: 0.02em;
}
.stat-caption { font-size: 13px; color: var(--text-muted); margin-top: 10px; max-width: 38ch; line-height: 1.5; }

/* Score bar */
.score-bar {
  height: 4px; background: var(--border);
  border-radius: 2px; overflow: hidden; margin-top: 20px;
}
.score-bar > span {
  display: block; height: 100%;
  background: var(--text); border-radius: 2px;
  transform-origin: left; transform: scaleX(0);
  transition: transform 1400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.score-bar.in > span { transform: scaleX(var(--w, 0.5)); }

/* Two-col */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}

/* Badges */
.badge {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 10px;
  font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px; border-radius: 9999px;
  white-space: nowrap;
}
.badge-pass { background: var(--pale-green-bg); color: var(--pale-green-text); }
.badge-warn { background: var(--pale-yellow-bg); color: var(--pale-yellow-text); }
.badge-fail { background: var(--pale-red-bg); color: var(--pale-red-text); }
.badge-info { background: var(--pale-blue-bg); color: var(--pale-blue-text); }
.badge-neutral { background: var(--surface-2); color: var(--text-muted); }

/* Priority pill */
.priority {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 11px 5px 9px; border: 1px solid var(--border);
  border-radius: 4px; background: var(--surface);
  color: var(--text-soft);
}
.priority .pdot { width: 6px; height: 6px; border-radius: 50%; }
.priority-critical .pdot { background: #9F2F2D; }
.priority-high .pdot { background: #956400; }
.priority-medium .pdot { background: #1F6C9F; }
.priority-low .pdot { background: #787774; }

/* Tables */
.tbl-wrap {
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  margin: 18px 0; background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td {
  text-align: left; padding: 13px 20px;
  border-bottom: 1px solid var(--border); vertical-align: top;
}
th {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); background: var(--surface-2);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #FBFBFA; }
td .mono, .mono { font-family: var(--mono); font-size: 13px; }
td .url { font-family: var(--mono); font-size: 12.5px; color: var(--text-muted); word-break: break-all; }

/* Exec issue lists */
.issue-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 32px;
}
.issue-card h4 { margin: 0 0 6px; color: var(--text-muted); }
.issue-card .eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.issue-card .eyebrow .ico {
  width: 22px; height: 22px; display: inline-flex;
  align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 4px;
  background: var(--surface-2);
}
.issue-list { list-style: none; margin: 0; padding: 0; }
.issue-list li {
  display: flex; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0; color: var(--text-soft);
  line-height: 1.5;
}
.issue-list li:last-child { border-bottom: none; padding-bottom: 0; }
.issue-list li:first-child { padding-top: 0; }
.issue-num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.04em; color: var(--text-faint);
  flex-shrink: 0; padding-top: 2px; min-width: 22px;
}
.issue-body { flex: 1; font-size: 14.5px; }
.issue-body strong { color: var(--text); font-weight: 600; }

/* Action cards */
.actions { display: flex; flex-direction: column; gap: 16px; }
.action {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px 36px;
  transition: box-shadow 240ms, transform 240ms;
}
.action:hover {
  box-shadow: 0 2px 14px rgba(0,0,0,0.035);
  transform: translateY(-1px);
}
.action-head {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 6px;
}
.action-num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; color: var(--text-faint);
  text-transform: uppercase;
}
.action-title {
  font-family: var(--serif); font-size: 28px;
  line-height: 1.15; letter-spacing: -0.02em;
  color: var(--text); margin: 8px 0 16px;
  font-weight: 400;
}
.action-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-bottom: 18px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
}
.action-meta .k { color: var(--text-faint); margin-right: 8px; }
.action-meta strong { color: var(--text-soft); font-weight: 500; }
.action-body { color: var(--text-soft); }
.action-body p { margin-bottom: 12px; }
.action-body blockquote {
  border-left: 2px solid var(--border);
  padding: 4px 0 4px 18px;
  margin: 14px 0;
  color: var(--text-soft);
  font-style: italic;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
}

/* Timeline */
.timeline {
  display: grid; grid-template-columns: 120px 1fr 140px;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  background: var(--surface);
}
.timeline-row {
  display: contents;
}
.timeline-row > div {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.timeline-row:last-child > div { border-bottom: none; }
.timeline-week {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); background: var(--surface-2);
  border-right: 1px solid var(--border);
}
.timeline-hours {
  font-family: var(--mono); font-size: 13px;
  color: var(--text); border-left: 1px solid var(--border);
  background: var(--surface-2);
  text-align: right;
}
.timeline-task { color: var(--text-soft); font-size: 14px; }

/* Footer */
footer {
  padding: 56px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
footer .container {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(12px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Utilities */
.rule { height: 1px; background: var(--border); margin: 32px 0; }
.muted { color: var(--text-muted); }
.dense-list li { margin-bottom: 4px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }

/* Small helpers for score lists */
.score-row {
  display: grid;
  grid-template-columns: 2fr 80px 1fr 80px;
  gap: 14px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.score-row:last-child { border-bottom: none; }
.score-row .label { font-size: 14.5px; color: var(--text); }
.score-row .weight { font-family: var(--mono); font-size: 12px; color: var(--text-muted); }
.score-row .bar {
  height: 3px; background: var(--border); border-radius: 2px; overflow: hidden;
}
.score-row .bar > span {
  display: block; height: 100%; background: var(--text); border-radius: 2px;
  transform-origin: left;
}
.score-row .val { font-family: var(--mono); font-size: 12.5px; color: var(--text); text-align: right; }

/* Definition list grid */
.def-grid {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 8px 24px; margin: 18px 0;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.def-grid dt {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); padding-top: 4px;
}
.def-grid dd {
  color: var(--text-soft); padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.def-grid dt { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.def-grid dt:last-of-type, .def-grid dd:last-of-type { border-bottom: none; padding-bottom: 0; }

/* Eeat grid */
.eeat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin: 18px 0;
}
.eeat-cell {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 24px;
}
.eeat-cell .stat-value-sm { font-size: 38px; }
.eeat-cell h4 { margin: 0 0 10px; }

/* Responsive */
@media (max-width: 960px) {
  .scorecard { grid-template-columns: 1fr 1fr; }
  .card-big { grid-row: auto; grid-column: span 2; }
  .card-wide { grid-column: span 2; }
  .eeat-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container, .narrow { padding: 0 20px; }
  .scorecard { grid-template-columns: 1fr; }
  .card-big, .card-wide { grid-column: auto; }
  .hero { padding: 88px 0 56px; }
  .section { padding: 56px 0; }
  .nav-inner { padding: 12px 20px; }
  .nav-links a { padding: 6px 10px; }
  .timeline { grid-template-columns: 90px 1fr 100px; }
  .score-row { grid-template-columns: 1fr 60px; }
  .score-row .weight, .score-row .bar { display: none; }
  .action { padding: 24px 22px; }
  .issue-card { padding: 22px; }
  .def-grid { grid-template-columns: 1fr; gap: 4px; }
  .def-grid dt { padding-bottom: 4px; border-bottom: none; }
  .def-grid dd { padding-top: 0; }
}
