:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #02040a;
  color: #fff7c7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --bg: #02040a;
  --panel: rgba(8, 13, 29, 0.84);
  --panel-strong: #0d1428;
  --text-muted: #c9d3ec;
  --accent: #ffe45c;
  --accent-soft: rgba(255, 228, 92, 0.16);
  --green: #72d13b;
  --blue: #64d8ff;
  --gray: #9aa4b2;
  --border: rgba(255, 228, 92, 0.2);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.58);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 228, 92, 0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 46% 74%, rgba(100, 216, 255, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 92% 64%, rgba(255, 255, 255, 0.75) 0 1px, transparent 2px),
    radial-gradient(circle at 10% 86%, rgba(255, 228, 92, 0.8) 0 1px, transparent 2px),
    linear-gradient(135deg, rgba(255, 228, 92, 0.1), transparent 38%),
    linear-gradient(225deg, rgba(100, 216, 255, 0.13), transparent 42%),
    var(--bg);
  background-attachment: fixed;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: '';
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.72) 1px, transparent 1px),
    radial-gradient(rgba(255, 228, 92, 0.5) 1px, transparent 1px);
  background-position: 0 0, 34px 54px;
  background-size: 96px 96px, 132px 132px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  opacity: 0.55;
  pointer-events: none;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 24px;
  align-items: stretch;
  min-height: 520px;
}

.hero__content,
.profile-card,
.project-details,
.timeline article,
.stat-card {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(13, 20, 40, 0.95), rgba(2, 4, 10, 0.78));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  padding: clamp(32px, 6vw, 76px);
  border-radius: 36px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.hero__lead,
.section__header p,
.project-card__summary,
.timeline p,
.profile-card__text,
.project-details p,
.details-list dd {
  color: var(--text-muted);
  line-height: 1.7;
}

.hero__lead {
  max-width: 680px;
  margin-bottom: 32px;
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.project-card:hover {
  transform: translateY(-3px);
}

.button--primary {
  background: linear-gradient(135deg, #ffe45c, #ffb000);
  color: #12100a;
  box-shadow: 0 0 24px rgba(255, 228, 92, 0.28);
}

.button--ghost {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
}

.profile-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border-radius: 36px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 228, 92, 0.32);
  background: radial-gradient(circle, rgba(255, 228, 92, 0.2), rgba(100, 216, 255, 0.08));
  color: var(--accent);
  font-size: 1.55rem;
  font-weight: 900;
}

.profile-card__label {
  margin-bottom: 8px;
  color: #ffffff;
  font-weight: 800;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 64px;
}

.stat-card {
  padding: 24px;
  border-radius: 24px;
}

.stat-card__value,
.stat-card__label {
  display: block;
}

.stat-card__value {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0;
}

.stat-card__label {
  color: var(--text-muted);
}

.section {
  margin-top: 64px;
}

.section__header {
  max-width: 720px;
  margin-bottom: 26px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--panel);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-card.is-active {
  border-color: rgba(255, 228, 92, 0.78);
  background: linear-gradient(145deg, rgba(255, 228, 92, 0.16), rgba(13, 20, 40, 0.96));
  box-shadow: 0 0 30px rgba(255, 228, 92, 0.16);
}

.project-card--muted {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(7, 10, 20, 0.76);
  color: rgba(247, 251, 255, 0.72);
}

.project-card--muted .project-card__meta,
.project-card--muted .project-card__summary {
  color: rgba(203, 215, 230, 0.62);
}

.project-card__status {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.project-card__status--online {
  background: rgba(114, 209, 59, 0.14);
  color: #a9f27d;
}

.project-card__status--building {
  background: rgba(100, 216, 255, 0.14);
  color: #b9f0ff;
}

.project-card__status--stopped {
  background: rgba(154, 164, 178, 0.16);
  color: #c4ccd8;
}

.project-card__title {
  margin-top: 34px;
  font-size: clamp(1.55rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0;
}

.project-card__meta {
  margin: 8px 0 12px;
  color: #cbd7e6;
  font-weight: 700;
}

.project-details {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: 28px;
  align-items: stretch;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 30px;
}

.project-details__label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.project-details__label--building {
  background: rgba(100, 216, 255, 0.14);
  color: #b9f0ff;
}

.project-details__label--stopped {
  background: rgba(154, 164, 178, 0.16);
  color: #c4ccd8;
}

.project-details h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0;
}

.project-shot {
  min-height: 280px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.project-shot img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.project-shot--placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 228, 92, 0.24), transparent 22%),
    linear-gradient(145deg, rgba(100, 216, 255, 0.18), rgba(255, 228, 92, 0.1)),
    rgba(255, 255, 255, 0.04);
}

#details-placeholder {
  display: grid;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

#details-placeholder span {
  color: var(--accent);
  font-weight: 900;
}

#details-placeholder .loading-emoji {
  color: var(--accent);
  font-size: clamp(3.4rem, 8vw, 6rem);
  filter: drop-shadow(0 0 18px rgba(255, 228, 92, 0.42));
}

#details-placeholder strong {
  color: #ffffff;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

#details-placeholder small {
  color: var(--text-muted);
  font-size: 1rem;
}

.details-list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.details-list div {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.details-list dt {
  margin-bottom: 6px;
  color: #ffffff;
  font-weight: 800;
}

.details-list dd {
  margin: 0;
}

.next-steps {
  padding-bottom: 24px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.timeline article {
  padding: 24px;
  border-radius: 26px;
}

.timeline__item--muted {
  opacity: 0.62;
  filter: grayscale(0.65);
}

.timeline__item--active {
  border-color: rgba(100, 216, 255, 0.42);
  background: linear-gradient(145deg, rgba(100, 216, 255, 0.13), rgba(2, 4, 10, 0.78));
}

.timeline span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--accent);
  font-weight: 900;
}

@media (max-width: 860px) {
  .hero,
  .project-details,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero__content {
    min-height: auto;
  }

  .stats,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .hero__content,
  .profile-card,
  .project-card,
  .project-details,
  .timeline article,
  .stat-card {
    border-radius: 22px;
  }

  .hero__content,
  .profile-card {
    padding: 24px;
  }

  .stats,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 220px;
  }
}
