/*
  overview.css - Overview page chrome (marquee, sidebar nav states, topbar) and content
  (page head, phase ledger, build timeline, project summary, inventory, mobilization band,
  bento grid, features, documents, contact band, footer) plus the scroll-reveal/motion system.

  Tokens only: every color/radius/space/font/motion value below reads from shared/tokens.css.
  Source of truth for structure: _reference/claude-design/design_handoff_mlh_portal/
  reference-portal-cohere-app.html (cleanest class-based Cohere CSS) + MLH Portal Cohere.dc.html
  (Overview screen markup + renderVals data). Sam's additions (Build Timeline / Project /
  Inventory) follow the same card/section language, no new visual language invented.
*/

/* ══════════════════════════ MARQUEE ══════════════════════════ */
.strip {
  background: var(--color-deep-green);
  color: var(--color-on-dark);
  height: 48px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  z-index: 60;
}
.strip .track {
  display: flex;
  width: max-content;
  animation: marq 26s linear infinite;
  will-change: transform;
}
.strip:hover .track { animation-play-state: paused; }
.strip .unit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-inline: 34px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 450;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.strip .unit em { font-style: normal; font-weight: 600; color: var(--color-coral-soft); }
.strip .unit .sep { color: rgba(255, 255, 255, 0.35); }
.strip a {
  color: var(--color-on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out);
}
.strip a:hover { color: var(--color-coral-soft); }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .strip .track { animation: none; }
  .strip { justify-content: center; }
}

/* app-shell needs to give back the marquee's 48px on pages that carry one */
.app-shell--with-strip { min-height: calc(100vh - 48px); }

/* ══════════════════════════ SIDEBAR NAV STATES ══════════════════════════ */
.sidebar__brand .mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--color-deep-green);
  display: grid;
  place-items: center;
  flex: none;
}
.sidebar__brand .mark span { font-family: var(--font-display); font-weight: 500; font-size: 16px; color: #fff; }
.sidebar__brand b { font-family: var(--font-display); font-weight: 500; font-size: 14px; letter-spacing: -0.01em; display: block; line-height: 1.2; }
.sidebar__brand small { color: var(--color-slate); font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.28px; text-transform: uppercase; }

.nav-ind {
  position: absolute;
  left: 0;
  width: 3px;
  height: 16px;
  border-radius: 0 3px 3px 0;
  background: var(--color-deep-green);
  opacity: 0;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
  pointer-events: none;
  z-index: 6;
}
.nav-label {
  color: var(--color-muted);
  font-size: 10.5px;
  letter-spacing: 0.28px;
  text-transform: uppercase;
  padding: 14px 8px 6px;
  font-family: var(--font-mono);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  border-radius: var(--radius-sm);
  color: var(--color-body-muted);
  font-weight: 450;
  font-size: 13.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  position: relative;
}
.nav-item svg { width: 16px; height: 16px; flex: none; stroke-width: 1.7; }
.nav-item:hover { background: var(--color-stone); color: var(--color-ink); }
.nav-item.is-active { background: var(--color-stone); color: var(--color-ink); font-weight: 500; }
.nav-item .soon {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28px;
  text-transform: uppercase;
  color: var(--color-muted);
  border: 1px solid var(--color-hairline);
  border-radius: 9999px;
  padding: 2px 7px;
}
.nav-item.is-future { color: var(--color-muted); cursor: default; }
.nav-item.is-future:hover { background: transparent; color: var(--color-muted); }

.sidebar__foot {
  margin-top: auto;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-sm);
  padding: 10px 8px;
}
.sidebar__foot .av {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-deep-green);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; color: #fff; flex: none;
}
.sidebar__foot b { font-size: 12.5px; font-weight: 500; display: block; line-height: 1.25; }
.sidebar__foot small { color: var(--color-slate); font-size: 11px; }

/* ══════════════════════════ TOPBAR ══════════════════════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  height: var(--topbar-height);
  border-bottom: 1px solid var(--color-border-light);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}
.crumb { display: flex; align-items: center; gap: 8px; color: var(--color-slate); font-size: 13.5px; white-space: nowrap; min-width: 0; }
.crumb b { color: var(--color-ink); font-weight: 500; font-family: var(--font-display); letter-spacing: -0.01em; }
.crumb svg { width: 14px; height: 14px; opacity: 0.5; }
.spacer { flex: 1; }
.synced { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.28px; color: var(--color-slate); white-space: nowrap; }
.synced i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-ok); animation: pulseDot 2.6s infinite; }
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(26, 125, 79, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(26, 125, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 125, 79, 0); }
}
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--color-canvas); border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm); padding: 7px 11px; width: 210px;
  color: var(--color-slate); font-size: 12.5px; font-family: var(--font-ui); cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.search:hover { border-color: var(--color-hairline); }
.search:focus-within, .search:focus-visible { border-color: var(--color-deep-green); box-shadow: 0 0 0 3px rgba(0, 60, 51, 0.08); outline: none; }
.search svg { width: 14px; height: 14px; flex: none; }
.search .k { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; border: 1px solid var(--color-border-light); border-radius: 4px; padding: 0 5px; color: var(--color-muted); }
.notif-wrap { position: relative; }
.tb-btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm); border: none; background: none;
  display: grid; place-items: center; color: var(--color-body-muted); cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.tb-btn:hover { background: var(--color-stone); color: var(--color-ink); }

/* ══════════════════════════ NOTIFICATIONS PANEL ══════════════════════════ */
.notif-panel {
  position: absolute; top: calc(100% + 10px); right: 0; width: 320px; z-index: 40;
  background: var(--color-canvas); border: 1px solid var(--color-border-light); border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(33, 33, 33, 0.14); overflow: hidden;
}
.notif-head { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.28px; text-transform: uppercase; color: var(--color-slate); padding: 14px 16px 10px; }
.notif-item { display: flex; flex-direction: column; gap: 3px; padding: 10px 16px; border-top: 1px solid var(--color-card-border); transition: background var(--dur-fast) var(--ease-out); }
.notif-item:hover { background: var(--color-sidebar); }
.notif-item .tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.28px; text-transform: uppercase; color: var(--color-coral); }
.notif-item .txt { font-size: 12.5px; line-height: 1.4; color: var(--color-ink); }
.notif-item .when { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2px; color: var(--color-muted); }
.notif-foot { display: block; text-align: center; padding: 11px; font-size: 12px; font-weight: 500; color: var(--color-deep-green); border-top: 1px solid var(--color-card-border); transition: background var(--dur-fast) var(--ease-out); }
.notif-foot:hover { background: var(--color-sidebar); }

/* ══════════════════════════ COMMAND PALETTE ══════════════════════════ */
.cmdk-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(15, 15, 18, 0.5); display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.cmdk-box { width: min(560px, 92vw); background: var(--color-canvas); border-radius: var(--radius-lg); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28); overflow: hidden; }
.cmdk-inputwrap { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--color-border-light); }
.cmdk-inputwrap svg { width: 17px; height: 17px; color: var(--color-slate); flex: none; }
.cmdk-input { flex: 1; border: none; outline: none; font-size: 15px; font-family: var(--font-ui); color: var(--color-ink); background: none; }
.cmdk-esc { font-family: var(--font-mono); font-size: 10px; border: 1px solid var(--color-border-light); border-radius: 4px; padding: 2px 6px; color: var(--color-muted); }
.cmdk-list { max-height: 50vh; overflow-y: auto; padding: 8px; }
.cmdk-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); }
.cmdk-item .ci-t { font-size: 13.5px; font-weight: 500; color: var(--color-ink); }
.cmdk-item .ci-d { font-size: 12px; color: var(--color-body-muted); }
.cmdk-item.is-active, .cmdk-item:hover { background: var(--color-stone); }
.cmdk-empty { padding: 20px; text-align: center; color: var(--color-slate); font-size: 13px; }
@media (max-width: 740px) { .cmdk-overlay { padding-top: 6vh; } }
.tb-btn svg { width: 16px; height: 16px; stroke-width: 1.7; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 13.5px; font-weight: 500;
  padding: 10px 20px; border-radius: var(--radius-pill); border: 1px solid transparent; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--color-primary); color: var(--color-on-dark); }
.btn-primary:hover { background: var(--color-black); box-shadow: 0 4px 16px rgba(23, 23, 28, 0.18); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); padding: 6px 14px; border-radius: var(--radius-xl); }
.btn-outline:hover { background: var(--color-primary); color: var(--color-on-dark); }
.btn-ondark { background: var(--color-on-dark); color: var(--color-primary); }
.band .btn-ondark:hover { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4); }
.btn svg { width: 15px; height: 15px; stroke-width: 2; }
.link { font-size: 13.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; color: var(--color-ink); transition: color var(--dur) var(--ease-out); }
.link:hover { color: var(--color-link); }

/* ══════════════════════════ CONTENT WRAP ══════════════════════════ */
.wrap { position: relative; z-index: 1; max-width: 1220px; margin: 0 auto; padding: 30px 28px 60px; }

/* page head */
.head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.head .ttl { flex: 1; min-width: 0; }
.eyebrow { display: inline-flex; flex-wrap: wrap; max-width: 100%; align-items: center; gap: 6px 10px; color: var(--color-ink); font-size: 12px; font-weight: 600; font-family: var(--font-mono); letter-spacing: 0.28px; text-transform: uppercase; margin-bottom: 10px; background: var(--color-stone); border: 1px solid var(--color-border-light); border-radius: var(--radius-full); padding: 7px 15px; box-sizing: border-box; }
.eyebrow .live { display: inline-flex; align-items: center; gap: 6px; color: var(--color-ok); text-transform: none; letter-spacing: 0.28px; font-weight: 600; }
.eyebrow .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-ok); animation: pulseDot 2.4s infinite; }
h1.hero { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 6px; }
.hero-sub { font-family: var(--font-ui); font-style: italic; font-size: 16px; color: var(--color-body-muted); margin-bottom: 12px; }
.sub { color: var(--color-body-muted); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 7px 16px; min-width: 0; }
.sub span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.sub svg { width: 13px; height: 13px; opacity: 0.6; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 4px 11px; border-radius: 9999px; white-space: nowrap; }
.pill i { width: 6px; height: 6px; border-radius: 50%; }
.pill.ok { background: var(--color-ok-bg); color: var(--color-ok); } .pill.ok i { background: var(--color-ok); }
.pill.warn { background: var(--color-warn-bg); color: var(--color-warn); } .pill.warn i { background: var(--color-warn); }
.pill.flat { background: var(--color-stone); color: var(--color-body-muted); }

/* progress ring - sized up from 66 to 78px and given real breathing room in the
   wrap so the two-line label (percent + fraction) no longer crowds the arc
   stroke (comment 4: spacing/visibility bug) */
.ring-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.ring { position: relative; width: 78px; height: 78px; flex: none; }
.ring svg { width: 78px; height: 78px; transform: rotate(-90deg); }
.ring .trk { stroke: var(--color-stone); }
.ring .arc { stroke: url(#ringGrad); stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .ring .arc { animation: ringSweep 1.4s 0.3s var(--ease-out) both; }
}
@keyframes ringSweep { from { stroke-dashoffset: 169.6; } }
.ring .lbl { position: absolute; inset: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; text-align: center; }
.ring .lbl b { font-family: var(--font-mono); font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.ring .lbl small { font-family: var(--font-mono); font-size: 8px; color: var(--color-body-muted); letter-spacing: 0.2px; text-transform: uppercase; margin-top: 4px; white-space: nowrap; }

/* phase ledger strip */
.ledger { display: flex; align-items: center; background: var(--color-canvas); border: 1px solid var(--color-border-light); border-radius: var(--radius-md); padding: 4px; margin-bottom: 20px; overflow: hidden; transition: box-shadow var(--dur) var(--ease-out); }
.ledger:hover { box-shadow: 0 10px 30px rgba(33, 33, 33, 0.06); }
.step { flex: 1; display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: var(--radius-sm); position: relative; transition: background var(--dur-fast) var(--ease-out); }
.step:hover { background: var(--color-sidebar); }
.step .ic { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.step.done .ic { background: var(--color-ok-bg); color: var(--color-ok); }
.step.now .ic { background: var(--color-deep-green); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .step.now .ic { animation: nowPulse 3s infinite; }
  .step.now .ic svg { animation: spin 9s linear infinite; }
}
@keyframes nowPulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(0, 60, 51, 0.14); } 50% { box-shadow: 0 0 0 6px rgba(0, 60, 51, 0.07); } }
@keyframes spin { to { transform: rotate(360deg); } }
.step.todo .ic { background: var(--color-stone); color: var(--color-muted); }
.step .ic svg { width: 12px; height: 12px; stroke-width: 2.4; }
.step b { font-size: 12.5px; font-weight: 500; display: block; line-height: 1.2; }
.step.todo b { color: var(--color-slate); }
.step small { font-size: 10.5px; color: var(--color-slate); font-family: var(--font-mono); letter-spacing: 0.28px; }
.step:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); height: 18px; width: 1px; background: var(--color-border-light); }

/* ══════════════════════════ SECTION HEADS (Project / Inventory) ══════════════════════════ */
.sec { margin-bottom: 20px; }
.sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-head .mono-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.34px; text-transform: uppercase; color: var(--color-ink); display: inline-flex; align-items: center; gap: 8px; }
.sec-head .mono-label svg { width: 15px; height: 15px; stroke-width: 1.7; color: var(--color-deep-green); }
.sec-head h2 { font-family: var(--font-ui); font-weight: 500; font-size: 16px; letter-spacing: -0.01em; }
.sec-note { font-size: 12.5px; color: var(--color-slate); margin-top: 8px; max-width: 70ch; line-height: 1.5; }

/* project summary */
.proj-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--color-card-border); border: 1px solid var(--color-border-light); border-radius: var(--radius-sm); overflow: hidden; }
.proj-cell { background: var(--color-canvas); padding: 18px 20px; transition: background var(--dur-fast) var(--ease-out); }
.proj-cell:hover { background: var(--color-sidebar); }
.proj-cell .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.28px; text-transform: uppercase; color: var(--color-slate); display: block; margin-bottom: 7px; }
.proj-cell .v { font-size: 14px; line-height: 1.5; color: var(--color-ink); }
.proj-cell .v small { display: block; margin-top: 3px; font-size: 12px; color: var(--color-body-muted); }
.proj-cell.span-2 { grid-column: span 2; }

/* inventory stat tiles */
.inv-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.inv-tile {
  border: 1px solid var(--color-border-light); border-radius: var(--radius-sm); background: var(--color-canvas);
  padding: 18px 16px; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.inv-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(33, 33, 33, 0.08); border-color: var(--color-hairline); }
.inv-tile .n { font-family: var(--font-display); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; display: block; }
.inv-tile .lbl { font-size: 12.5px; color: var(--color-ink); margin-top: 4px; display: block; }
.inv-tile .sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2px; color: var(--color-slate); margin-top: 6px; display: block; line-height: 1.4; }

/* ══════════════════════════ MOBILIZATION BAND ══════════════════════════ */
.mband { background: var(--color-deep-green); color: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 3.4vw, 40px); margin-bottom: 20px; }
.mband .mono-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.62); }
.mband h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.32px; margin-top: 12px; }
.mband p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.78); max-width: 56ch; }
.mband-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.mband-cta { display: flex; gap: 16px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.mband .wlink { color: #fff; font-size: 13.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; transition: color var(--dur) var(--ease-out); }
.mband .wlink:hover { color: var(--color-coral-soft); }
.mck { display: grid; grid-template-columns: 1fr; gap: 2px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius-sm); padding: 16px 18px; }
.mck li { display: flex; align-items: baseline; gap: 11px; padding: 7px 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.92); }
.mck svg { width: 14px; height: 14px; stroke-width: 2.4; color: #7fd4a8; flex: none; position: relative; top: 2px; }

/* ══════════════════════════ GRID + CARDS ══════════════════════════ */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.card { border: 1px solid var(--color-border-light); border-radius: var(--radius-sm); background: var(--color-canvas); padding: 22px; min-width: 0; transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.card:hover { border-color: var(--color-hairline); box-shadow: 0 10px 30px rgba(33, 33, 33, 0.07); transform: translateY(-1px); }
.card .ch { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card .ch h3 { font-family: var(--font-ui); font-weight: 500; font-size: 16px; letter-spacing: -0.01em; margin-left: 2px; }
.card .ch .mono-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.34px; text-transform: uppercase; color: var(--color-ink); display: inline-flex; align-items: center; gap: 8px; }
.card .ch .mono-label svg { width: 15px; height: 15px; stroke-width: 1.7; color: var(--color-deep-green); }
.card .ch .more { margin-left: auto; color: var(--color-slate); font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: color var(--dur-fast) var(--ease-out); background: none; border: none; font-family: inherit; }
.card .ch .more:hover { color: var(--color-link); }
.card .ch .more svg { width: 13px; height: 13px; transition: transform var(--dur-fast) var(--ease-out); }
.card .ch .more:hover svg { transform: translateX(2px); }
.col-8 { grid-column: span 8; } .col-7 { grid-column: span 7; } .col-5 { grid-column: span 5; } .col-4 { grid-column: span 4; } .col-12 { grid-column: span 12; }

/* design progress rows */
.ms { display: flex; flex-direction: column; gap: 2px; }
.ms .row { display: grid; grid-template-columns: 190px minmax(0, 1fr) 88px; align-items: center; gap: 14px; padding: 9px 8px; border-radius: var(--radius-sm); transition: background var(--dur-fast) var(--ease-out); }
.ms .row:hover { background: var(--color-sidebar); }
.ms .nm { display: flex; align-items: baseline; gap: 9px; font-size: 13px; min-width: 0; }
.ms .nm small { color: var(--color-slate); font-size: 10.5px; font-family: var(--font-mono); letter-spacing: 0.28px; white-space: nowrap; }
.bar { height: 6px; border-radius: 9999px; background: var(--color-stone); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 9999px; background: var(--grad-deep); width: 0; }
@media (prefers-reduced-motion: no-preference) { .bar i { animation: barFill 1.15s 0.3s var(--ease-out) both; } }
@media (prefers-reduced-motion: reduce) { .bar i { width: var(--fill, 0%) !important; } }
@keyframes barFill { from { width: 0; } to { width: var(--fill, 0%); } }
.bar.g i { background: var(--grad-green); }
.bar.c i { background: var(--grad-coral); }

/* indeterminate "active, not a fixed %" bar - used only for the in-progress Round 4 row */
.bar.indeterminate i {
  width: 100%;
  background-image: repeating-linear-gradient(-45deg, var(--color-coral) 0 8px, var(--color-coral-soft) 8px 16px);
  background-size: 32px 32px;
  animation: none;
}
@media (prefers-reduced-motion: no-preference) {
  .bar.indeterminate i { animation: stripeMove 1.1s linear infinite; }
}
@keyframes stripeMove { to { background-position: 32px 0; } }
.ms .pc { text-align: right; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.28px; color: var(--color-body-muted); }
.ms .row.is-active .pc { color: var(--color-ink); font-weight: 500; }
.ms .active-pill {
  justify-self: end; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.28px; text-transform: uppercase;
  color: var(--color-coral); border: 1px solid var(--color-coral-soft); border-radius: 9999px; padding: 3px 9px; white-space: nowrap;
}

/* payments */
.fin .big { display: flex; align-items: baseline; gap: 8px; }
.fin .big .n { font-family: var(--font-display); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fin .big .of { color: var(--color-slate); font-size: 12.5px; font-family: var(--font-mono); letter-spacing: 0.28px; }
.fin-status { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28px; text-transform: uppercase; color: var(--color-warn); margin-top: 6px; }
.finrow { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--color-card-border); font-size: 13px; gap: 6px 12px; }
.finrow .l { color: var(--color-body-muted); flex: none; }
.finrow .v { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.28px; font-variant-numeric: tabular-nums; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.finrow .v.ok { color: var(--color-deep-green); }
.finrow .v.paid { color: var(--color-slate); }

/* media placeholder card (On The Board Now - Round 4, no real photo yet) */
.media-ph {
  border-radius: var(--radius-md); overflow: hidden; position: relative; margin-bottom: 13px; aspect-ratio: 16/10;
  background: repeating-linear-gradient(135deg, var(--color-stone) 0 12px, #f4f3ef 12px 24px);
  border: 1px dashed var(--color-hairline);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px;
}
.media-ph .ic { width: 40px; height: 40px; color: var(--color-body-muted); }
@media (prefers-reduced-motion: no-preference) { .media-ph .ic { animation: breathe 3.2s ease-in-out infinite; } }
@keyframes breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.media-ph b { font-family: var(--font-ui); font-size: 13.5px; font-weight: 500; color: var(--color-ink); max-width: 30ch; }
.media-ph small { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.28px; text-transform: uppercase; color: var(--color-slate); }
.media-ph small.waiting { font-weight: 700; color: var(--color-ink); font-size: 11.5px; }
.media-ph small.waiting::after { content: ''; display: inline-block; width: 1.1em; text-align: left; }
@media (prefers-reduced-motion: no-preference) {
  .media-ph small.waiting::after { animation: waitDots 1.6s steps(1, end) infinite; }
  .media-ph .spinner { animation: spin 1.1s linear infinite; }
}
@keyframes waitDots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.media-ph .spinner { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--color-hairline); border-top-color: var(--color-deep-green); }
.media-card { display: flex; flex-direction: column; }
.media-card .media-ph { flex: 1; aspect-ratio: auto; min-height: 180px; }
/* Real media block on the overview (components.css is not loaded here) */
.media-card .media { position: relative; flex: 1; min-height: 220px; border-radius: var(--radius-md); overflow: hidden; background: var(--color-stone); margin-bottom: 13px; }
.media-card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.media-card .media .tag { position: absolute; top: 10px; left: 10px; z-index: 2; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.28px; text-transform: uppercase; background: rgba(0, 0, 0, 0.42); backdrop-filter: blur(6px); padding: 4px 10px; border-radius: var(--radius-full); color: #fff; }
/* Concept A image strip - real renders, links into the Design gallery */
.cstrip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cstrip a { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-stone); }
.cstrip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform 0.35s var(--ease-out); }
.cstrip a:hover img { transform: scale(1.04); }
.cstrip a span { position: absolute; left: 10px; bottom: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.28px; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55); }
@media (max-width: 740px) { .cstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.media-links { display: flex; gap: 8px; }
.media-links a { flex: 1; text-align: center; font-size: 12.5px; color: var(--color-body-muted); border: 1px solid var(--color-border-light); border-radius: var(--radius-sm); padding: 8px; transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.media-links a:hover { background: var(--color-sidebar); color: var(--color-ink); border-color: var(--color-hairline); }

/* activity list */
.act li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: baseline; padding: 11px 8px; border-top: 1px solid var(--color-card-border); border-radius: var(--radius-xs); transition: background var(--dur-fast) var(--ease-out); }
.act li:first-child { border-top: none; }
.act li:hover { background: var(--color-sidebar); }
.act .t { font-size: 13.5px; line-height: 1.45; }
.act .t strong { font-weight: 500; }
.act .when { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28px; color: var(--color-muted); white-space: nowrap; }
.act .tag { display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.28px; text-transform: uppercase; color: var(--color-coral); border: 1px solid var(--color-coral-soft); border-radius: var(--radius-xs); padding: 2px 7px; margin-right: 8px; position: relative; top: -1px; transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.act li:hover .tag { background: var(--color-coral); color: #fff; border-color: var(--color-coral); }

/* upcoming */
.upc li { display: flex; align-items: center; gap: 11px; padding: 10px 8px; border-top: 1px solid var(--color-card-border); transition: background var(--dur-fast) var(--ease-out); }
.upc li:first-child { border-top: none; }
.upc li:hover { background: var(--color-sidebar); }
.upc .meta { min-width: 0; flex: 1; }
.upc .meta b { font-size: 13px; font-weight: 500; display: block; }
.upc .meta small { color: var(--color-slate); font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.28px; }

/* features */
.features { margin-top: 6px; }
.features .fx-head { margin-bottom: 16px; }
.features h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.32px; }
.features .fx-sub { margin-top: 6px; font-size: 13.5px; color: var(--color-body-muted); max-width: 60ch; }
.fx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fx { border: 1px solid transparent; border-radius: var(--radius-sm); padding: 22px; min-width: 0; display: flex; flex-direction: column; cursor: pointer; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
.fx:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(33, 33, 33, 0.1); }
.fx.s-white { background: var(--color-canvas); border-color: var(--color-border-light); }
.fx.s-stone { background: var(--color-stone); }
.fx.s-green { background: var(--color-pale-green); }
.fx.s-blue { background: var(--color-pale-blue); }
.fx .cic { width: 28px; height: 28px; color: var(--color-ink); margin-bottom: 14px; }
.fx .cic svg { width: 28px; height: 28px; stroke-width: 1.3; }
.fx:hover .cic { color: var(--color-deep-green); }
.fx h4 { font-family: var(--font-ui); font-weight: 400; font-size: 19px; line-height: 1.3; display: flex; align-items: center; gap: 9px; }
.fx p { margin-top: 7px; font-size: 13px; line-height: 1.5; color: var(--color-body-muted); flex: 1; }
.fx .go { display: inline-block; margin-top: 11px; font-size: 12.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; transition: color var(--dur) var(--ease-out); align-self: flex-start; }
.fx:hover .go { color: var(--color-link); }
.fx .soon-tag { display: inline-block; margin-top: 11px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.28px; text-transform: uppercase; color: var(--color-slate); border: 1px solid var(--color-hairline); border-radius: 9999px; padding: 3px 9px; align-self: flex-start; }
.fx.is-future h4, .fx.is-future p { opacity: 0.8; }

/* documents */
.docs { display: flex; flex-direction: column; }
.docs a { display: grid; grid-template-columns: 34px minmax(0, 1.5fr) minmax(120px, auto) minmax(110px, auto) 22px; gap: 18px; align-items: center; padding: 16px 8px; border-top: 1px solid var(--color-hairline); cursor: pointer; transition: background var(--dur) var(--ease-out); }
.docs a:first-child { border-top: none; }
.docs a:hover { background: var(--color-sidebar); }
.docs a:hover .arr { transform: translateX(3px); color: var(--color-link); }
.docs .t { font-size: 15px; }
.docs .t small { display: block; font-size: 12.5px; color: var(--color-body-muted); margin-top: 2px; }
.docs .pillo { justify-self: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.28px; text-transform: uppercase; border: 1px solid var(--color-hairline); border-radius: var(--radius-xl); padding: 5px 14px; color: var(--color-body-muted); white-space: nowrap; transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.docs a:hover .pillo { border-color: var(--color-ink); color: var(--color-ink); }
.docs .pillo.ok { color: var(--color-ok); border-color: rgba(26, 125, 79, 0.35); }
.docs .date { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.28px; color: var(--color-muted); text-align: right; white-space: nowrap; }
.docs .arr { color: var(--color-muted); transition: transform var(--dur) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.docs .dic { width: 34px; height: 34px; border-radius: var(--radius-xs); background: var(--color-sidebar); display: grid; place-items: center; color: var(--color-body-muted); transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.docs .dic svg { width: 16px; height: 16px; stroke-width: 1.4; }
.docs a:hover .dic { color: var(--color-deep-green); background: var(--color-stone); }

/* contact band */
.band { background: var(--color-primary); color: var(--color-on-dark); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); }
.band .blabel { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28px; text-transform: uppercase; color: var(--color-coral); display: block; margin-bottom: 12px; }
.band h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3vw, 38px); line-height: 1.2; letter-spacing: -0.32px; max-width: 22ch; }
.band-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: end; margin-top: 22px; }
.band ul { display: flex; flex-direction: column; }
.band li { display: flex; justify-content: space-between; gap: 16px; padding-block: 10px; border-top: 1px solid rgba(255, 255, 255, 0.22); font-size: 14px; transition: background var(--dur) var(--ease-out); }
.band li:hover { background: rgba(255, 255, 255, 0.05); }
.band li .k { color: rgba(255, 255, 255, 0.62); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28px; text-transform: uppercase; position: relative; top: 3px; white-space: nowrap; }
.band li .v { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.band-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.band-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.band .wa { width: 15px; height: 15px; flex: none; }
.band li .k { display: inline-flex; align-items: center; gap: 7px; }
.band li .v a { color: var(--color-on-dark); text-decoration: underline; text-underline-offset: 3px; }
.band li .v a:hover { color: var(--color-coral-soft); }
.band-cta p { color: rgba(255, 255, 255, 0.78); font-size: 14px; line-height: 1.5; max-width: 36ch; }
.band-hint { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2px; color: rgba(255, 255, 255, 0.5); margin-top: -6px; max-width: 36ch; }

/* footer - .main is a flex column so the footer always sits at the bottom of
   the viewport on short pages, not just after whatever content precedes it */
.main { display: flex; flex-direction: column; }
.wrap { flex: 1; }
.pfoot { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--color-border-light); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pfoot b { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: -0.005em; display: block; }
.pfoot div small { color: var(--color-slate); font-size: 11.5px; display: block; margin-top: 3px; }
.pfoot .conf { color: var(--color-ink); font-weight: 600; font-size: 11.5px; }

/* ══════════════════════════ SCROLL REVEAL SYSTEM ══════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(14px); }
  .rv.in { opacity: 1; transform: none; transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
/* no-JS fallback (see <noscript> in index.html): everything visible, nothing hidden behind a script */

/* ══════════════════════════ RESPONSIVE ══════════════════════════ */
@media (max-width: 1080px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  /* NOTE: no .sidebar{display:none} here - base.css already turns the sidebar
     into an off-canvas drawer at this breakpoint. A stray display:none rule
     used to live here and, loading after base.css, silently re-hid the drawer
     on Overview only (reviewer-caught bug). Do not re-add it. */
  .col-8, .col-7, .col-5, .col-4 { grid-column: span 12; }
  .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .topbar { gap: 8px; padding: 0 14px; }
  .synced { display: none; }
  .search { display: none; }
  .tb-btn { display: none; }
  .btn-outline { padding: 6px 10px; font-size: 11.5px; }
  .crumb b, .crumb svg { display: none; } /* "Dong Dok Castle >" repeats the H1 right below; drop it to make room for Sign Out */
  .wrap { padding: 22px 14px 48px; }
  .head { flex-direction: column; align-items: stretch; gap: 14px; }
  /* Bulletproof stack instead of a wrapping row: guarantees no side-by-side
     overflow regardless of flex-wrap edge cases at narrow widths. */
  .ring-wrap { flex-direction: column; align-items: stretch; gap: 10px; align-self: stretch; }
  .ring-wrap .pill { align-self: flex-start; }
  .ring-wrap .btn { width: 100%; justify-content: center; box-sizing: border-box; }
  .eyebrow { display: flex; flex-direction: column; align-items: flex-start; width: fit-content; max-width: 100%; box-sizing: border-box; }
  .card .ch { width: 100%; box-sizing: border-box; flex-direction: column; align-items: flex-start; gap: 6px; }
  .card .ch .pill { align-self: flex-start; }
  .finrow { width: 100%; box-sizing: border-box; flex-direction: column; align-items: flex-start; gap: 2px; }
  .finrow .v { text-align: left; }
  .ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
  .step:not(:last-child)::after { display: none; }
  .ms .row { grid-template-columns: minmax(0, 1fr) 62px; grid-template-rows: auto auto; row-gap: 5px; }
  .ms .row .bar { grid-column: 1/3; }
  .fx-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-cell.span-2 { grid-column: span 1; }
  .inv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs a { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; }
  .docs .t { grid-column: 1/3; }
  .docs .pillo { justify-self: start; }
  .docs .arr { display: none; }
  .band-grid { grid-template-columns: 1fr; }
  .mband-grid { grid-template-columns: 1fr; }
  .band li { flex-direction: column; gap: 2px; }
  .band li .v { text-align: left; }
  .strip .unit { font-size: 12.5px; padding-inline: 22px; }
}

.cmdk-overlay[hidden] { display: none; }
.notif-panel[hidden] { display: none; }
