:root {
  --ink: #2d173b;
  --accent: #6f2d91;
  --accent-soft: #f5f0f8;
  --text: #2c2730;
  --muted: #6d6670;
  --line: #ddd3e3;
  --paper: #fff;
  --page: #f6f4f7;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  color: var(--text);
  background: var(--page);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); }
img { display: block; width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(45,23,59,.1);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--ink); font-weight: 700; letter-spacing: .06em; text-decoration: none; }
.header-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.header-nav a { text-decoration: none; }
.header-nav a:hover { color: var(--accent); }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(45, 23, 59, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 18px rgba(45, 23, 59, 0.12);
  backdrop-filter: blur(8px);
}
.lang-switch-link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.lang-switch-link:hover,
.lang-switch-link:focus-visible,
.lang-switch-link.is-active { opacity: 1; }
.lang-switch-link:hover { transform: translateY(-1px); }
.lang-switch-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lang-switch-flag { display: block; width: 28px; height: 20px; object-fit: cover; }

.hero { padding-block: 92px 76px; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { max-width: 980px; margin: 0; color: var(--ink); font-size: clamp(42px, 7vw, 82px); line-height: .98; letter-spacing: -.045em; }
.hero-lead { max-width: 860px; margin: 30px 0 0; font-size: clamp(18px, 2.3vw, 24px); line-height: 1.5; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 32px; }
.hero-meta span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 600; }

.projects { padding-bottom: 64px; }
.section-heading { margin-bottom: 28px; padding-top: 40px; border-top: 1px solid var(--line); }
.section-heading h2 { margin: 0; color: var(--ink); font-size: clamp(30px, 4vw, 48px); letter-spacing: -.025em; }

.project {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  margin-bottom: 54px;
  padding: clamp(22px, 3.3vw, 38px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(45,23,59,.06);
}
.project-featured { border-color: rgba(111,45,145,.35); }
.project-media { position: sticky; top: 92px; overflow: hidden; border-radius: 12px; background: var(--ink); }
.project-media a { position: relative; display: block; text-decoration: none; }
.project-media img { aspect-ratio: 16 / 10; object-fit: cover; }
.media-badge { position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; border-radius: 999px; background: rgba(45,23,59,.92); color: white; font-size: 13px; font-weight: 600; }
.project-kicker { margin: 0 0 10px; color: var(--accent); font-size: 13px; font-weight: 700; }
.project h3 { margin: 0; color: var(--ink); font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -.025em; }
.project-summary { margin: 18px 0 22px; font-size: 17px; line-height: 1.58; }
.project-facts { margin: 0; border-top: 1px solid var(--line); }
.project-facts div { display: grid; grid-template-columns: 100px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.project-facts dt { color: var(--ink); font-weight: 700; }
.project-facts dd { margin: 0; line-height: 1.45; }
.stack { margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.stack strong { color: var(--ink); }
.project-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; color: var(--accent); font-weight: 600; }

.experience { padding-bottom: 90px; }
.milestones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.milestones article { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.milestones h3 { margin: 0 0 10px; color: var(--ink); font-size: 22px; }
.milestones p { margin: 0; line-height: 1.55; }

.site-footer { border-top: 1px solid var(--line); background: var(--ink); color: white; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; padding-block: 28px; font-size: 14px; }

@media (max-width: 800px) {
  .container { width: min(100% - 28px, 1160px); }
  .header-nav { gap: 14px; }
  .header-nav a:not(.lang):first-child { display: none; }
  .hero { padding-block: 64px 54px; }
  .project { grid-template-columns: 1fr; padding: 18px; }
  .project-media { position: static; }
  .milestones { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 520px) {
  .brand { font-size: 14px; }
  .header-nav { gap: 10px; font-size: 13px; }
  .project-facts div { grid-template-columns: 1fr; gap: 4px; }
}
