:root {
  --bg: #0d1117;
  --bg-soft: #121926;
  --panel: rgba(20, 28, 42, 0.72);
  --panel-strong: #172235;
  --text: #f5f1e8;
  --muted: #b8b3a7;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #ff8a3d;
  --accent-soft: #ffd2a4;
  --teal: #6fe7dd;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 138, 61, 0.22), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(111, 231, 221, 0.18), transparent 22%),
    linear-gradient(180deg, #091018 0%, #0d1117 38%, #111926 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent);
}

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

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 48px;
}

.hero,
.section,
.footer {
  position: relative;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 10px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  font-family: "DM Serif Display", serif;
  font-size: 1.8rem;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a:hover,
.text-link:hover,
.contact-list a:hover {
  color: var(--accent-soft);
}

.language-toggle {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.language-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 210, 164, 0.28);
  background: rgba(255, 138, 61, 0.12);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  padding: 48px 0 36px;
}

.hero-copy,
.hero-panel,
.project-card,
.about-card,
.metric,
.footer {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 48px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-soft);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

h1,
h2,
h3,
.metric-number {
  margin: 0;
  font-family: "DM Serif Display", serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.05rem, 3.8vw, 3.45rem);
  max-width: 17ch;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-text,
.section-copy,
.project-body p,
.about-card p,
.footer-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-text {
  max-width: 54ch;
  font-size: 0.98rem;
  margin: 18px 0 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ffb36c 100%);
  color: #1a120b;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel {
  padding: 22px;
  border-radius: var(--radius-xl);
  align-self: stretch;
}

.profile-card {
  display: grid;
  gap: 16px;
}

.profile-copy {
  padding: 2px 4px 0;
}

.profile-copy strong {
  display: block;
  margin: 10px 0 10px;
  font-size: 2rem;
}

.profile-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.profile-fact {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-fact p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.profile-fact.compact p {
  color: var(--text);
  font-weight: 700;
}

.hero-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card.large {
  min-height: 220px;
}

.card-label,
.project-meta,
.metric-label {
  display: block;
  color: var(--accent-soft);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card strong {
  display: block;
  margin: 14px 0 12px;
  font-size: 1.3rem;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.section {
  padding: 42px 0 10px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.section-copy {
  max-width: 60ch;
  margin-top: 14px;
}

.intro .section-heading {
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
}

.intro .section-heading h2 {
  text-align: right;
}

.intro .section-copy {
  margin-left: 0;
  text-align: left;
}

.profile-overview .section-heading {
  align-items: flex-start;
}

.profile-overview .section-heading h2 {
  margin-left: auto;
  text-align: right;
}

.intro .section-heading {
  justify-content: start;
}

.projects {
  display: grid;
  gap: 24px;
  margin-top: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.project-card.reverse .project-visual {
  order: 2;
}

.project-visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: end;
  padding: 28px;
  font-family: "DM Serif Display", serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  overflow: hidden;
}

.project-visual span {
  position: relative;
  z-index: 2;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.visual-a {
  background:
    linear-gradient(180deg, rgba(7, 11, 18, 0.14) 0%, rgba(7, 11, 18, 0.48) 100%),
    linear-gradient(135deg, rgba(9, 16, 24, 0.08), rgba(9, 16, 24, 0.02)),
    url("exorcist.png") center center / cover no-repeat;
}

.visual-b {
  background:
    linear-gradient(180deg, rgba(7, 11, 18, 0.12) 0%, rgba(7, 11, 18, 0.44) 100%),
    linear-gradient(135deg, rgba(9, 16, 24, 0.08), rgba(9, 16, 24, 0.02)),
    url("Stutter.png") center center / cover no-repeat;
}

.visual-c {
  background:
    linear-gradient(180deg, rgba(7, 11, 18, 0.12) 0%, rgba(7, 11, 18, 0.44) 100%),
    linear-gradient(135deg, rgba(9, 16, 24, 0.08), rgba(9, 16, 24, 0.02)),
    url("weightofsoul.jpg") center center / cover no-repeat;
}

.visual-d {
  background:
    linear-gradient(180deg, rgba(7, 11, 18, 0.12) 0%, rgba(7, 11, 18, 0.46) 100%),
    linear-gradient(135deg, rgba(9, 16, 24, 0.08), rgba(9, 16, 24, 0.02)),
    url("Dice.png") center center / cover no-repeat;
}

.visual-e {
  background:
    linear-gradient(180deg, rgba(7, 11, 18, 0.12) 0%, rgba(7, 11, 18, 0.42) 100%),
    linear-gradient(135deg, rgba(9, 16, 24, 0.08), rgba(9, 16, 24, 0.02)),
    url("Dashboard.jpg") center center / cover no-repeat;
}

.visual-e::before,
.visual-e::after {
  content: none;
}

.project-body {
  padding: 32px;
}

.project-body h3 {
  margin-top: 10px;
  font-size: 2rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.tag-list li {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.92rem;
}

.text-link {
  display: inline-block;
  margin-top: 22px;
  font-weight: 800;
}

.split {
  padding-top: 72px;
}

.profile-overview {
  padding-top: 72px;
}

.profile-principles,
.profile-focus-grid,
.profile-metrics {
  margin-top: 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.about-card {
  border-radius: var(--radius-lg);
  padding: 26px;
}

.about-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.system-focus {
  padding-top: 56px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.focus-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(20, 28, 42, 0.72);
  box-shadow: var(--shadow);
  padding: 26px;
}

.focus-card h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.focus-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.metrics {
  padding-top: 56px;
}

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

.metric {
  border-radius: var(--radius-lg);
  padding: 28px;
}

.metric-number {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.metric-label {
  margin-top: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-top: 72px;
  border-radius: var(--radius-xl);
  padding: 34px;
}

.contact-list {
  display: grid;
  gap: 14px;
  align-content: center;
  justify-items: start;
}

.contact-list a {
  font-weight: 800;
  font-size: 1.05rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

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

.delay-2 {
  transition-delay: 220ms;
}

.delay-3 {
  transition-delay: 320ms;
}

@media (max-width: 960px) {
  .hero-grid,
  .project-card,
  .footer,
  .about-grid,
  .metrics-grid,
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .profile-facts {
    grid-template-columns: 1fr;
  }

  .project-card.reverse .project-visual {
    order: 0;
  }

  .hero-copy,
  .project-body,
  .footer {
    padding: 26px;
  }

  .project-visual {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .topbar {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    gap: 16px;
    flex-wrap: wrap;
  }

  h1 {
    font-size: 2rem;
    max-width: 100%;
  }

  .hero-copy {
    padding: 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
