/* =====================================================
   DESIGN TOKENS
===================================================== */
:root {
  --bg:          #FFFFFF;
  --bg-alt:      #F4F4F6;
  --bg-dark:     #E6E6E8;
  --ink:         #1A1A1A;
  --ink-muted:   #3A3A3A;
  --ink-faint:   #6B6B6B;
  --accent:      #1565C0;
  --accent-hover:#0D47A1;
  --border:      #D0D0D0;
  --border-strong:#A0A8B8;
  --shape-red:   #C62828;
  --shape-gray:  #3A3A3A;
  --shape-blue:  #1565C0;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  --s1: 8px;   --s2: 16px;  --s3: 24px;
  --s4: 32px;  --s5: 48px;  --s6: 64px;
  --s7: 96px;  --s8: 128px; --s9: 160px;

  --grid-margin: clamp(32px, 6vw, 96px);
  --max-w: 1400px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--bg); }


/* =====================================================
   TYPOGRAPHY
===================================================== */
.label {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
}
.display-xl {
  font-family: var(--sans); font-size: clamp(72px, 10vw, 140px);
  font-weight: 700; line-height: 0.92; letter-spacing: -0.03em;
}
.display-lg {
  font-family: var(--sans); font-size: clamp(48px, 6vw, 80px);
  font-weight: 700; line-height: 1.0; letter-spacing: -0.025em;
}
.display-md {
  font-family: var(--sans); font-size: clamp(32px, 4vw, 52px);
  font-weight: 600; line-height: 1.1; letter-spacing: -0.02em;
}
.serif-accent { font-family: var(--serif); font-style: italic; font-weight: 300; }
.body-lg { font-size: 18px; line-height: 1.7; font-weight: 300; }
.body-md { font-size: 16px; line-height: 1.7; font-weight: 400; }
.body-sm { font-size: 14px; line-height: 1.6; font-weight: 400; }
.mono { font-family: 'SF Mono','Fira Code',monospace; font-size: 13px; letter-spacing: -0.02em; }

/* =====================================================
   BUTTONS
===================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; font-family: var(--sans); font-size: 13px;
  font-weight: 500; letter-spacing: 0.04em; cursor: pointer;
  border-radius: var(--radius); transition: all 0.25s var(--ease-out);
  text-decoration: none; outline: none;
}
.btn-primary { background: var(--accent); color: var(--bg); border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(21,101,192,0.35); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(21,101,192,0.12); }
.btn-ghost { background: transparent; color: var(--ink-muted); border: none; padding: 8px 0; font-size: 13px; }
.btn-ghost:hover { color: var(--ink); }
.btn-ghost .arrow { display: inline-block; transition: transform 0.2s var(--ease-out); }
.btn-ghost:hover .arrow { transform: translateX(4px); }

/* =====================================================
   SECTION BASE
===================================================== */
.section {
  position: relative; padding: var(--s6) var(--grid-margin);
  max-width: var(--max-w); margin: 0 auto;
}
.section--full { max-width: 100%; padding-left: var(--grid-margin); padding-right: var(--grid-margin); }
.section--alt { background: var(--bg-alt); }

.deco {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.deco-shape {
  position: absolute;
  display: block;
  width: var(--shape-size, 180px);
  height: auto;
  opacity: 0;
  transform: translateY(42px) rotate(var(--shape-rot, 0deg)) scale(0.86);
  transform-origin: center;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.12));
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
}
.deco-shape.visible {
  opacity: var(--shape-opacity, 0.8);
  transform: translateY(0) rotate(var(--shape-rot-end, 0deg)) scale(1);
  filter: drop-shadow(0 14px 26px rgba(0,0,0,0.14));
}
.section > *:not(.deco),
.hero > *:not(.deco) {
  position: relative;
  z-index: 1;
}
.section-number,
.about__eyebrow {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent); margin-bottom: var(--s2);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px;
  background: rgba(21,101,192,0.08);
  border: 1px solid rgba(21,101,192,0.22);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.section-number:hover,
.about__eyebrow:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21,101,192,0.18);
}
.section-heading { margin-bottom: var(--s5); }
.divider { width: 100%; height: 2px; background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%); opacity: 0.45; }

/* =====================================================
   NAVIGATION
===================================================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 var(--grid-margin); height: 68px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: rgba(255,255,255,0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
nav.scrolled { border-bottom-color: var(--border); }
.nav-logo {
  justify-self: start;
  font-family: var(--sans); font-size: 22px; font-weight: 700; letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none; transition: color 0.25s var(--ease-out);
}
.nav-logo:hover { color: var(--accent); }
.nav-links { justify-self: center; display: flex; align-items: center; gap: var(--s4); list-style: none; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink-muted); text-decoration: none;
  position: relative; padding: 8px 10px; border-radius: var(--radius);
  transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 4px; left: 10px; right: 10px;
  height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: center;
  transition: transform 0.25s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); background: rgba(21,101,192,0.08); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  justify-self: end;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); text-decoration: none; border: 1px solid var(--border);
  padding: 8px 20px; border-radius: var(--radius); transition: all 0.2s;
}
.nav-cta:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(21,101,192,0.35); }

/* =====================================================
   HERO
===================================================== */
.hero {
  min-height: 100svh; padding-top: 68px;
  display: grid; grid-template-columns: repeat(12, 1fr);
  padding-left: var(--grid-margin); padding-right: var(--grid-margin);
  max-width: var(--max-w); margin: 0 auto; align-items: center;
}
.hero__content { grid-column: 1 / 7; padding: var(--s8) 0; }

.hero__name-wrap { overflow: hidden; margin-bottom: var(--s3); }
.hero__name-line {
  display: block; font-family: var(--sans); font-size: clamp(72px, 10vw, 140px);
  font-weight: 700; line-height: 0.9; letter-spacing: -0.035em;
  transform: translateY(110%); animation: slideUp 0.8s var(--ease-out) 0.1s forwards;
}
.hero__name-line:nth-child(2) { animation-delay: 0.25s; }

.hero__eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: var(--s2);
  transform: translateY(20px); opacity: 0; animation: fadeUp 0.7s var(--ease-out) 0.4s forwards;
}

.hero__role {
  font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 300; color: var(--ink-muted); margin-bottom: var(--s3);
  transform: translateY(20px); opacity: 0; animation: fadeUp 0.7s var(--ease-out) 0.55s forwards;
}
.hero__role em { color: var(--accent); }

.hero__bio {
  max-width: 560px; font-size: 16px; font-weight: 300; line-height: 1.8;
  color: var(--ink-muted); margin-bottom: var(--s3);
  text-align: justify; text-justify: inter-word; hyphens: none;
  word-spacing: 0.05em; letter-spacing: 0.01em;
  transform: translateY(20px); opacity: 0; animation: fadeUp 0.7s var(--ease-out) 0.7s forwards;
}
.hero__bio strong { font-weight: 600; color: var(--ink); }
.hero__bio a {
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}
.hero__bio a:hover {
  color: var(--accent-hover);
  text-decoration: none;
  transform: scale(1.02);
}

.hero__quote {
  font-family: var(--serif); font-style: italic; font-size: 16px; font-weight: 300;
  color: var(--ink-faint); margin-bottom: var(--s5);
  transform: translateY(20px); opacity: 0; animation: fadeUp 0.7s var(--ease-out) 0.78s forwards;
}

.hero__ctas {
  display: flex; gap: var(--s2); flex-wrap: wrap;
  transform: translateY(20px); opacity: 0; animation: fadeUp 0.7s var(--ease-out) 0.85s forwards;
}

.hero__visual {
  grid-column: 8 / 13; display: flex; flex-direction: column; align-items: center;
  gap: var(--s4); padding: var(--s6) 0;
  transform: translateY(20px); opacity: 0; animation: fadeUp 0.7s var(--ease-out) 1s forwards;
}
.hero__portrait {
  width: 100%; max-width: 400px; aspect-ratio: 4 / 5;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-dark);
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.08);
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.hero__portrait:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 44px rgba(21,101,192,0.18);
}
.hero__portrait-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 15%;
  display: block; filter: grayscale(10%) contrast(1.04);
  transition: transform 0.45s var(--ease-out), filter 0.35s var(--ease-out);
}
.hero__portrait:hover .hero__portrait-img {
  transform: scale(1.025);
  filter: grayscale(0%) contrast(1.04);
}
.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2);
  width: 100%; max-width: 520px;
}
.stat { text-align: center; min-width: 0; }
.stat__number { font-family: var(--sans); font-size: clamp(28px, 3.2vw, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stat__number .accent { color: var(--accent); }
.stat__label { font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-top: 6px; line-height: 1.3; }

/* =====================================================
   ABOUT / EDUCATION
===================================================== */
.about-grid { display: grid; grid-template-columns: 5fr 5fr; gap: var(--s8); align-items: start; }
.about__left { position: sticky; top: calc(68px + var(--s4)); }
.about__heading { font-family: var(--sans); font-size: clamp(36px, 4vw, 52px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin-bottom: var(--s5); }
.about__sub { font-size: 14px; color: var(--ink-faint); line-height: 1.6; margin-bottom: var(--s3); }

.edu-list { display: flex; flex-direction: column; gap: var(--s3); max-width: 36rem; }
.edu-item { display: grid; grid-template-columns: 28px 1fr; gap: var(--s2); padding: var(--s2) 0; align-items: start; border-bottom: 1px solid transparent; transition: border-color 0.4s var(--ease-out); }
.edu-item.reveal-edu { opacity: 0; transform: translateX(-28px) translateY(20px) scale(0.98); transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out); }
.edu-item.reveal-edu.visible { opacity: 1; transform: translateX(0) translateY(0) scale(1); border-bottom-color: var(--border); }
.edu-item__school.reveal-school { opacity: 0; transform: translateY(18px); display: inline-block; transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), color 0.35s; }
.edu-item__school.reveal-school.visible { opacity: 1; transform: translateY(0); }
.edu-item:last-child { border-bottom: none; }
.edu-item__num { font-family: var(--sans); font-size: 18px; font-weight: 700; color: var(--border-strong); padding-top: 2px; letter-spacing: -0.02em; }
.edu-item__school { font-weight: 700; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 4px; }
.edu-item__degree { font-size: 16px; color: var(--ink-muted); font-weight: 400; margin-bottom: 4px; }
.edu-item__meta { font-size: 13px; color: var(--ink-faint); font-family: var(--sans); letter-spacing: 0.02em; margin-bottom: 4px; }
.edu-item__gpa { font-size: 14px; color: var(--accent); font-weight: 600; letter-spacing: 0.01em; }

/* About photo */
.about__photo-wrap { display: flex; flex-direction: column; gap: var(--s5); margin-top: 56px; }
.about__photo-block { display: flex; flex-direction: column; gap: var(--s1); max-width: 480px; }
.about__photo-frame {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-alt);
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.06);
  transition: border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.about__photo-block:hover .about__photo-frame {
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(21,101,192,0.14);
  transform: translateY(-4px);
}
.about__photo-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 65%, rgba(21,101,192,0.10) 100%);
  opacity: 0; transition: opacity 0.35s var(--ease-out);
}
.about__photo-block:hover .about__photo-frame::after { opacity: 1; }
.about__photo {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  filter: grayscale(15%) contrast(1.05);
  transition: filter 0.35s var(--ease-out), transform 0.5s var(--ease-out);
}
.about__photo--cert {
  aspect-ratio: 3508 / 2481; object-fit: contain; background: #fff;
}
.about__photo-block:hover .about__photo { filter: grayscale(0%) contrast(1.05); transform: scale(1.02); }
.about__photo-block:hover .about__photo--cert { transform: none; }
.about__photo-caption {
  font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink-faint);
  line-height: 1.4; letter-spacing: 0.02em; text-align: center;
}

.about__right { display: flex; flex-direction: column; gap: var(--s5); }
.about__block { font-size: 16px; font-weight: 300; line-height: 1.8; color: var(--ink-muted); }
.about__block strong { font-weight: 600; color: var(--ink); }
.highlight-line { font-family: var(--sans); font-size: clamp(20px, 2.5vw, 28px); font-weight: 600; line-height: 1.4; letter-spacing: -0.015em; color: var(--ink); padding: var(--s3) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* =====================================================
   EXPERIENCES
===================================================== */
.exp-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: var(--s5); }
.timeline { position: relative; display: flex; flex-direction: column; gap: var(--s4); max-width: min(1100px, 100%); margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 23px; top: 0; bottom: 0; width: 1px; background: var(--border); }

.exp-item { display: grid; grid-template-columns: 48px 1fr; gap: var(--s4); align-items: start; padding: var(--s4) var(--s3); border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); cursor: pointer; overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s, transform 0.35s var(--ease-out); }
.exp-item__marker { width: 48px; height: 48px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg); flex-shrink: 0; transition: all 0.2s; }
.exp-item:hover { border-color: var(--accent); box-shadow: 0 10px 28px rgba(21,101,192,0.12); transform: translateY(-4px); }
.exp-item:hover .exp-item__marker { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px rgba(21,101,192,0.12); }
.exp-item:hover .exp-item__marker::after { content: '→'; font-size: 14px; color: var(--bg); font-weight: 600; }
.exp-item__marker svg { transition: opacity 0.2s; }
.exp-item:hover .exp-item__marker svg { display: none; }

.exp-item__header { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: 8px; }
.exp-item__title-group { display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; min-width: 0; }
.exp-item__actions { display: flex; align-items: center; gap: var(--s3); flex-shrink: 0; margin-left: auto; }
.exp-item__role { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.exp-item__org { font-size: 14px; color: var(--accent); font-weight: 400; }
.exp-item__date { font-size: 12px; color: var(--ink-faint); font-family: var(--sans); letter-spacing: 0.02em; white-space: nowrap; }
.exp-item__bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: min(52rem, 92%); padding-right: var(--s2); }
.exp-item__bullets li { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.65; color: var(--ink-muted); font-weight: 300; }
.exp-item__bullets li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.exp-item__link {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--bg); background: var(--accent); border: 1px solid var(--accent);
  text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 14px; border-radius: var(--radius); transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.exp-item__link:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.exp-item__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.exp-tag { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink-faint); }

/* Download CV · bigger button */
.btn-cv {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; font-family: var(--sans); font-size: 14px;
  font-weight: 600; letter-spacing: 0.04em; cursor: pointer;
  border-radius: var(--radius); transition: all 0.25s var(--ease-out);
  text-decoration: none; outline: none;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
}
.btn-cv:hover { background: var(--accent); border-color: var(--accent); }

/* Experience show-more button (Projects/Experiences collapse) */
.exp-show-more {
  position: relative; margin: -16px 0 0;
  display: flex; justify-content: center; align-items: center;
}
.exp-show-more::before,
.exp-show-more::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
  max-width: 220px;
}
.exp-show-more__btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 18px; padding: 10px 22px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: var(--bg);
  border: 1px solid var(--border); border-radius: 999px;
  cursor: pointer; transition: all 0.25s var(--ease-out);
}
.exp-show-more__btn:hover {
  color: var(--bg); background: var(--accent); border-color: var(--accent);
  transform: translateY(-2px); box-shadow: 0 4px 14px rgba(17, 17, 17, 0.10);
}
.exp-show-more__arrow {
  display: inline-block; transition: transform 0.3s var(--ease-out);
}

/* =====================================================
   PROJECTS
===================================================== */
#projects { padding-block: var(--s6); padding-top: var(--s5); }
.project-header,
.project-showcase { max-width: min(1180px, 100%); margin: 0 auto; }
.project-header h2 { margin-bottom: var(--s5); }
.project-showcase { display: flex; flex-direction: column; gap: var(--s4); }
.project-row { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); min-height: 0; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.3s; align-items: center; overflow: hidden; }
.project-row:hover { border-color: var(--accent); box-shadow: 0 12px 34px rgba(21,101,192,0.14); transform: translateY(-4px); }
.project-row[data-dir="left"] { direction: rtl; }
.project-row[data-dir="left"] > * { direction: ltr; }
.project-row__img {
  background: var(--bg-dark); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  width: 100%; align-self: stretch; min-height: 260px;
}
.project-row__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-row__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-row__img-placeholder { font-size: 13px; color: var(--ink-faint); letter-spacing: 0.1em; text-transform: uppercase; }

.project-slider { width: 100%; height: 100%; position: relative; overflow: hidden; }
.project-slider__track {
  display: flex; width: 100%; height: 100%;
  transition: transform 0.45s var(--ease-out);
}
.project-slider__slide {
  width: 100%; height: 100%; flex-shrink: 0; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-dark);
}
.project-slider__slide img,
.project-slider__slide video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.project-slider__slide-label {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55); pointer-events: none; white-space: nowrap;
}
.project-slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(244, 245, 247, 0.95); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; color: var(--ink);
  box-shadow: 0 2px 10px rgba(17, 17, 17, 0.12);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.project-slider__btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.project-slider__btn--prev { left: 10px; }
.project-slider__btn--next { right: 10px; }
.project-slider__dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.project-slider__dot {
  width: 6px; height: 6px; border-radius: 50%; padding: 0; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.4); transition: background 0.2s, transform 0.2s;
}
.project-slider__dot.is-active { background: #fff; transform: scale(1.15); }

.project-row__content { padding: var(--s5) var(--s6); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s3); }
.project-row__num {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--s2);
}
.project-row__title { font-family: var(--sans); font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: var(--s2); }
.project-row__desc { font-size: 14px; font-weight: 300; line-height: 1.65; color: var(--ink-muted); margin-bottom: var(--s3); flex: 1; max-width: 42rem; text-align: justify; text-justify: inter-word; hyphens: auto; }
.project-row__chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--s2); }
.chip {
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink-muted);
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  cursor: default;
}
.chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(21,101,192,0.18);
}
.project-row__links .btn-outline {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  padding: 8px 18px;
  font-size: 12px;
}
.project-row__links .btn-outline:hover {
  background: var(--ink); border-color: var(--ink); color: var(--bg);
  transform: translateY(-2px); box-shadow: 0 4px 14px rgba(17,17,17,0.12);
}

/* Project category sub-header */
.project-category {
  max-width: min(1180px, 100%);
  margin: 0 auto var(--s3);
}
.project-category__label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--border);
}

/* =====================================================
   PUBLICATIONS (inside Projects section)
===================================================== */
.pub-list { display: flex; flex-direction: column; gap: var(--s3); width: 100%; max-width: min(1180px, 100%); margin: 0 auto; }
.pub-card { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s3) var(--s4); width: 100%; transition: border-color 0.3s; display: grid; grid-template-columns: 40px 1fr; gap: var(--s2); align-items: start; }
.pub-card + .pub-card { margin-top: 0; }
.pub-card__num { font-family: var(--sans); font-size: 20px; font-weight: 700; color: var(--border-strong); letter-spacing: -0.02em; line-height: 1; padding-top: 6px; }
.pub-card__inner { min-width: 0; }
.pub-card:hover { border-color: var(--accent); }
.pub-card__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--s2); }
.pub-chip { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--radius); }
.pub-chip--status { background: rgba(21,101,192,0.10); color: var(--accent); }
.pub-chip--accepted { background: rgba(45,74,107,0.14); color: var(--accent); }
.pub-chip--venue { border: 1px solid var(--border); color: var(--ink-faint); }
.pub-chip--pending { border: 1px solid var(--border); color: var(--ink-faint); }
.pub-card__title { font-family: var(--sans); font-size: clamp(15px, 1.6vw, 19px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: var(--s2); }
.pub-card__authors { font-size: 13px; color: var(--ink-muted); margin-bottom: 6px; font-weight: 300; }
.pub-card__authors .me { font-weight: 600; color: var(--ink); }
.pub-card__affil { font-size: 11px; color: var(--ink-faint); font-family: var(--sans); letter-spacing: 0.02em; margin-bottom: var(--s2); }
.pub-card__desc { font-size: 13px; color: var(--ink-muted); font-weight: 300; line-height: 1.6; margin-bottom: var(--s2); }
.pub-card__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--s2); min-height: 30px; }
.pub-card__actions--empty { visibility: hidden; }
.pub-action { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid var(--accent); border-radius: var(--radius); color: var(--accent); font-size: 11px; font-weight: 600; text-decoration: none; transition: background 0.2s, color 0.2s, transform 0.2s; }
.pub-action:hover { background: var(--accent); color: var(--bg); transform: translateY(-2px); }
.pub-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 12px; padding: 4px 10px; background: var(--bg-alt); color: var(--ink-muted);
  border-radius: var(--radius); cursor: default;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.tag:hover { background: var(--accent); color: var(--bg); transform: translateY(-2px); }

/* =====================================================
   RECOGNITION
===================================================== */
.recog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: start; }
.recog-list { display: flex; flex-direction: column; gap: 14px; }
.recog-item {
  display: grid; grid-template-columns: 32px 1fr; gap: 14px;
  padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); align-items: start;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.recog-item:hover {
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 8px 20px rgba(21,101,192,0.12);
  transform: translateY(-3px);
}

.recog-item:hover .recog-item__proof {
  color: var(--bg);
  background: var(--accent);
}

.recog-item__num { font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--border-strong); padding-top: 1px; letter-spacing: -0.02em; }
.recog-item__title { font-size: 15px; font-weight: 700; margin-bottom: 3px; letter-spacing: -0.01em; }
.recog-item__desc { font-size: 13px; color: var(--ink-muted); font-weight: 400; margin-bottom: 10px; line-height: 1.5; max-width: 38rem; }
.recog-item__proof {
  font-size: 11px; font-weight: 600; color: var(--bg); background: var(--accent);
  border: 1px solid var(--accent); text-decoration: none; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.recog-item__proof:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Press / media coverage cards */
.press-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); align-content: start; }
.press-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s4);
  display: flex; flex-direction: column; gap: 6px;
  min-height: 260px;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.press-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(21,101,192,0.10);
}
.press-card__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
.press-card__tag {
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint); line-height: 1.3;
}
.press-card__logo { height: 22px; max-width: 72px; display: flex; align-items: center; flex-shrink: 0; }
.press-card__logo img { height: 100%; width: auto; max-width: 72px; object-fit: contain; object-position: right center; }
.press-card__title {
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  color: var(--ink); line-height: 1.35; letter-spacing: -0.015em;
}
.press-card__desc {
  font-size: 12px; color: var(--ink-muted); font-weight: 300;
  line-height: 1.5;
}
.press-card__link {
  font-size: 11px; font-weight: 600; color: var(--accent);
  text-decoration: none; letter-spacing: 0.04em; margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color 0.2s;
}
.press-card__link span { transition: transform 0.2s var(--ease-out); display: inline-block; }
.press-card__link:hover { color: var(--ink); }
.press-card__link:hover span { transform: translateX(3px); }

/* =====================================================
   FOOTER (minimal black background)
===================================================== */
footer {
  background: #111111;
  color: #F4F5F7;
  padding: clamp(48px, 7vw, 80px) var(--grid-margin) 28px;
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(320px, 2fr);
  gap: clamp(36px, 6vw, 88px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__logo {
  font-family: var(--sans);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #F4F5F7;
}

.footer__intro {
  max-width: none;
  margin-top: 12px;
  color: #858585;
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
}

.footer__contact {
  align-self: center;
}

.footer__contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px clamp(28px, 5vw, 72px);
}

.footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #F4F5F7;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__contact-item:hover { color: #8AA8C8; }

.footer__contact-label {
  color: #858585;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__contact-value {
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid #2A2A2A;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer__social a {
  display: flex;
  color: #858585;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer__social a:hover {
  color: #F4F5F7;
  transform: translateY(-2px);
}

.footer__social img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: invert(58%);
  transition: filter 0.2s ease;
}

.footer__social a:hover img {
  filter: invert(94%);
}

.footer__copyright {
  color: #666666;
  font-size: 11px;
  text-align: right;
}

/* =====================================================
   ANIMATIONS
===================================================== */
@keyframes slideUp { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.reveal { opacity: 0; transform: translateY(44px) scale(0.94); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out); filter: blur(3px); }
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.reveal.reveal-edu.visible { transform: translateX(0) translateY(0) scale(1); }
.reveal.reveal-flat { transform: translateY(28px) scale(0.98); }
.reveal.reveal-flat.visible { transform: translateY(0) scale(1); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1024px) {
  .hero__content { grid-column: 1 / 8; }
  .hero__visual   { grid-column: 8 / 13; }
}
@media (max-width: 900px) {
  :root { --grid-margin: clamp(20px, 5vw, 40px); --s9: 80px; --s8: 80px; }
  .deco-shape:nth-child(even) { display: none; }
  .nav-links { display: none; }
  .nav-cta    { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 120px; padding-bottom: var(--s7); }
  .hero__content { grid-column: 1; }
  .hero__visual { grid-column: 1; width: 100%; padding: var(--s5) 0 0; }
  .hero__portrait { max-width: 320px; margin: 0 auto; }
  .hero__stats { max-width: 100%; padding-top: var(--s4); border-top: 1px solid var(--border); }
  .about-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .about__left { position: static; }
  .about__photo-wrap { margin-top: var(--s3); }
  .project-row { grid-template-columns: 1fr; direction: ltr !important; }
  .project-row__img { min-height: 200px; }
  .project-row__content { padding: var(--s4); }
  .recog-grid { grid-template-columns: 1fr; }
  footer {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }
  .footer__contact { align-self: start; }
  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--s4);
  }
  .footer__copyright { text-align: left; }
}
@media (max-width: 600px) {
  .deco { display: none; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
  .press-grid { grid-template-columns: 1fr; }
  .project-row__links { flex-direction: column; }
  .hero__ctas { flex-direction: column; }
  .footer__contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  html { overflow-x: hidden; }
  body { overflow-x: hidden; }
  nav { height: 60px; padding-inline: 16px; }
  .nav-logo { font-size: 20px; }
  .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    font-size: 10px;
  }
  .hero { padding-top: 92px; }
  .hero__content { min-width: 0; }
  .hero__name-line { font-size: clamp(52px, 16vw, 82px); }
  .hero__bio { max-width: 100%; font-size: 15px; line-height: 1.7; text-align: left; word-spacing: normal; letter-spacing: 0; }
  .hero__ctas .btn { width: 100%; min-height: 44px; justify-content: center; }
  .section { padding-block: 52px; }
  .display-md { font-size: clamp(32px, 10vw, 48px); }
  .project-row__content { min-width: 0; padding: 28px 20px; }
  .project-row__title, .pub-card__title { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
  .project-row__desc, .pub-card__authors, .pub-card__affil { overflow-wrap: anywhere; }
  .project-row__links .btn { width: 100%; justify-content: center; min-height: 44px; }
  .project-slider__btn { width: 40px; height: 40px; }
  .project-slider__btn--prev { left: 8px; }
  .project-slider__btn--next { right: 8px; }
  .project-slider__dot { width: 10px; height: 10px; }
  .pub-card { grid-template-columns: 28px minmax(0, 1fr); padding: 20px 16px; gap: 10px; }
  .pub-card__chips { gap: 6px; }
  .pub-chip { font-size: 9px; padding: 5px 8px; }
  .pub-card__actions { min-height: 0; }
  .pub-card__actions--empty { display: none; }
  .pub-action { min-height: 40px; }
  .tag { font-size: 11px; }
  .recog-item { grid-template-columns: 28px minmax(0, 1fr); padding-inline: 14px; }
  .recog-item__proof, .exp-show-more__btn { min-height: 44px; }
  .footer__intro { white-space: normal; }
  .footer__contact-links { flex-direction: column; gap: 20px; }
  .footer__contact-item { min-height: 44px; justify-content: center; }
  .footer__social { gap: 24px; }
  .footer__social a { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .footer__copyright { line-height: 1.5; }
  .toast { bottom: 16px; }
  .certificate-modal__dialog { width: 100%; max-height: calc(100svh - 20px); }
  .certificate-modal__content { min-height: 0; }
  .certificate-modal__content iframe { height: 70svh; }
  .certificate-modal__content img { max-height: 70svh; }
}

/* =====================================================
   TOAST (under-development notice)
===================================================== */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: var(--bg);
  padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.22);
  opacity: 0; pointer-events: none; z-index: 999;
  max-width: calc(100vw - 32px); text-align: center;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.toast.is-visible {
  opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto;
}

/* =====================================================
   CERTIFICATE MODAL
===================================================== */
.certificate-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(26, 26, 26, 0.72);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s var(--ease-out), visibility 0.25s;
}
.certificate-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.certificate-modal__dialog {
  display: flex;
  flex-direction: column;
  width: min(100%, 1040px);
  max-height: min(92svh, 900px);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.35s var(--ease-out);
}
.certificate-modal.is-open .certificate-modal__dialog { transform: translateY(0) scale(1); }
.certificate-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.certificate-modal__title {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.certificate-modal__close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.certificate-modal__close:hover,
.certificate-modal__close:focus-visible {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
.certificate-modal__content {
  min-height: 0;
  overflow: hidden auto;
  background: var(--bg-alt);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}
.certificate-modal__content iframe {
  display: block;
  width: 100%;
  height: min(76svh, 760px);
  border: 0;
  background: var(--bg);
}
.certificate-modal__content img {
  display: block;
  width: 100%;
  max-height: min(76svh, 760px);
  object-fit: contain;
  background: #fff;
}
.certificate-modal__fallback {
  padding: var(--s5);
  color: var(--ink-muted);
  font-size: 14px;
  text-align: center;
}
body.certificate-modal-open { overflow: hidden; }

@media (max-width: 600px) {
  .certificate-modal { padding: 10px; }
  .certificate-modal__header { padding: 14px 16px; }
  .certificate-modal__content iframe { height: 76svh; }
  .certificate-modal__content img { max-height: 76svh; }
}
