:root {
  --bg: #090b12;
  --bg-elev: #101523;
  --bg-card: rgba(18, 24, 38, 0.82);
  --text: #edf2ff;
  --muted: #b8c2dc;
  --accent: #66b7ff;
  --accent-strong: #8f6bff;
  --ok: #6be6a8;
  --border: rgba(128, 155, 206, 0.24);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-lg: 24px;
  --max-width: 1140px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  background: radial-gradient(circle at 15% 10%, #1a2844 0%, transparent 45%),
    radial-gradient(circle at 85% 0%, #23173e 0%, transparent 35%), var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.site-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(140, 172, 255, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.2;
  pointer-events: none;
  z-index: -1;
}

.site-bg.reduced-effects::before {
  display: none;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(20, 28, 43, 0.95), rgba(13, 18, 30, 0.95));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
}

.brand h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 1.95rem);
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.active {
  border-color: rgba(142, 197, 255, 0.65);
  background: rgba(102, 183, 255, 0.16);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  padding: 32px 28px;
}

.hero h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.15;
}

.hero p {
  color: var(--muted);
  max-width: 60ch;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(139, 192, 255, 0.44);
  padding: 6px 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #d6e5ff;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  transition: 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  background: linear-gradient(90deg, rgba(102, 183, 255, 0.24), rgba(143, 107, 255, 0.2));
  border-color: rgba(161, 201, 255, 0.72);
}

.btn.accent {
  background: linear-gradient(90deg, rgba(102, 183, 255, 0.25), rgba(143, 107, 255, 0.35));
  border-color: rgba(159, 188, 255, 0.8);
}

.portrait {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  background: var(--bg-elev);
  isolation: isolate;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section {
  padding: 0 28px 30px;
}

.section h3 {
  margin: 0 0 14px;
  font-size: 1.3rem;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(6px);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.card h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.project-thumb {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% auto;
  width: 220px;
  height: 220px;
  background-image: radial-gradient(circle, rgba(126, 173, 255, 0.38) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0;
  transform: translateY(20px) rotate(-9deg);
  transition: 0.35s ease;
  pointer-events: none;
}

.card:hover::after,
.card:focus-within::after {
  opacity: 0.55;
  transform: translateY(0) rotate(-9deg);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 0.82rem;
  color: #cee1ff;
  border: 1px solid rgba(138, 174, 234, 0.45);
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(65, 86, 124, 0.2);
}

.timeline-item + .timeline-item {
  margin-top: 14px;
}

.kpi {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kpi .card strong {
  display: block;
  font-size: 1.45rem;
  color: #e8f1ff;
}

.list-clean {
  margin: 0;
  padding-left: 18px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

label {
  color: var(--muted);
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  background: rgba(8, 13, 23, 0.8);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 18px 28px 24px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 10px;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: rgba(157, 191, 255, 0.72);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reduced-effects .card::after {
  display: none;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .wrap {
    padding: 12px;
  }

  .topbar,
  .hero,
  .section,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}
