:root {
  --bg: #f3f5f9;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e5e9f0;
  --navy: #0b1f3a;
  --navy-2: #13294b;
  --accent: #0d9488;
  --accent-soft: #e6f6f4;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --side-w: 260px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w);
  background: var(--navy); color: #cbd5e1;
  display: flex; flex-direction: column; gap: 28px;
  padding: 28px 18px; z-index: 50; overflow-y: auto;
}
.side-profile { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  object-position: 53% 36%; border: 2px solid rgba(255, 255, 255, 0.2);
}
.side-name { color: #fff; font-weight: 600; }
.side-role { font-size: 0.82rem; color: #94a3b8; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; font-size: 0.93rem; font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.side-nav a:hover { background: var(--navy-2); color: #fff; }
.side-nav a.active { background: var(--accent); color: #fff; }
.side-status {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; padding: 12px; border-radius: 10px; background: var(--navy-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2); }

.topbar-mobile { display: none; }

/* ---------- Main ---------- */
.main {
  margin-left: var(--side-w);
  padding: 32px clamp(16px, 3vw, 40px) 24px;
  max-width: calc(1240px + var(--side-w));
  display: flex; flex-direction: column; gap: 24px;
}
.main > *, .grid-hero > *, .grid-2 > * { min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.crumb { font-size: 0.85rem; color: var(--muted); }
.page-head h1 { font-size: 1.75rem; letter-spacing: -0.02em; }

.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
  scroll-margin-top: 24px;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel-head h3 { font-size: 1.05rem; }
.chip {
  font-size: 0.75rem; font-weight: 500; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 0.92rem;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(13, 148, 136, 0.25); }
.btn-primary:hover { background: #0b7f75; }
.btn-ghost { border: 1px solid var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--navy); word-break: break-all; }

/* ---------- Overview ---------- */
.grid-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; scroll-margin-top: 24px; }
.intro { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 10px; }
.eyebrow.light { color: #99f6e4; }
.intro h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 16px; }
.intro p { color: var(--muted); margin-bottom: 12px; }
.intro .lead { color: #334155; font-size: 1.03rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.photo { padding: 0; overflow: hidden; min-height: 360px; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 35%; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px;
}
.kpi-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.kpi-icon.teal { background: #e6f6f4; color: #0d9488; }
.kpi-icon.blue { background: #e8f0fe; color: #2563eb; }
.kpi-icon.amber { background: #fef4e2; color: #d97706; }
.kpi-icon.violet { background: #f1ebfe; color: #7c3aed; }
.kpi-label { font-size: 0.8rem; color: var(--muted); }
.kpi-value { font-weight: 600; font-size: 0.98rem; }

/* ---------- Two-column panels ---------- */
.grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }

.task-list li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.task-list li:first-child { border-top: 0; padding-top: 0; }
.check {
  width: 22px; height: 22px; border-radius: 7px; background: var(--accent-soft); position: relative;
}
.check::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.task { font-weight: 600; font-size: 0.95rem; }
.sub { font-size: 0.85rem; color: var(--muted); }
.tag { font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.tag-green { background: #e7f8ef; color: #15803d; }
.tag-blue { background: #e8f0fe; color: #1d4ed8; }
.tag-amber { background: #fef4e2; color: #b45309; }

.bars { display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }
.bar-top { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 6px; }
.bar-top span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #14b8a6, var(--accent)); transition: width 1.1s ease; }
.bars.in .bar i { width: var(--w); }
.mini-title { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 16px 0 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { font-size: 0.82rem; padding: 5px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }

/* Workflow */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 18px; border-radius: 12px; background: var(--bg); }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 34px; right: -12px; width: 8px; height: 8px;
  border-top: 2px solid #94a3b8; border-right: 2px solid #94a3b8; transform: rotate(45deg);
}
.step-n {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 600; font-size: 0.9rem; margin-bottom: 12px;
}
.steps h4 { font-size: 0.98rem; margin-bottom: 4px; }
.steps p { font-size: 0.85rem; color: var(--muted); }

/* Timeline */
.timeline { border-left: 2px solid var(--line); padding-left: 22px; display: flex; flex-direction: column; gap: 24px; }
.tl-item { position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: -29px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 3px solid var(--accent);
}
.tl-date { font-size: 0.75rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 2px 10px; border-radius: 999px; }
.tl-item h4 { margin-top: 8px; font-size: 1rem; }
.tl-org { font-size: 0.88rem; color: var(--muted); margin-bottom: 8px; }
.tl-item ul li { position: relative; padding-left: 16px; font-size: 0.9rem; color: #334155; margin-bottom: 4px; }
.tl-item ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; }

/* Beyond work */
.beyond { position: relative; padding: 0; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; color: #fff; }
.beyond img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.beyond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 31, 58, 0) 35%, rgba(11, 31, 58, 0.85) 100%); }
.beyond-text { position: relative; z-index: 1; padding: 28px; }
.beyond-text h3 { font-size: 1.3rem; line-height: 1.3; margin-bottom: 8px; }
.beyond-text p:last-child { font-size: 0.92rem; color: #e2e8f0; }

/* Contact */
.contact {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--navy), #134e4a); color: #fff; border: 0; padding: 32px;
}
.contact h3 { font-size: 1.3rem; margin-bottom: 4px; }
.contact p { color: #cbd5e1; }

.foot { text-align: center; font-size: 0.82rem; color: var(--muted); padding: 8px 0 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li::after { display: none; }
}
@media (max-width: 980px) {
  .grid-hero, .grid-2 { grid-template-columns: 1fr; }
  .photo { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 860px) {
  .topbar-mobile {
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 40; background: var(--navy); color: #fff;
    padding: 12px 16px;
  }
  .brand { font-weight: 600; }
  .toggle { background: none; border: 0; color: #fff; cursor: pointer; padding: 4px; }
  .toggle svg { width: 24px; height: 24px; }
  .sidebar { transform: translateX(-100%); transition: transform 0.25s ease; visibility: hidden; }
  .sidebar.open { transform: none; visibility: visible; box-shadow: 0 0 40px rgba(0, 0, 0, 0.3); }
  body.menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 45; }
  .main { margin-left: 0; padding: 20px 16px; }
  .panel { scroll-margin-top: 72px; }
}
@media (max-width: 560px) {
  .kpis, .steps { grid-template-columns: 1fr; }
  .intro { padding: 24px; }
  .task-list li { grid-template-columns: auto 1fr; }
  .task-list .tag { grid-column: 2; justify-self: start; }
  .page-head .btn { display: none; }
  .contact { padding: 24px; }
}
