/* WS Business Lab — Work knowledge base
   Reuses design tokens from main site */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #ffffff;
  --bg2:      #f5f5f3;
  --navy:     #0f2549;
  --ink:      #0d0d0d;
  --muted:    #71717a;
  --dim:      #a1a1aa;
  --line:     #e4e4e7;
  --line-s:   #f0f0ee;
  --blue:     #2563eb;
  --blue-bg:  #eff6ff;
  --blue-mid: #dbeafe;
  --ok:       #16a34a;
  --err:      #dc2626;
  --amber:    #d97706;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 60px;
  padding: 0 clamp(20px,5vw,80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
}
.topbar-brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-bg);
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.topbar-meta a { color: var(--muted); text-decoration: none; transition: color 0.18s; }
.topbar-meta a:hover { color: var(--ink); }

.lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-bg);
  color: var(--blue);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px,6vw,72px) clamp(24px,5vw,80px);
}
.wrap-narrow { max-width: 880px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}
.kicker-bar { width: 32px; height: 1.5px; background: var(--blue); }

h1.page-title {
  font-size: clamp(2.2rem,4.2vw,3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 18px;
}

.page-lede {
  font-size: clamp(1rem,1.3vw,1.1rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 64ch;
  margin-bottom: 44px;
}

h2 {
  font-size: clamp(1.25rem,2vw,1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 20px;
}
h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

p { line-height: 1.7; color: #3f3f46; }
p + p { margin-top: 14px; }

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.report-card {
  display: block;
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.report-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.report-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15,37,73,0.08);
  border-color: var(--navy);
}
.report-card:hover::before { transform: scaleX(1); }

.report-card .meta {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.report-card .title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 10px;
}
.report-card .desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
}
.report-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.report-card .tag {
  font-size: 0.64rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg2);
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ══ HIGHLIGHT DASHBOARD ══ */
.highlights-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 24px 0 44px;
}

.highlight {
  position: relative;
  padding: 28px 26px 24px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s, border-color 0.2s;
}
.highlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15,37,73,0.1);
  border-color: var(--navy);
}
.highlight::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 140px; height: 140px;
  background: radial-gradient(circle, var(--blue-bg) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.7;
}
.highlight.accent-blue  { border-left: 4px solid var(--blue); }
.highlight.accent-navy  { border-left: 4px solid var(--navy); }
.highlight.accent-ok    { border-left: 4px solid var(--ok); }
.highlight.accent-amber { border-left: 4px solid var(--amber); }

.highlight .num {
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--navy);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.highlight .num .unit {
  font-size: 0.55em;
  color: var(--muted);
  font-weight: 700;
  margin-left: 4px;
}
.highlight .lbl {
  font-size: 0.88rem;
  color: #3f3f46;
  line-height: 1.45;
  font-weight: 500;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.highlight .ctx {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-top: 1px solid var(--line-s);
  padding-top: 10px;
  position: relative;
  z-index: 1;
}
.highlight .trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}
.highlight .trend.up   { background: #dcfce7; color: #14532d; }
.highlight .trend.down { background: #fee2e2; color: #7f1d1d; }
.highlight .trend.flat { background: var(--bg2); color: var(--muted); }
.highlight .viz { margin-top: 12px; position: relative; z-index: 1; }
.highlight .viz svg { display: block; width: 100%; height: auto; }

/* ══ CHART CARDS ══ */
.chart-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 20px;
}
.chart-card .chart-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}
.chart-card .chart-sub {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.chart-card .chart-body svg { display: block; width: 100%; height: auto; }
.chart-card .chart-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-s);
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.55;
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
  margin: 24px 0 40px;
}

/* ══ TIMELINE (vertical) ══ */
.timeline {
  position: relative;
  padding: 18px 0 28px;
  margin: 20px 0 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 120px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue) 0%, var(--line) 12%, var(--line) 88%, transparent 100%);
}
.tl-item {
  position: relative;
  padding-left: 150px;
  padding-right: 10px;
  padding-bottom: 28px;
  min-height: 60px;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-year {
  position: absolute;
  left: 0;
  top: 0;
  width: 104px;
  text-align: right;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.tl-year .q {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--dim);
  letter-spacing: 0.14em;
  margin-top: 3px;
}

.tl-dot {
  position: absolute;
  left: 113px;
  top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--blue);
  box-shadow: 0 0 0 4px var(--bg);
  z-index: 1;
}
.tl-item[data-category="founding"] .tl-dot,
.tl-item[data-category="ownership"] .tl-dot { border-color: var(--navy); }
.tl-item[data-category="product"] .tl-dot    { border-color: var(--blue); }
.tl-item[data-category="infrastructure"] .tl-dot { border-color: var(--amber); }
.tl-item[data-category="leadership"] .tl-dot { border-color: #9333ea; }
.tl-item[data-category="financial"] .tl-dot  { border-color: var(--ok); }

.tl-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.tl-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(15,37,73,0.08);
  border-color: var(--navy);
}
.tl-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 5px;
}
.tl-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.tl-desc {
  font-size: 0.85rem;
  color: #52525b;
  line-height: 1.6;
}
.tl-source {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.68rem;
  color: var(--dim);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.tl-source:hover { color: var(--blue); text-decoration: underline; }

@media (max-width: 640px) {
  .timeline::before { left: 18px; }
  .tl-item { padding-left: 50px; }
  .tl-year { position: relative; width: auto; text-align: left; margin-bottom: 6px; font-size: 0.95rem; }
  .tl-year .q { display: inline; margin-left: 6px; }
  .tl-dot { left: 10px; top: 32px; }
}

/* ══ ERA CARDS (market history) ══ */
.era {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.era:last-child { border-bottom: 0; }
.era-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.era h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.era p.era-sum {
  font-size: 0.95rem;
  color: #3f3f46;
  line-height: 1.7;
  margin-bottom: 18px;
}

/* ══ PLAYER CARDS (competitors) ══ */
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin: 24px 0 40px;
}
.player-card {
  padding: 22px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.player-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15,37,73,0.08);
  border-color: var(--navy);
}
.player-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.player-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.player-est {
  font-size: 0.68rem;
  color: var(--dim);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  background: var(--bg2);
  border-radius: 999px;
}
.player-pos {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
  font-style: italic;
}
.player-milestones {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line-s);
}
.player-milestones li {
  font-size: 0.78rem;
  color: #3f3f46;
  line-height: 1.5;
  padding-left: 46px;
  position: relative;
}
.player-milestones li::before {
  content: attr(data-year);
  position: absolute;
  left: 0;
  top: 1px;
  font-weight: 700;
  color: var(--blue);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

/* ══ PDF PREVIEW ══ */
.pdf-preview {
  margin: 24px 0 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg2);
}
.pdf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.pdf-head .lhs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.pdf-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--blue-bg);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.pdf-actions { display: flex; gap: 8px; }
.pdf-btn {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.pdf-btn:hover { color: var(--navy); border-color: var(--navy); background: var(--bg); }
.pdf-preview iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
  background: #525659;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 28px 0;
}
.stat-cell {
  background: var(--bg);
  padding: 22px 20px;
  transition: background 0.2s;
}
.stat-cell:hover { background: #fafaf9; }
.stat-cell .num {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.05;
  margin-bottom: 6px;
}
.stat-cell .lbl {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.45;
}
.stat-cell .ctx {
  margin-top: 8px;
  font-size: 0.64rem;
  color: var(--dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin: 24px 0 40px;
}
.insight {
  padding: 22px 22px;
  background: var(--bg2);
  border-radius: 12px;
  border-left: 3px solid var(--blue);
}
.insight p.en {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 10px;
}
.insight p.pl {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  font-style: italic;
}

.quote {
  border-left: 3px solid var(--navy);
  padding: 14px 22px;
  margin: 20px 0;
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.65;
  font-style: italic;
}
.quote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--muted);
  font-style: normal;
  letter-spacing: 0.04em;
}

.chapter-list {
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 24px 0;
}
.chapter-list li {
  background: var(--bg);
  padding: 16px 22px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 18px;
  transition: background 0.2s;
}
.chapter-list li:hover { background: #fafaf9; }
.chapter-list .idx {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
}
.chapter-list .ch-title {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.chapter-list .ch-sum {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.lang-tabs {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 18px;
}
.lang-tabs button {
  font-family: inherit;
  border: 0;
  background: transparent;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.lang-tabs button.active {
  background: var(--navy);
  color: #fff;
}

.sect { margin-bottom: 52px; }
.sect-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s, background 0.18s, border-color 0.18s, color 0.18s;
}
.btn-navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 16px rgba(15,37,73,0.22);
}
.btn-navy:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,37,73,0.3); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { transform: translateY(-2px); border-color: var(--navy); color: var(--navy); }

.gate {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(15,37,73,0.08), rgba(15,37,73,0.04) 40%, transparent 75%), #f7f7f5;
  opacity: 1;
  transition: opacity 0.45s ease, visibility 0.45s;
}
.gate.hide { opacity: 0; visibility: hidden; pointer-events: none; }

.gate-card {
  width: min(420px, calc(100vw - 40px));
  padding: 40px 34px 32px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(15,37,73,0.18), 0 4px 12px rgba(15,37,73,0.06);
  border: 1px solid var(--line-s);
  animation: gatePop 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes gatePop {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.gate-logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.gate-kicker {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.gate h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.gate p.lede {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 22px;
}

.gate-form { display: flex; flex-direction: column; gap: 10px; }

.gate-input {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  outline: none;
  background: var(--bg2);
  transition: border-color 0.18s, background 0.18s;
}
.gate-input:focus { border-color: var(--navy); background: #fff; }

.gate-btn {
  width: 100%;
  padding: 13px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 9px;
  border: 0;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s, background 0.18s;
}
.gate-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,37,73,0.3); }
.gate-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

.gate-status {
  min-height: 1.3em;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  margin-top: 6px;
}
.gate-status.err { color: var(--err); }
.gate-status.ok  { color: var(--ok); }
.gate-status.loading { color: var(--muted); }

.gate-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-s);
  font-size: 0.7rem;
  color: var(--dim);
  text-align: center;
}
.gate-foot a { color: var(--muted); text-decoration: none; }
.gate-foot a:hover { color: var(--navy); }

#app {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
#app.ready { opacity: 1; transform: none; }

.work-foot {
  background: #f2f2f0;
  border-top: 1px solid var(--line);
  padding: 32px clamp(24px,5vw,80px);
  margin-top: 80px;
}
.work-foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.72rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .topbar-meta .sep, .topbar-meta .when { display: none; }
  .wrap { padding: 32px 20px; }
  h1.page-title { font-size: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media print {
  .topbar, .work-foot, .gate, .no-print { display: none; }
  body { background: #fff; }
}
