html,
body {
  height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  opacity: 0;
  transition: opacity 0.8s ease;
  margin: 0;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu,
    Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background:
    radial-gradient(1200px 800px at 20% -10%, #173152 5%, transparent 60%),
    radial-gradient(900px 600px at 100% 0%, #162033 5%, transparent 55%),
    #0c0f14;
  color: #e8eef7;
  line-height: 1.55;
}

.loaded {
  opacity: 1;
}

a {
  color: #5aa9ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */
.wrap {
  max-width: 1120px;
  padding: 32px 20px 120px;
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f2d45, #0f1520);
  border: 1px solid #273042;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}


.brand h1 {
  font-size: clamp(22px, 3vw, 32px);
  margin: 0;
}

.title-sub {
  color: #9cb0c7;
  font-weight: 500;
  margin-top: 4px;
}

.cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid #5aa9ff;
  color: #e8eef7;
  background: transparent;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.btn.filled {
  background: linear-gradient(135deg, #5aa9ff, #7ef0c3);
  border: none;
  color: #0b0f14;
}

.btn:focus {
  outline: 3px solid #265dff44;
}

/* Sections */
section {
  margin-top: 34px;
}

.card {
  background: linear-gradient(180deg, #151c27 0%, #0f151f 100%);
  border: 1px solid #243144;
  border-radius: 18px;
  padding: 22px;
}

h2 {
  font-size: clamp(18px, 2.5vw, 22px);
  letter-spacing: 0.3px;
  margin: 0 0 14px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 880px) {
  .grid.cols-2,
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }

  header {
    align-items: flex-start;
  }
}

/* Hero */
.hero {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.hero .pitch {
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(90, 169, 255, 0.1),
    rgba(126, 240, 195, 0.05)
  );
  border: 1px solid #2a3750;
}

.hero p {
  margin: 0;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.kpi {
  background: #131922;
  border: 1px solid #233042;
  border-radius: 18px;
  padding: 16px;
}

.kpi .n {
  font-size: 22px;
  font-weight: 700;
}

.kpi .l {
  color: #9cb0c7;
  font-size: 13px;
}

/* Lists */
.list {
  display: grid;
  gap: 10px;
}

.item {
  display: grid;
  gap: 6px;
}

.item .top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: space-between;
}

.item .when {
  color: #9cb0c7;
  font-size: 13px;
}

/* Badges & tags */
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  color: #0b0f14;
  background: linear-gradient(135deg, #7ef0c3, #5aa9ff);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #243144;
}

.tag.ghost {
  background: transparent;
  color: #e8eef7;
  border: 1px solid #2d3c52;
}

/* Projects */
.project {
  display: grid;
  gap: 8px;
  background: #131922;
  border: 1px solid #233042;
  border-radius: 18px;
  padding: 16px;
}

.project .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #9cb0c7;
  font-size: 13px;
}

.project .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Footer */
footer {
  margin-top: 40px;
  padding: 20px 0 60px;
  color: #9cb0c7;
}

/* Print */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  .card,
  .project,
  .kpi,
  .hero .pitch {
    background: #fff;
    border: 1px solid #ddd;
  }

  a {
    color: #000;
  }

  .btn,
  .cta {
    display: none;
  }

  .wrap {
    padding: 0;
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

[data-delay="1"] { transition-delay: 0.2s; }
[data-delay="2"] { transition-delay: 0.4s; }
[data-delay="3"] { transition-delay: 0.6s; }
