:root {
  /* Palette — warm paper, deep evergreen ink, emerald + amber accents */
  --paper: #f5f6f2;
  --paper-2: #eef1ea;
  --surface: #ffffff;
  --surface-sunk: #f0f2ec;
  --ink: #16211d;
  --ink-2: #46534c;
  --ink-3: #7b867e;
  --line: rgba(22, 33, 29, 0.11);
  --line-strong: rgba(22, 33, 29, 0.2);

  --brand: #0e6b52;
  --brand-600: #0a5641;
  --brand-tint: rgba(14, 107, 82, 0.09);
  --amber: #bd7a1c;
  --amber-tint: rgba(189, 122, 28, 0.12);
  --sky: #2f6bb0;
  --up: #0e6b52;
  --down: #b4451f;

  --display: "Bricolage Grotesque", "Familjen Grotesk", system-ui, sans-serif;
  --sans: "Familjen Grotesk", system-ui, -apple-system, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --r: 14px;
  --r-sm: 9px;
  --shadow: 0 1px 2px rgba(22, 33, 29, 0.05), 0 12px 30px -18px rgba(22, 33, 29, 0.35);
  --shadow-lg: 0 30px 80px -30px rgba(22, 33, 29, 0.5);
  --pad: clamp(1.2rem, 4vw, 4rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(0.98rem, 0.3vw + 0.92rem, 1.06rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand-600);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.72rem 1.35rem;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--brand-600); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-600); transform: translateY(-2px); }

.section-head { padding: 0 var(--pad); max-width: 1240px; margin: 0 auto; }
.section-index {
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
}
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-top: 0.7rem;
}
.section-sub { color: var(--ink-2); margin-top: 0.7rem; max-width: 48ch; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem var(--pad);
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand__mark { width: 30px; height: 30px; color: var(--brand); flex: none; }
.brand__mark svg { width: 100%; height: 100%; display: block; }
.brand__name { font-size: 0.98rem; line-height: 1.05; }
.brand__name em { font-style: normal; color: var(--brand-600); }

.topbar__nav {
  display: flex;
  gap: 1.8rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.topbar__nav a {
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
}
.topbar__nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s ease;
}
.topbar__nav a:hover { color: var(--ink); }
.topbar__nav a:hover::after { transform: scaleX(1); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-600);
  background: var(--brand-tint);
  padding: 0.42rem 0.8rem;
  border-radius: 100px;
}
.status-pill__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(14, 107, 82, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(14, 107, 82, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(14, 107, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 107, 82, 0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--pad) clamp(2.5rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero__glow {
  position: absolute;
  top: -10%; right: -5%;
  width: 60%; height: 120%;
  background:
    radial-gradient(45% 40% at 70% 30%, rgba(14, 107, 82, 0.16), transparent 70%),
    radial-gradient(40% 45% at 85% 70%, rgba(189, 122, 28, 0.13), transparent 70%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}
.hero__inner { animation: rise 0.8s ease both; }
.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6.2vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-top: 1.2rem;
  text-wrap: balance;
}
.hero__tagline {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-style: italic;
  line-height: 1.25;
  color: var(--brand-600);
  margin-top: 1.1rem;
  max-width: 30ch;
}
.hero__subtitle {
  color: var(--ink-2);
  font-size: 1.08rem;
  margin-top: 1.2rem;
  max-width: 52ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

.hero__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  animation: rise 0.9s ease 0.15s both;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.panel-head__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.panel-head__date { font-family: var(--mono); font-size: 0.72rem; color: var(--brand-600); }

.hero__stats {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-top: 1rem;
}
.hero__stats li { background: var(--surface); padding: 1rem 1rem 0.85rem; }
.stat__num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--ink-3);
}
.hero__spark { margin-top: 1rem; height: 52px; }
.hero__spark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero__panel-foot {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* ---------- Section 1 — concept ---------- */
.concept { padding: clamp(3rem, 8vw, 6rem) 0; border-top: 1px solid var(--line); }
.concept__grid {
  max-width: 1240px;
  margin: 2.4rem auto 0;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.concept__lead p { color: var(--ink-2); margin-bottom: 1rem; max-width: 56ch; }
.concept__lead p strong { color: var(--ink); font-weight: 600; }
.concept__lead p:first-child {
  font-size: 1.2rem;
  line-height: 1.45;
}

.pipeline { list-style: none; display: grid; gap: 0.9rem; }
.pipeline__step {
  display: grid;
  grid-template-columns: 2.9rem 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.2rem 1.3rem;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pipeline__step:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pipeline__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 2.55rem; bottom: -0.95rem;
  width: 1px; height: 0.9rem;
  background: var(--line-strong);
}
.pipeline__icon {
  width: 2.9rem; height: 2.9rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
}
.pipeline__icon svg { width: 1.4rem; height: 1.4rem; }
.pipeline__step h3 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; }
.pipeline__step p { color: var(--ink-2); font-size: 0.95rem; margin-top: 0.2rem; }

/* ---------- Section 2 — explore ---------- */
.explore { padding: clamp(3rem, 8vw, 6rem) 0; border-top: 1px solid var(--line); }
.opp-grid {
  max-width: 1240px;
  margin: 2.6rem auto 0;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.opp-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-height: 232px;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.opp-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(150deg, var(--brand-tint), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.opp-card:hover, .opp-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  outline: none;
}
.opp-card:hover::before, .opp-card:focus-visible::before { opacity: 1; }
.opp-card > * { position: relative; }

.opp-card__top { display: flex; align-items: center; justify-content: space-between; }
.opp-card__icon {
  width: 2.7rem; height: 2.7rem;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--surface-sunk);
  color: var(--brand);
  border: 1px solid var(--line);
}
.opp-card__icon svg { width: 1.45rem; height: 1.45rem; }
.opp-card__score { text-align: right; }
.opp-card__score b {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.opp-card__score span {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.opp-card__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  margin-top: auto;
}
.opp-card__tag { color: var(--ink-2); font-size: 0.92rem; }
.opp-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.trend { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--mono); font-size: 0.8rem; font-weight: 500; }
.trend.up { color: var(--up); }
.trend.down { color: var(--down); }
.trend svg { width: 0.9rem; height: 0.9rem; }
.opp-card__open {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.opp-card:hover .opp-card__open, .opp-card:focus-visible .opp-card__open { color: var(--brand-600); }
.opp-card__open svg { width: 0.9rem; height: 0.9rem; transition: transform 0.25s ease; }
.opp-card:hover .opp-card__open svg { transform: translateX(3px); }

/* ---------- Section 3 — brief document ---------- */
.brief { padding: clamp(3rem, 8vw, 6rem) 0; border-top: 1px solid var(--line); }
.doc {
  max-width: 1100px;
  margin: 2.6rem auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.doc__masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: clamp(1.6rem, 3.5vw, 2.6rem) clamp(1.6rem, 3.5vw, 2.8rem);
  background: var(--ink);
  color: var(--paper);
}
.doc__kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amber);
}
.doc__headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-top: 0.6rem;
  max-width: 24ch;
}
.doc__facts { display: flex; gap: 1.8rem; }
.doc__facts dt {
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(245, 246, 242, 0.55);
}
.doc__facts dd {
  font-family: var(--mono);
  font-size: 0.86rem;
  margin-top: 0.25rem;
  color: var(--paper);
}
.doc__body { padding: clamp(1.6rem, 3.5vw, 2.8rem); }
.doc__block { margin-bottom: 2rem; }
.doc__block:last-child { margin-bottom: 0; }
.doc__block h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}
.block-tag { position: relative; padding-left: 0.9rem; }
.block-tag::before {
  content: "";
  position: absolute; left: 0; top: 0.15em;
  width: 4px; height: 0.9em;
  background: var(--amber);
  border-radius: 2px;
}
.doc__block--summary p {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.32rem);
  line-height: 1.5;
  color: var(--ink);
}
.doc__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }

.signal-list, .actions { list-style: none; display: grid; gap: 0.75rem; }
.signal-list li { display: flex; gap: 0.8rem; align-items: baseline; color: var(--ink-2); font-size: 0.95rem; }
.signal-list__mark {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
  flex: none;
}
.signal-list__mark.up { color: var(--up); background: var(--brand-tint); }
.signal-list__mark.down { color: var(--down); background: rgba(180, 69, 31, 0.1); }

.ranked { list-style: none; display: grid; gap: 0.7rem; counter-reset: r; }
.ranked li { display: flex; gap: 0.9rem; align-items: flex-start; }
.ranked__n {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.78rem;
  width: 1.6rem; height: 1.6rem;
  flex: none;
  display: grid; place-items: center;
  border-radius: 6px;
  background: var(--surface-sunk);
  color: var(--brand-600);
  border: 1px solid var(--line);
}
.ranked li strong { font-weight: 600; display: block; }
.ranked li span { color: var(--ink-3); font-size: 0.88rem; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  border-radius: 100px;
  background: var(--surface-sunk);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.actions li { display: flex; gap: 0.75rem; color: var(--ink-2); font-size: 0.95rem; }
.actions__k {
  width: 1.1rem; height: 1.1rem; flex: none; margin-top: 0.25rem;
  border-radius: 4px;
  background: var(--brand-tint);
  border: 1.5px solid var(--brand);
  position: relative;
}
.actions__k::after {
  content: ""; position: absolute; left: 3px; top: 0px;
  width: 4px; height: 8px;
  border: solid var(--brand); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.doc__block--evidence { border-top: 1px solid var(--line); padding-top: 2rem; }
.evidence-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.evidence-item {
  background: var(--surface-sunk);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 1rem;
}
.evidence-item__type {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-600);
}
.evidence-item p { font-size: 0.85rem; color: var(--ink-2); margin: 0.5rem 0 0.7rem; }
.evidence-item__conf { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); }
.doc__disclaimer { margin-top: 1.5rem; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); }

/* ---------- Section 4 — about ---------- */
.about { padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--line); }
.about__grid {
  max-width: 1240px;
  margin: 2.4rem auto 0;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about__lead p { color: var(--ink-2); margin-bottom: 1rem; max-width: 58ch; }
.about__lead p:first-child { font-size: 1.2rem; color: var(--ink); line-height: 1.5; }
.about__lead strong { color: var(--brand-600); font-weight: 600; }
.about__note {
  font-size: 0.92rem !important;
  color: var(--ink-3) !important;
  border-left: 3px solid var(--amber);
  padding-left: 1rem;
  margin-top: 1.5rem !important;
}
.about__card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r);
  padding: 1.8rem;
}
.about__card-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
}
.about__list { list-style: none; display: grid; gap: 1rem; margin-top: 1.3rem; }
.about__list li { display: flex; gap: 0.8rem; align-items: flex-start; color: rgba(245, 246, 242, 0.85); font-size: 0.96rem; }
.about__list li span {
  width: 0.6rem; height: 0.6rem; flex: none; margin-top: 0.5rem;
  border-radius: 50%; background: var(--amber);
}

/* ---------- Footer ---------- */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem var(--pad);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-3);
}
.brand--foot { font-size: 0.92rem; }
.brand--foot .brand__mark { width: 26px; height: 26px; }

/* ---------- Modal / dashboard ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(0.5rem, 3vw, 3rem) clamp(0.5rem, 3vw, 2rem);
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 22, 19, 0.5);
  backdrop-filter: blur(4px);
  animation: fade 0.25s ease;
}
.modal__dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - clamp(1rem, 6vw, 6rem));
  background: var(--paper);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  animation: pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 5;
  width: 2.3rem; height: 2.3rem;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.modal__close:hover { background: var(--ink); color: var(--paper); transform: rotate(90deg); }
.modal__close svg { width: 1.15rem; height: 1.15rem; }

/* Dashboard content */
.dash__head {
  padding: clamp(1.5rem, 3vw, 2.2rem) clamp(1.3rem, 3vw, 2.2rem) clamp(1.3rem, 3vw, 1.8rem);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}
.dash__icon {
  width: 3.2rem; height: 3.2rem; flex: none;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--brand-tint);
  color: var(--brand);
}
.dash__icon svg { width: 1.7rem; height: 1.7rem; }
.dash__titles { flex: 1; min-width: 0; }
.dash__eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
}
.dash__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-top: 0.25rem;
}
.dash__tag { color: var(--ink-2); margin-top: 0.4rem; font-size: 0.98rem; }
.dash__scorebox { text-align: right; flex: none; }
.dash__scorebox b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.dash__scorebox small { font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); display: block; margin-top: 0.3rem; }
.dash__scorebox .trend { margin-top: 0.4rem; justify-content: flex-end; }

.dash__body { padding: clamp(1.3rem, 3vw, 2.2rem); display: grid; gap: 1.6rem; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.kpi { background: var(--surface); padding: 1rem; }
.kpi__label { font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.kpi__value { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; margin-top: 0.35rem; font-variant-numeric: tabular-nums; }
.kpi__delta { font-family: var(--mono); font-size: 0.74rem; margin-top: 0.25rem; }
.kpi__delta.up { color: var(--up); }
.kpi__delta.down { color: var(--down); }
.kpi__sub { font-size: 0.74rem; color: var(--ink-3); margin-top: 0.15rem; }

.dash__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; }
.dash__panel h5 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.dash__panel h5 small { font-family: var(--mono); font-size: 0.68rem; font-weight: 400; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }

.dash__two { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.2rem; align-items: start; }

/* bar chart */
.chart { display: block; width: 100%; height: 160px; overflow: visible; }
.chart__bar { fill: var(--brand); transition: fill 0.2s ease; transform-origin: bottom; animation: grow 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.chart__bar:last-of-type { fill: var(--amber); }
.chart__axis { stroke: var(--line); stroke-width: 1; }
.chart__lbl { font-family: var(--mono); font-size: 9px; fill: var(--ink-3); }
.chart-caption { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.68rem; color: var(--ink-3); margin-top: 0.6rem; }

/* rows list */
.rows { list-style: none; display: grid; gap: 0.55rem; }
.rows li { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1rem; align-items: center; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: none; }
.rows__name { font-weight: 600; font-size: 0.96rem; }
.rows__meta { font-size: 0.78rem; color: var(--ink-3); grid-column: 1; }
.rows__val { font-family: var(--mono); font-weight: 600; font-size: 0.9rem; text-align: right; grid-row: 1 / span 2; align-self: center; }
.rows__val.up { color: var(--up); }
.rows__val.down { color: var(--down); }

.dash__skills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dash__skills .chips-i {
  font-family: var(--mono); font-size: 0.76rem;
  padding: 0.4rem 0.72rem; border-radius: 100px;
  background: var(--surface-sunk); border: 1px solid var(--line); color: var(--ink-2);
}
.dash__note {
  background: var(--brand-tint);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
  border-radius: var(--r-sm);
  padding: 1rem 1.2rem;
  display: flex; gap: 0.8rem; align-items: flex-start;
}
.dash__note svg { width: 1.2rem; height: 1.2rem; color: var(--brand); flex: none; margin-top: 0.1rem; }
.dash__note b { color: var(--brand-600); }
.dash__note p { font-size: 0.92rem; color: var(--ink-2); }

.dash__evidence { list-style: none; display: grid; gap: 0.5rem; }
.dash__evidence li { display: flex; gap: 0.7rem; align-items: baseline; font-size: 0.86rem; color: var(--ink-2); }
.dash__evidence .etype { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-600); flex: none; width: 4.5rem; }
.dash__disclaimer { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3); text-align: center; padding-bottom: 0.5rem; }

/* ---------- reveal + keyframes ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .concept__grid, .about__grid { grid-template-columns: 1fr; }
  .opp-grid { grid-template-columns: repeat(2, 1fr); }
  .evidence-grid { grid-template-columns: 1fr 1fr; }
  .dash__two { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar__nav { display: none; }
  .doc__cols { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .doc__masthead { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 540px) {
  .opp-grid { grid-template-columns: 1fr; }
  .evidence-grid { grid-template-columns: 1fr; }
  .dash__head { flex-wrap: wrap; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
