
:root {
  --bg:           #FFFFFF;
  --bg-secondary: #F5F5F7;
  --surface:      #FFFFFF;
  --surface-hover:#F5F5F7;
  --border:       #D2D2D7;
  --border-strong:#B8B8BD;

  --text:         #1D1D1F;
  --text-dim:     #6E6E73;
  --text-muted:   #86868B;

  --accent:       #0071E3;
  --accent-hover: #0077ED;
  --accent-dim:   rgba(0, 113, 227, 0.08);
  --accent-border:rgba(0, 113, 227, 0.25);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.04);
  --shadow:    0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10);

  --maxw: 1120px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --transition: 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: #fff; }

/* Per-page themes — unified accent, no-op */
body.theme-home,
body.theme-education,
body.theme-certs,
body.theme-projects,
body.theme-experience,
body.theme-services,
body.theme-interests {}

/* Legacy decorative elements — hidden */
.tape, .dog-ear, .note, .stamp, .marker,
.hand-note, .doodle-arrow, .header-arrow,
.header-arrow-note, .timeline-connector { display: none !important; }

body::before, body::after { display: none; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

main { flex: 1; }
main > .container > main, .container { position: static; }

/* Page Header */
.page-header {
  margin-bottom: 64px;
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--border);
  position: static;
}
.page-header::before,
.page-header::after { display: none; }

.page-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.page-header .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.page-header h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin: 0 0 18px;
  color: var(--text);
  font-style: normal;
  font-family: var(--font-sans);
}
.page-header p {
  color: var(--text-dim);
  max-width: 600px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 24px;
}
.brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: var(--font-sans);
}
.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dim);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 500; }
.nav-links a.active::after { display: none; }

.nav-links a.contact-link {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 7px 18px;
  font-weight: 500;
  margin-left: 8px;
  transition: background var(--transition);
}
.nav-links a.contact-link:hover { background: var(--accent-hover); color: #fff; }

.lang-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}
.lang-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.lang-toggle .lang-sep { color: var(--text-muted); margin: 0 4px; }
.lang-toggle .active-lang { color: var(--accent); font-weight: 600; }

.nav-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

@media (max-width: 820px) {
  .nav-burger { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    gap: 2px;
    transform: translateY(-8px);
    opacity: 0; pointer-events: none;
    transition: all var(--transition);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 11px 14px; border-radius: var(--radius-sm); }
  .nav-links a.contact-link { margin: 6px 0 0; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: -0.01em;
}
.btn::after { display: none; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: none;
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: none;
  box-shadow: 0 4px 16px rgba(0,113,227,0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent-border);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--accent-dim);
  transform: none;
  box-shadow: none;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding: 64px 0 32px;
  color: var(--text-muted);
  font-size: 14px;
  background: var(--bg-secondary);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer a { color: var(--text-dim); transition: color var(--transition); }
.footer a:hover { color: var(--text); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 36px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.footer-tag {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 32ch;
}

.footer-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-links a { display: inline-block; padding: 2px 0; }

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-social svg { color: var(--text-muted); flex-shrink: 0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.footer-built { opacity: 0.8; }

/* Hero */
.hero {
  padding: 120px 0 148px;
  overflow: visible;
}
.hero::before { display: none; }
.hero > .container { position: static; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 64px;
  align-items: center;
}
.hero-grid > div { position: static; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 72px 0 88px; }
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .55; transform: scale(1.35); }
}

.hero h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-style: normal;
  font-size: clamp(48px, 8.5vw, 96px);
  letter-spacing: -0.045em;
  line-height: 0.97;
  margin: 0 0 24px;
  color: var(--text);
}
.hero h1 .accent {
  color: var(--accent);
  background: none;
  -webkit-text-fill-color: initial;
  font-style: normal;
  font-weight: 700;
}
.hero h1 .line-2 {
  display: block;
  font-size: 0.5em;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  margin-top: 12px;
  line-height: 1.45;
  font-family: var(--font-sans);
}
.hero h1 .line-2 .hl {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
  background: none;
  padding: 0;
}

.hero .lede {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 50ch;
  margin: 0 0 40px;
  line-height: 1.65;
  font-weight: 400;
}
.hero .lede strong { color: var(--text); font-weight: 500; }

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

/* Hero profile card */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
  min-width: 288px;
  max-width: 320px;
  transform: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-card::after { display: none; }

.hero-card-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.hero-card-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  font-family: var(--font-sans);
  font-style: normal;
}
.hero-card-role {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  font-family: var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
}

.hero-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-card-list li { display: flex; flex-direction: column; gap: 3px; }
.hero-card-list .k {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.hero-card-list .v {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.4;
}

/* About — full-width alternating section */
.about-bg {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about {
  padding: 96px 0 96px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
}
@media (max-width: 880px) {
  .about { grid-template-columns: 1fr; gap: 52px; }
}
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; gap: 36px; padding: 64px 0; }
}

.about h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--text);
  padding-left: 0;
  font-family: var(--font-sans);
  font-style: normal;
}
.about h2::before { display: none; }
.about p { color: var(--text-dim); margin: 0 0 16px; line-height: 1.75; font-size: 16px; }
.about p strong { color: var(--text); font-weight: 500; }

.cv-qr {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding: 20px 22px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transform: none;
  width: max-content;
  max-width: 100%;
  box-shadow: none;
}
.cv-qr-img {
  background: #fff;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.cv-qr-img img { display: block; width: 100px; height: 100px; }
.cv-qr-text { display: flex; flex-direction: column; gap: 4px; }
.cv-qr-label {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
  font-family: var(--font-sans);
  font-style: normal;
}
.cv-qr-note {
  font-size: 14px;
  color: var(--text-dim);
  transform: none;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.4;
  max-width: 22ch;
}
@media (max-width: 600px) {
  .cv-qr { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* Skills */
.stack-block h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 22px 0 10px;
  font-family: var(--font-mono);
}
.stack-block h3:first-child { margin-top: 0; }

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.chip {
  font-size: 13px;
  font-weight: 400;
  padding: 6px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  transition: all var(--transition);
  transform: none;
  font-family: var(--font-sans);
}
.chip:nth-child(3n),
.chip:nth-child(3n+1),
.chip:nth-child(5n) { transform: none; background: var(--bg-secondary); color: var(--text); border-color: var(--border); }
.chip:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: none;
}
.chip.secondary {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border);
  border-style: solid;
}
.chip.secondary:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Diplomas */
.diploma-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.diploma-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  cursor: pointer;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transform: none;
  transition: box-shadow var(--transition), transform var(--transition);
}
.diploma-card:nth-child(2n),
.diploma-card:nth-child(3n),
.diploma-card:nth-child(5n) { transform: none; box-shadow: var(--shadow-sm); }
.diploma-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.diploma-card:nth-child(3n):hover,
.diploma-card:nth-child(5n):hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.diploma-card .year {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.diploma-card h3 {
  margin: 10px 0 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  font-style: normal;
  font-family: var(--font-sans);
}
.diploma-card .school {
  font-size: 14px;
  color: var(--text-dim);
}
.diploma-card .details {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 350ms ease, opacity 250ms ease, margin-top var(--transition);
}
.diploma-card:hover .details { max-height: 800px; opacity: 1; }
.diploma-card .details strong { color: var(--text); font-weight: 500; }
.diploma-card .mention {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Certifications */
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cert-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transform: none;
  transition: box-shadow var(--transition), transform var(--transition);
}
.cert-card:nth-child(2n),
.cert-card:nth-child(3n) { box-shadow: var(--shadow-sm); transform: none; }
.cert-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cert-card:nth-child(2n):hover,
.cert-card:nth-child(3n):hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.cert-body h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  font-style: normal;
  font-family: var(--font-sans);
}
.cert-body .cert-meta {
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-sans);
}
.cert-body .cert-meta .dot { margin: 0 8px; color: var(--text-muted); }

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
}
.download-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,113,227,0.25);
}

.notice {
  margin-top: 28px;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 13px;
}

@media (max-width: 640px) {
  .cert-card { grid-template-columns: auto 1fr; }
  .cert-card .download-btn { grid-column: 1 / -1; justify-self: start; }
}

/* Projects slider */
.slider-wrap { position: relative; }
.project-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 360px);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  padding: 4px 4px 24px;
  scroll-padding: 0 4px;
}
.project-slider::-webkit-scrollbar { height: 6px; }
.project-slider::-webkit-scrollbar-track { background: transparent; }
.project-slider::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.project-slider::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  min-height: 456px;
  transform: none;
  transition: box-shadow var(--transition), transform var(--transition);
}
.project-card .project-cover { overflow: hidden; }
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.project-cover {
  position: relative;
  height: 156px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.project-cover::after,
.project-cover::before { display: none; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.project-cover .cover-emoji { font-size: 44px; filter: none; }

.project-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.project-card .tag .tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: none;
}
.project-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.2;
  font-style: normal;
  font-family: var(--font-sans);
  color: var(--text);
}
.project-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 18px;
  flex: 1;
}
.project-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.project-stack .chip { font-size: 11px; padding: 4px 10px; }

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  transition: gap var(--transition);
  align-self: flex-start;
}
.project-link:hover { gap: 10px; }

.slider-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  gap: 16px;
}
.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.slider-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.slider-btn:disabled { opacity: .3; cursor: not-allowed; }

.slider-progress {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  max-width: 320px;
}
.slider-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 200ms ease;
}
.slider-hint {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Inner page layout */
.container > .page-header + .diploma-grid,
.container > .page-header + .cert-list,
.container > .page-header + .slider-wrap,
.container > .page-header + .timeline,
.container > .page-header + .interests-grid {
  padding-bottom: 96px;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.timeline-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
  transform: none;
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 0;
}
.timeline-item:nth-child(2n),
.timeline-item:nth-child(3n),
.timeline-item:nth-child(4n),
.timeline-item:nth-child(5n) {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--accent);
}
.timeline-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.timeline-item:nth-child(2n):hover,
.timeline-item:nth-child(3n):hover,
.timeline-item:nth-child(4n):hover,
.timeline-item:nth-child(5n):hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-item .period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  display: inline-block;
}
.timeline-item h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  font-style: normal;
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.2;
}
.timeline-item .place {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.timeline-item p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  max-width: 680px;
}

/* Interests */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.interest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transform: none;
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: visible;
  position: relative;
}
.interest-card:nth-child(2n),
.interest-card:nth-child(3n),
.interest-card:nth-child(4n),
.interest-card:nth-child(5n),
.interest-card:nth-child(7n) { transform: none; box-shadow: var(--shadow-sm); }
.interest-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--surface); }

.interest-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  border: none;
  flex-shrink: 0;
}
.interest-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
  font-style: normal;
  font-family: var(--font-sans);
  color: var(--text);
}
.interest-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* Utilities */
[data-en], [data-fr] {}
.hidden { display: none !important; }

a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
