:root {
  color-scheme: dark;
  --bg: #050506;
  --bg-alt: rgba(255, 255, 255, 0.035);
  --text: #f4f5f7;
  --text-muted: #8b8b95;
  --accent: #2e7dff;
  --accent-2: #5aa0ff;
  --accent-contrast: #ffffff;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  --sidebar-w: 280px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============ Breathing background (template blue gradient) ============ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 42% at 30% -10%, rgba(46, 125, 255, 0.3), transparent 60%),
    radial-gradient(52% 46% at 108% 108%, rgba(24, 58, 140, 0.34), transparent 62%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -1;
  background:
    radial-gradient(34% 32% at 12% 16%, rgba(56, 132, 255, 0.16), transparent 60%),
    radial-gradient(36% 32% at 86% 60%, rgba(90, 160, 255, 0.13), transparent 60%),
    radial-gradient(30% 28% at 60% 100%, rgba(46, 125, 255, 0.12), transparent 60%);
  animation: bgBreath 18s ease-in-out infinite alternate;
  pointer-events: none;
  will-change: transform;
}

@keyframes bgBreath {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
    opacity: 0.85;
  }
  100% {
    transform: translate3d(3%, 2%, 0) scale(1.12);
    opacity: 1;
  }
}

a {
  color: inherit;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2.25rem;
}

.highlight {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent-2);
}

/* ============ Scroll reveal (progressive enhancement) ============ */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Defensive: never let a reveal element stay invisible if scripts stall */
.reveal[data-static] {
  opacity: 1;
  transform: none;
}

/* ============ Glass surface (Apple Liquid Glass) ============ */
.glass {
  position: relative;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.028));
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--border-strong);
  box-shadow:
    0 10px 34px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 80% at 12% -12%, rgba(255, 255, 255, 0.2), transparent 58%);
  pointer-events: none;
  z-index: 0;
}

.glass > * {
  position: relative;
  z-index: 1;
}

/* ============ App shell ============ */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ============ Sidebar ============ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.25rem 1.6rem;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.86), rgba(4, 4, 6, 0.92));
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-right: 1px solid var(--border);
  z-index: 100;
  overflow-y: auto;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  margin-bottom: 2.5rem;
}

.sidebar__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar__name {
  display: block;
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.sidebar__role {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  line-height: 1.35;
}

.sidebar__nav {
  flex: 1;
}

.sidebar__nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sidebar__nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
}

.sidebar__nav a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: currentColor;
  transition: color 0.2s ease;
}

.sidebar__nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.sidebar__nav a.active {
  color: var(--text);
  background: linear-gradient(120deg, rgba(46, 125, 255, 0.16), rgba(46, 125, 255, 0.05));
}

.sidebar__nav a.active::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 22px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.sidebar__nav a.active svg {
  color: var(--accent-2);
}

.sidebar__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.sidebar__follow-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sidebar__socials {
  display: flex;
  gap: 0.5rem;
}

.sidebar__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sidebar__socials a:hover {
  color: var(--accent-2);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.sidebar__socials svg {
  width: 15px;
  height: 15px;
}

.sidebar__cta {
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.sidebar__burger {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(16, 17, 22, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.15rem;
  z-index: 200;
  cursor: pointer;
}

.sidebar__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  z-index: 99;
}

/* ============ Page wrapper ============ */
.page {
  margin-left: var(--sidebar-w);
  width: 100%;
  min-width: 0;
}

/* ============ Topbar (clock + location) ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.25rem;
  background: rgba(8, 8, 10, 0.55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.topbar__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.topbar__item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.topbar__item--clock {
  color: var(--text);
}

.topbar__item--clock svg {
  color: var(--accent);
}

/* ============ Content sections ============ */
.content-section {
  scroll-margin-top: 5rem;
}

/* ============ Home hero ============ */
.home-hero {
  padding: 3.5rem 2.25rem 2rem;
  scroll-margin-top: 5rem;
}

.hero__avatar-wrap {
  margin-bottom: 1.75rem;
}

.hero__avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.home-hero h1 {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  max-width: 15ch;
}

.home-hero__subtitle {
  color: var(--text-muted);
  font-size: 1.12rem;
  max-width: 540px;
  margin-bottom: 1.75rem;
}

.home-hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.25rem;
}

.home-hero__portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
  display: block;
}

@media (max-width: 640px) {
  .home-hero h1 {
    font-size: 2.3rem;
  }
}

.hero__flags {
  display: flex;
  gap: 0.4rem;
}

.hero__flags svg {
  width: 22px;
  height: 15px;
  border-radius: 3px;
  border: 1px solid var(--border);
  display: block;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  box-shadow: 0 8px 22px rgba(46, 125, 255, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(46, 125, 255, 0.45);
  background: #3d88ff;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn--outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--accent);
  box-shadow: none;
}

/* ============ Stats row ============ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border-radius: 22px;
  margin: 2.5rem 0;
}

.stats-row__item {
  text-align: center;
  padding: 1.85rem 1rem;
  border-left: 1px solid var(--border);
}

.stats-row__item:first-child {
  border-left: none;
}

.stats-row__value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}

.stats-row__label {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.35rem;
  display: block;
}

/* ============ Section headers ============ */
.page-header {
  padding: 3.5rem 2.25rem 1.5rem;
  scroll-margin-top: 5rem;
}

.page-header h1,
.page-header__title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
}

.section {
  padding: 1.5rem 2.25rem 4rem;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.section p:last-child {
  margin-bottom: 0;
}

.note {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 1.5rem;
}

.eyebrow-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 0.7rem;
  display: block;
}

/* ============ About block ============ */
.about-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 720px) {
  .about-block {
    grid-template-columns: 1fr;
  }
}

.about-block__portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
}

.quickfacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.quickfacts > div {
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
}

.quickfacts dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.quickfacts dd {
  font-weight: 600;
  color: var(--text);
  font-size: 0.92rem;
}

/* ============ Tag list ============ */
.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-list li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.87rem;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tag-list li:hover {
  border-color: var(--accent);
  background: rgba(46, 125, 255, 0.1);
}

/* ============ Cards / bubbles ============ */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.35rem;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(46, 125, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

/* sheen sweep on hover */
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  transition: opacity 0.1s ease;
  pointer-events: none;
  z-index: 2;
}

.card:hover::after {
  opacity: 1;
  animation: sheen 0.9s ease;
}

@keyframes sheen {
  from {
    left: -60%;
  }
  to {
    left: 130%;
  }
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  font-size: 0.92rem;
  flex: 1;
}

.card__actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.card__link {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.2s ease;
}

.card__link:hover {
  color: var(--accent);
}

.card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1.1rem;
  display: block;
  border: 1px solid var(--border);
}

.card__stats {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.card__stat {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card__stat strong {
  color: var(--text);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  display: block;
}

.card--muted {
  border-style: dashed;
  opacity: 0.72;
}

.card--muted:hover {
  transform: none;
}

.card--muted::after {
  display: none;
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.mini-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid var(--border);
  display: block;
}

/* ============ CTA section ============ */
.cta-section {
  border-radius: 26px;
  padding: 3.25rem;
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 1.9rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ Timeline ============ */
.timeline {
  list-style: none;
  border-left: 2px solid var(--border);
  margin-left: 0.5rem;
}

.timeline__item {
  position: relative;
  padding: 0 0 2rem 2rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dot-color, var(--accent));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot-color, var(--accent)) 25%, transparent);
}

.timeline__item--edu {
  --dot-color: var(--accent);
}

.timeline__item--photo {
  --dot-color: #38bdf8;
}

.timeline__item--tech {
  --dot-color: #a78bfa;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dot-color, var(--border));
  color: var(--text);
  margin-bottom: 0.6rem;
}

.timeline__dates {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.timeline__title {
  font-size: 1.08rem;
  font-weight: 700;
}

.timeline__org {
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.timeline__place {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.timeline p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ============ Curriculum stepper ============ */
.curriculum {
  list-style: none;
  margin: 0.5rem 0 2rem;
}

.curriculum__item {
  position: relative;
  padding-left: 2.75rem;
  padding-bottom: 1.75rem;
  border-left: 2px solid var(--border);
  margin-left: 0.85rem;
}

.curriculum__item:last-child {
  border-left: 2px solid transparent;
  padding-bottom: 0;
}

.curriculum__marker {
  position: absolute;
  left: -1.1rem;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(20, 20, 26, 0.9);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.curriculum__item--current .curriculum__marker {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent);
}

.curriculum__card {
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
}

.curriculum__item--current .curriculum__card {
  border-color: var(--accent);
  box-shadow:
    0 12px 30px rgba(46, 125, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.curriculum__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.curriculum__title {
  font-size: 1.08rem;
  font-weight: 700;
}

.curriculum__current-tag {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent);
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

.curriculum__duration {
  display: inline-block;
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.curriculum__list {
  list-style: none;
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.curriculum__list li {
  font-size: 0.89rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}

.curriculum__list li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--accent-2);
}

.curriculum__note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.75rem;
}

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

.curriculum__subitem {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.curriculum__subitem strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.curriculum__subitem span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============ Media row ============ */
.media-row {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.media-row__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
}

.media-row--reverse {
  grid-template-columns: 1fr minmax(220px, 320px);
}

.media-row--reverse .media-row__img {
  order: 2;
}

@media (max-width: 720px) {
  .media-row,
  .media-row--reverse {
    grid-template-columns: 1fr;
  }

  .media-row__img {
    aspect-ratio: 16 / 10;
    max-width: 360px;
    margin: 0 auto;
  }

  .media-row--reverse .media-row__img {
    order: 0;
  }
}

/* ============ Footer ============ */
.footer {
  padding: 2.5rem 2.25rem 3rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__social-icons {
  display: flex;
  gap: 0.6rem;
}

.footer__social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer__social-icons a:hover {
  color: var(--accent-2);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer__social-icons svg {
  width: 15px;
  height: 15px;
}

/* ============ Language toggle ============ */
.lang-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  height: 30px;
  padding: 0 0.75rem;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  background: rgba(46, 125, 255, 0.1);
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .sidebar__burger {
    display: flex;
    align-items: center;
    justify-content: center;
    top: 8px;
    width: 42px;
    height: 42px;
  }

  .sidebar {
    left: calc(-1 * var(--sidebar-w) - 20px);
    transition: left 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar.open + .sidebar__overlay,
  body.nav-open .sidebar__overlay {
    display: block;
  }

  .page {
    margin-left: 0;
  }

  .topbar {
    padding-left: 4.25rem;
    min-height: 58px;
  }
}

@media (max-width: 600px) {
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-section {
    padding: 2.25rem 1.5rem;
  }

  .topbar__item span.topbar__label {
    display: none;
  }
}
