:root {
  --bg: #09080c;
  --bg-2: #111019;
  --panel: rgba(23, 20, 30, 0.88);
  --panel-strong: #17131d;
  --text: #f5ecdf;
  --muted: #b8a99e;
  --red: #c83e4d;
  --gold: #e0b35d;
  --cyan: #81c7ca;
  --ink: #050507;
  --line: rgba(245, 236, 223, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 18% 8%, rgba(200, 62, 77, 0.2), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(129, 199, 202, 0.16), transparent 28%),
    linear-gradient(145deg, #060508 0%, #111019 48%, #150b12 100%);
  background-size: 24px 24px, 24px 24px, auto, auto, auto;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 50%, transparent 50%),
    linear-gradient(90deg, rgba(224, 179, 93, 0.08), rgba(129, 199, 202, 0.06), rgba(200, 62, 77, 0.08));
  background-size: 100% 4px, 100% 100%;
  mix-blend-mode: soft-light;
  opacity: 0.22;
}

body:has(.language-gate:not(.is-hidden)) {
  overflow: hidden;
}

a {
  color: inherit;
}

.language-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(9, 8, 12, 0.82), rgba(9, 8, 12, 0.92)),
    radial-gradient(circle at 20% 18%, rgba(200, 62, 77, 0.34), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(129, 199, 202, 0.24), transparent 30%),
    #09080c;
  backdrop-filter: blur(10px);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.language-gate.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.language-panel {
  width: min(760px, 100%);
  border: 1px solid rgba(245, 236, 223, 0.18);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
  background: rgba(17, 16, 25, 0.92);
  box-shadow: var(--shadow);
}

.language-kicker {
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.language-panel h2 {
  margin-bottom: 12px;
}

.language-copy {
  margin: 0 auto 28px;
  max-width: 500px;
  color: var(--muted);
}

.language-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.flag-button {
  min-height: 150px;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 12px;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.flag-button:hover,
.flag-button:focus-visible {
  border-color: rgba(224, 179, 93, 0.7);
  background: rgba(224, 179, 93, 0.1);
  outline: none;
  transform: translateY(-2px);
}

.flag-image {
  width: min(120px, 42vw);
  aspect-ratio: 4 / 3;
  display: block;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 0 56px;
}

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

.nav-links,
.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar a,
.footer-links a,
.language-switcher button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 13px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  background: rgba(255, 255, 255, 0.035);
}

.language-switcher button {
  min-width: 44px;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

.language-switcher img {
  width: 24px;
  height: 18px;
  display: block;
  border-radius: 2px;
  object-fit: cover;
}

.topbar a:hover,
.footer-links a:hover,
.language-switcher button:hover,
.language-switcher button.is-active {
  color: var(--text);
  border-color: rgba(224, 179, 93, 0.55);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(310px, 0.78fr);
  gap: 54px;
  align-items: center;
}

.eyebrow,
.section-kicker,
.project-role {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.1rem, 10vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 8px 0 var(--ink), 0 0 34px rgba(200, 62, 77, 0.25);
}

h2 {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.tagline {
  margin-bottom: 22px;
  color: var(--gold);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 800;
}

.intro {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  color: #120d10;
  background: var(--gold);
  box-shadow: 8px 8px 0 rgba(200, 62, 77, 0.4);
}

.button.ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.portrait-card {
  position: relative;
  margin: 0;
  border: 1px solid rgba(224, 179, 93, 0.42);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(224, 179, 93, 0.1), rgba(200, 62, 77, 0.08)), var(--panel);
  box-shadow: var(--shadow);
  transform: rotate(1.4deg);
}

.portrait-card::before {
  content: "";
  position: absolute;
  inset: 26px -14px -14px 26px;
  z-index: -1;
  border: 1px solid rgba(129, 199, 202, 0.34);
  border-radius: 8px;
}

.portrait-card img {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  image-rendering: auto;
}

.portrait-card figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section {
  padding: 86px 0;
  border-top: 1px solid var(--line);
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.story-text {
  color: var(--muted);
  font-size: 1.04rem;
}

.manifesto {
  border: 1px solid rgba(200, 62, 77, 0.38);
  border-radius: 8px;
  padding: 36px;
  background: linear-gradient(90deg, rgba(200, 62, 77, 0.18), rgba(224, 179, 93, 0.1), rgba(129, 199, 202, 0.12));
  box-shadow: var(--shadow);
}

.manifesto p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.8rem);
  line-height: 1.14;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.project-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: var(--panel);
}

.project-card.featured {
  background:
    linear-gradient(135deg, rgba(200, 62, 77, 0.18), transparent 54%),
    var(--panel-strong);
  border-color: rgba(224, 179, 93, 0.45);
}

.project-card p {
  color: var(--muted);
}

.project-card a {
  margin-top: auto;
  color: var(--gold);
  font-weight: 800;
  text-decoration-color: rgba(224, 179, 93, 0.4);
  overflow-wrap: anywhere;
}

.signal-section {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 42px;
}

.signal-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  border-left: 4px solid var(--red);
  padding: 14px 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  color: var(--muted);
}

.footer-name {
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}


.skills-intro {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.06rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.skill-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(129, 199, 202, 0.08), transparent 58%),
    var(--panel);
}

.skill-panel.wide {
  grid-column: 1 / -1;
}

.timeline-list,
.work-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid rgba(245, 236, 223, 0.1);
  padding-bottom: 12px;
  color: var(--muted);
}

.timeline-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.timeline-list strong {
  color: var(--gold);
  font-size: 0.86rem;
  white-space: nowrap;
}

.timeline-list.compact {
  gap: 10px;
}

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

.tag-cloud span {
  border: 1px solid rgba(224, 179, 93, 0.24);
  border-radius: 6px;
  padding: 8px 11px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.045);
}

.work-list li {
  border-left: 4px solid var(--cyan);
  padding: 12px 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}
@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 24px, 680px);
  }

  .hero {
    padding-bottom: 42px;
  }

  .topbar {
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 24px;
  }

  .hero-grid,
  .story-layout,
  .signal-section,
  .skills-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 34px;
  }

  .portrait-card {
    width: min(100%, 430px);
    transform: none;
  }

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

  .section {
    padding: 62px 0;
  }

  .footer {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .language-options {
    grid-template-columns: 1fr;
  }

  .flag-button {
    min-height: 96px;
    grid-template-columns: auto 1fr;
    justify-content: start;
    text-align: left;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(3.25rem, 18vw, 4.5rem);
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .manifesto {
    padding: 24px;
  }

  .project-card {
    min-height: auto;
    padding: 22px;
  }
}
