:root {
  --bg: #0b0f17;
  --ink: #f8fafc;
  --muted: #9aa3b2;
  --accent: #f0543c;
  --accent-strong: #d9432f;
  --accent-cool: #f5b31c;
  --panel: #141c2b;
  --panel-tint: #1a2436;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Sora", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(245, 179, 28, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(240, 84, 60, 0.12) 0%, transparent 42%),
    linear-gradient(160deg, #0b0f17 0%, #0e1420 45%, #121a2a 100%);
  color: var(--ink);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 54px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.logo {
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.nav a {
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 200ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  width: 100%;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(20, 28, 43, 0.8);
  font-size: 0.85rem;
}

.lang-toggle button {
  border: none;
  background: transparent;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.lang-toggle button[aria-pressed="true"] {
  color: var(--accent-strong);
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: start;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-photo {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.photo-frame {
  width: min(320px, 100%);
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-meta {
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
}

.meta-role {
  font-weight: 600;
}

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

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

h1 {
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  line-height: 1.05;
}

.role {
  font-weight: 600;
  color: var(--accent-cool);
}

.lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(240, 84, 60, 0.35);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.button.ghost {
  border-color: var(--border);
  background: transparent;
}

.button.ghost:hover,
.button.ghost:focus-visible {
  border-color: var(--accent-cool);
  color: var(--accent-cool);
  transform: translateY(-1px);
}

.button.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.stat {
  padding: 18px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat-number {
  display: block;
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section-head h2 {
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.section-head p {
  color: var(--muted);
  max-width: 680px;
  line-height: 1.6;
  margin-top: 10px;
}

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

.grid.two-col {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.three-col {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--panel);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: "Space Grotesk", "Sora", sans-serif;
  margin-bottom: 10px;
}

.list {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.list li::before {
  content: "-";
  margin-right: 8px;
  color: var(--accent-cool);
}

.muted {
  color: var(--muted);
  line-height: 1.6;
}

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

.chips span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(245, 179, 28, 0.18);
  color: var(--accent-cool);
  font-size: 0.85rem;
  font-weight: 600;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(240, 84, 60, 0.18);
  color: var(--accent-cool);
  font-size: 0.75rem;
  font-weight: 700;
}

.link {
  color: var(--accent-cool);
  font-weight: 600;
  align-self: flex-start;
}

.link.muted {
  color: var(--muted);
}

.link:hover,
.link:focus-visible {
  color: var(--accent-strong);
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--panel-tint);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.link-card span {
  display: block;
}

.link-card .arrow {
  color: var(--accent-cool);
  font-weight: 700;
}

.link-card .label {
  font-weight: 600;
}

.link-card .note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
}

.contact-card {
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(130deg, #141c2b 0%, #1b2334 100%);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.footer-note {
  font-weight: 600;
}

.reveal {
  animation: rise 700ms ease-out both;
}

.delay-1 {
  animation-delay: 120ms;
}

.delay-2 {
  animation-delay: 240ms;
}

.delay-3 {
  animation-delay: 360ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cv-page .page {
  max-width: 900px;
}

.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cv-grid {
  display: grid;
  gap: 18px;
}

.admin-login .hero-grid {
  align-items: stretch;
}

.admin-login .lang-toggle {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
}

.login-card {
  display: grid;
  gap: 12px;
}

.login-card .button {
  align-self: flex-start;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .lang-toggle {
    order: 3;
  }

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

  .hero-photo {
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .page {
    padding: 24px 18px 40px;
    gap: 56px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .hero-grid {
    gap: 24px;
  }

  .hero-photo {
    align-items: stretch;
  }

  .photo-frame {
    width: 100%;
    max-width: 380px;
  }

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

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

  .link-card {
    align-items: flex-start;
  }

  .link-card .arrow {
    align-self: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
