:root {
  --bg: #020811;
  --panel: rgba(4, 13, 24, .88);
  --panel-2: rgba(5, 16, 29, .76);
  --border: rgba(141, 104, 78, .62);
  --soft-border: rgba(137, 151, 170, .28);
  --text: #f7f9ff;
  --muted: #cfd7e3;
  --blue: #00a8ff;
  --purple: #c735ff;
  --green: #8be600;
  --amber: #ffb000;
  --red: #ff2626;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 168, 255, .12), transparent 30rem),
    radial-gradient(circle at 78% 72%, rgba(199, 53, 255, .08), transparent 34rem),
    linear-gradient(115deg, #02070d 0%, #03101d 50%, #01050a 100%);
}

.page {
  width: min(1260px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 24px 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 16px;
}

.identity {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: center;
}

.logo {
  font-size: clamp(64px, 7vw, 92px);
  font-weight: 900;
  line-height: .9;
  background: linear-gradient(180deg, #079dff 8%, #d332ff 86%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 {
  margin: 0 0 4px;
  font-size: clamp(32px, 4.2vw, 44px);
  line-height: 1.02;
  letter-spacing: 0;
}

.role {
  margin: 0 0 12px;
  color: var(--purple);
  font-size: clamp(16px, 2vw, 21px);
}

.contact {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 8px 0;
  font-size: 16px;
}

.linkedin {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 2px;
  color: white;
  background: #0969bd;
  font: 800 15px/1 Arial, sans-serif;
}

.tag {
  display: inline-flex;
  margin: 24px 0 12px 14px;
  padding: 6px 9px;
  color: var(--green);
  border: 1px solid rgba(139, 230, 0, .55);
  border-radius: 8px;
  background: rgba(22, 72, 0, .18);
  font-size: 15px;
}

.intro > h2 {
  margin: 0 0 8px 14px;
  max-width: 530px;
  font-size: clamp(34px, 4vw, 42px);
  line-height: 1.08;
}

.intro > h2 span {
  display: block;
  color: #9c36ff;
}

.summary {
  max-width: 475px;
  margin: 0 0 18px 14px;
  font-size: 17px;
  line-height: 1.45;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.stat-cards article,
.panel,
.project,
.achievement-strip,
.tools-strip {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(7, 17, 28, .9), rgba(0, 8, 15, .78));
  box-shadow: 0 18px 70px rgba(0, 0, 0, .22);
}

.stat-cards article {
  min-height: 138px;
  padding: 14px 9px 10px;
  text-align: center;
}

.icon {
  margin: 0 auto 7px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 27px;
}

.purple { color: var(--purple); }
.green { color: var(--green); }
.amber { color: var(--amber); }
.blue { color: var(--blue); }

.stat-cards strong {
  display: block;
  margin-bottom: 4px;
  font-size: 19px;
  font-weight: 400;
}

.stat-cards span {
  font-size: 11px;
  line-height: 1.25;
}

.panel {
  padding: 18px 18px 0;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.panel-head h2,
.overview h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
}

button {
  color: white;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 12px;
}

.metrics article,
.mini-metrics article,
.lead-stats article {
  min-width: 0;
  border: 1px solid var(--soft-border);
  border-radius: 5px;
  padding: 10px;
  background: rgba(5, 14, 26, .78);
  overflow: hidden;
}

.metrics article {
  min-height: 104px;
  padding: 14px 16px;
  border: 0;
}

.blue-card { background: linear-gradient(135deg, #09265d, #061a45) !important; }
.red-card { background: linear-gradient(135deg, #78100e, #430404) !important; }
.gold-card { background: linear-gradient(135deg, #795400, #503600) !important; }
.green-card { background: linear-gradient(135deg, #064620, #042b14) !important; }
.purple-card { background: linear-gradient(135deg, #2a126b, #19093e) !important; }

.metrics span,
.mini-metrics span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
}

.metrics strong {
  display: block;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 300;
}

.metrics em {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-style: normal;
  font-weight: 700;
}

.chart-shell {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 10px;
  align-items: stretch;
}

.axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0 4px;
  font-size: 16px;
}

.right { text-align: right; }
.line-chart { width: 100%; height: 170px; }

.dates {
  display: flex;
  justify-content: space-between;
  margin: 0 48px 0 52px;
  font-size: 14px;
}

.legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 30px;
  margin: 22px 0 18px;
  font-size: 14px;
}

.legend i {
  display: inline-block;
  width: 22px;
  height: 2px;
  margin-right: 8px;
  vertical-align: middle;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr .75fr 1fr .65fr 1fr 1fr;
  gap: 12px;
  margin: 0 -6px -1px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.summary-grid span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.summary-grid strong {
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1;
  font-weight: 300;
  white-space: nowrap;
}

.section-title {
  margin: 86px 0 8px;
  text-align: center;
}

.section-title p {
  margin: 0;
  color: var(--purple);
  font-size: 18px;
  letter-spacing: .08em;
}

.section-title h2 {
  margin: 2px 0 0;
  font-size: 27px;
  line-height: 1.08;
}

.section-title span {
  display: block;
  margin-top: 5px;
  font-size: 13px;
}

.projects {
  display: grid;
  gap: 10px;
}

.top-projects { grid-template-columns: 1.28fr 1.36fr 1.52fr; }
.bottom-projects {
  grid-template-columns: 1.05fr 1fr 1.08fr 1.15fr;
  margin-top: 12px;
}

.project {
  padding: 14px 16px 15px;
}

.category {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  letter-spacing: .05em;
}

.blue-text { color: #00c7ff; }
.purple-text { color: var(--purple); }

.project h3 {
  margin: 0 0 5px;
  font-size: 19px;
  line-height: 1.15;
}

.period {
  margin: 0 0 12px;
  font-size: 13px;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.central-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mini-metrics strong {
  display: block;
  max-width: 100%;
  font-size: clamp(14px, 1.36vw, 20px);
  line-height: 1.05;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.analytics-metrics strong {
  font-size: clamp(12px, .95vw, 15px);
  letter-spacing: 0;
}

.central-metrics strong {
  font-size: clamp(11px, .82vw, 13px);
  letter-spacing: 0;
}

.analytics-metrics article,
.central-metrics article {
  padding: 9px 8px;
}

.small-chart,
.spark-chart {
  display: block;
  width: 100%;
  height: 96px;
  margin: 8px 0 12px;
}

.spark-chart { height: 112px; margin-top: 18px; }
.purple-line { height: 64px; }

table {
  width: 100%;
  margin: 12px 0 16px;
  border-collapse: collapse;
  font-size: 11px;
}

th,
td {
  border: 1px solid rgba(132, 137, 148, .4);
  padding: 8px 7px;
  text-align: right;
}

th:first-child,
td:first-child { text-align: left; }
th { color: var(--green); font-weight: 500; }

ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.25;
}

li {
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: 8px;
}

li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  border-radius: 50%;
  background: #69bf00;
  color: #031006;
  font-size: 10px;
  font-weight: 900;
}

.lead-line {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: #00d7ff;
  font-size: 15px;
}

.lead-line span:first-child { color: var(--purple); }

.lead-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.lead-stats article {
  text-align: center;
  padding: 8px 5px;
}

.lead-stats strong {
  display: block;
  font-size: 15px;
  font-weight: 400;
}

.lead-stats span { font-size: 11px; }
.subhead { margin-top: 8px !important; font-size: 17px !important; }
.facts { margin: 8px 0 0; font-size: 15px; line-height: 1.55; }

dl {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  font-size: 14px;
}

dl div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

dt,
dd { margin: 0; }

.achievement-strip,
.tools-strip {
  margin-top: 14px;
  padding: 14px 18px 16px;
}

.achievement-strip h2,
.tools-strip h2 {
  margin: 0 0 10px;
  text-align: center;
  color: var(--purple);
  font-size: 20px;
  letter-spacing: .08em;
  font-weight: 500;
}

.achievement-strip > div {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: center;
}

.achievement-strip article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.achievement-strip svg {
  width: 36px;
  height: 36px;
  color: var(--amber);
  stroke-width: 1.8;
  flex: 0 0 auto;
}

.achievement-strip article:nth-child(2) svg {
  fill: var(--amber);
  stroke: none;
}

.achievement-strip article:nth-child(3) svg,
.achievement-strip article:nth-child(4) svg,
.achievement-strip article:nth-child(5) svg {
  color: var(--green);
}

.achievement-strip article:nth-child(6) svg {
  color: var(--red);
}

.achievement-strip article:nth-child(7) svg {
  color: var(--purple);
}

.achievement-strip strong {
  display: block;
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1;
  font-weight: 400;
  white-space: nowrap;
}

.achievement-strip span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.18;
  max-width: 128px;
}

.tools-strip > div {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
  padding: 2px 8px 4px;
}

.tool {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tool svg {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.tool .meta-logo {
  width: 48px;
  height: 36px;
  flex-basis: 48px;
}

.tool span {
  font-size: 16px;
  white-space: nowrap;
}

footer {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.32fr 1.55fr 1.22fr;
  gap: 0;
  align-items: center;
  padding: 22px 12px 4px;
  font-size: 14px;
}

.footer-item {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-right: 1px solid var(--border);
  padding: 0 18px;
  white-space: nowrap;
}

.footer-item:first-child { padding-left: 0; }
.footer-item:last-child { border-right: 0; padding-right: 0; justify-content: flex-end; }

.footer-item svg {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  fill: none;
  stroke: #19aaff;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-linkedin {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 2px;
  font-size: 15px;
}

.country-code {
  margin-left: 2px;
  font-size: 13px;
  letter-spacing: 0;
}

@media (max-width: 1050px) {
  .hero-grid,
  .top-projects,
  .bottom-projects {
    grid-template-columns: 1fr;
	display: flex;
	flex-direction: column-reverse;
  }

  .overview { order: -1; }
  .section-title { margin-top: 42px; }
  .achievement-strip > div,
  .tools-strip > div,
  footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-item:nth-child(2n) { border-right: 0; }
}

@media (max-width: 760px) {
  .page { width: min(100% - 20px, 560px); padding-top: 14px; }
  .identity { grid-template-columns: 86px 1fr; gap: 12px; }
  .logo { font-size: 66px; }
  .contact { font-size: 13px; gap: 9px; }
  .intro > h2,
  .summary,
  .tag { margin-left: 0; }
  .stat-cards,
  .metrics,
  .mini-metrics,
  .central-metrics,
  .summary-grid,
  .achievement-strip > div,
  .tools-strip > div,
  footer {
    grid-template-columns: 1fr;
  }
  .panel-head { align-items: flex-start; flex-direction: column; }
  .chart-shell { grid-template-columns: 32px 1fr 32px; }
  .dates { margin: 0 38px; }
  .legend { gap: 12px 20px; }
  .mini-metrics strong,
  .analytics-metrics strong,
  .central-metrics strong {
    font-size: 20px;
  }
  .lead-stats { grid-template-columns: repeat(2, 1fr); }
  .tool span { white-space: normal; }
  .footer-item {
    border-right: 0;
    border-bottom: 1px solid rgba(141, 104, 78, .4);
    padding: 0 0 12px;
    white-space: normal;
  }
  .footer-item:last-child { justify-content: flex-start; border-bottom: 0; }
}
