/* Distinct minimal design: grid/noise background, bento cards, Calibri light weights */
:root{
  --bg: #0b0f17;
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --muted2: rgba(255,255,255,0.56);
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.10);
  --line: rgba(255,255,255,0.14);
  --shadow: 0 20px 70px rgba(0,0,0,0.40);
  --radius: 18px;
  --max: 1024px;
  --focus: rgba(255,255,255,0.28);
  --accentA: rgba(255,255,255,0.55);
  --accentB: rgba(255,255,255,0.12);
}

html[data-theme="light"]{
  --bg: #f6f7fb;
  --text: rgba(10,14,20,0.92);
  --muted: rgba(10,14,20,0.72);
  --muted2: rgba(10,14,20,0.56);
  --panel: rgba(0,0,0,0.06);
  --panel2: rgba(0,0,0,0.04);
  --border: rgba(0,0,0,0.10);
  --line: rgba(0,0,0,0.14);
  --shadow: 0 20px 70px rgba(0,0,0,0.12);
  --focus: rgba(0,0,0,0.22);
  --accentA: rgba(0,0,0,0.45);
  --accentB: rgba(0,0,0,0.10);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: Calibri, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}


/* Plasma background (adapted from CSS Plasma Background Generator) */
.plasma{
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
}
.plasma__wrapper{
  position: absolute;
  inset: 0;
  overflow: hidden;
  filter: blur(180px);
}
.plasma__gradient{
  position: absolute;
  border-radius: 100%;
  opacity: 0.60;
  mix-blend-mode: screen;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.1, 0, 0.9, 1);
}

/* Dark theme blobs */
.plasma__g1{
  background: rgb(125, 109, 148);
  width: 700px;
  height: 700px;
  animation-duration: 5s;
  opacity: 0.6;
  left: 60%;
  top: 40%;
  z-index: -2;
  animation-name: plasma-animation-1;
}
.plasma__g2{
  background: rgb(135, 119, 212);
  width: 600px;
  height: 600px;
  animation-duration: 5s;
  opacity: 0.6;
  left: 40%;
  top: 60%;
  z-index: -1;
  animation-name: plasma-animation-2;
}
.plasma__g3{
  background: rgb(160, 39, 49);
  width: 520px;
  height: 520px;
  animation-duration: 5s;
  opacity: 0.6;
  left: 50%;
  top: 50%;
  z-index: -3;
  animation-name: plasma-animation-3;
}

/* Light theme blobs (softer) */
html[data-theme="light"] .plasma__gradient{ opacity: 0.42; }
html[data-theme="light"] .plasma__g1{ background: rgb(180, 170, 210); }
html[data-theme="light"] .plasma__g2{ background: rgb(175, 185, 235); }
html[data-theme="light"] .plasma__g3{ background: rgb(230, 150, 155); }

@keyframes plasma-animation-1{
  0%   { transform: translateY(-50%) translateX(-50%) rotate(-20deg) translateX(20%); }
  25%  { transform: translateY(-50%) translateX(-50%) skew(-15deg, -15deg) rotate(80deg) translateX(30%); }
  50%  { transform: translateY(-50%) translateX(-50%) rotate(180deg) translateX(25%); }
  75%  { transform: translateY(-50%) translateX(-50%) skew(15deg, 15deg) rotate(240deg) translateX(15%); }
  100% { transform: translateY(-50%) translateX(-50%) rotate(340deg) translateX(20%); }
}
@keyframes plasma-animation-2{
  0%   { transform: translateY(-50%) translateX(-50%) rotate(40deg) translateX(-20%); }
  25%  { transform: translateY(-50%) translateX(-50%) skew(15deg, 15deg) rotate(110deg) translateX(-5%); }
  50%  { transform: translateY(-50%) translateX(-50%) rotate(210deg) translateX(-35%); }
  75%  { transform: translateY(-50%) translateX(-50%) skew(-15deg, -15deg) rotate(300deg) translateX(-10%); }
  100% { transform: translateY(-50%) translateX(-50%) rotate(400deg) translateX(-20%); }
}
@keyframes plasma-animation-3{
  0%   { transform: translateY(-50%) translateX(-50%) translateX(-15%) translateY(10%); }
  20%  { transform: translateY(-50%) translateX(-50%) translateX(20%) translateY(-30%); }
  40%  { transform: translateY(-50%) translateX(-50%) translateX(-25%) translateY(-15%); }
  60%  { transform: translateY(-50%) translateX(-50%) translateX(30%) translateY(20%); }
  80%  { transform: translateY(-50%) translateX(-50%) translateX(5%) translateY(35%); }
  100% { transform: translateY(-50%) translateX(-50%) translateX(-15%) translateY(10%); }
}

@media (prefers-reduced-motion: reduce){
  .plasma__gradient{ animation: none !important; }
  .plasma__wrapper{ filter: blur(140px); }
}



a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 4px; }
.container{ max-width: var(--max); margin: 0 auto; padding: 0 18px; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Header */
.header{
  position: sticky; top: 0; z-index: 120;
  backdrop-filter: blur(14px);
  background: rgba(11,15,23,0.56);
  border-bottom: 1px solid var(--border);
  transform: translateY(0);
  transition: transform 220ms ease, background 220ms ease;
}
html[data-theme="light"] .header{ background: rgba(246,247,251,0.78); }
.header--hidden{ transform: translateY(-110%); }

.header__inner{
  display:flex; align-items:center; justify-content:space-between; gap: 12px;
  padding: 12px 0;
}

.brand{
  display:flex; align-items:center; gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--panel2);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}
.brand__mark{
  width: 12px; height: 12px; border-radius: 6px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.25));
  box-shadow: 0 0 0 6px rgba(255,255,255,0.06);
}
html[data-theme="light"] .brand__mark{
  background: linear-gradient(135deg, rgba(10,14,20,0.85), rgba(10,14,20,0.20));
  box-shadow: 0 0 0 6px rgba(0,0,0,0.06);
}

.nav{ display:flex; align-items:center; gap: 10px; flex-wrap: wrap; justify-content:flex-end; }

.themeToggle{
  display:inline-flex; align-items:center; gap:10px;
  height: 38px; padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel2);
  cursor:pointer;
  transition: transform 160ms ease, background 160ms ease;
}
.themeToggle:hover{ transform: translateY(-1px); background: var(--panel); }
.themeToggle__icon{
  width: 18px; height: 18px; border-radius: 999px;
  border: 1px solid var(--accentA);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0.15) 60%),
    rgba(255,255,255,0.05);
  position: relative; overflow:hidden;
}
html[data-theme="light"] .themeToggle__icon{
  background:
    radial-gradient(circle at 35% 35%, rgba(10,14,20,0.85), rgba(10,14,20,0.10) 60%),
    rgba(0,0,0,0.02);
}
.themeToggle__icon::after{
  content:""; position:absolute; inset:-20%;
  background: conic-gradient(from 180deg, transparent, rgba(255,255,255,0.55), transparent);
  opacity: 0.45;
}
.themeToggle__label{ font-size: 14px; color: var(--muted); }

.nav__toggle{
  display:none;
  align-items:center; justify-content:center;
  width: 42px; height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel2);
  cursor:pointer;
}
.burger{ width: 18px; height: 2px; background: var(--text); position: relative; opacity: 0.85; }
.burger::before,.burger::after{ content:""; width:18px; height:2px; background: var(--text); position:absolute; left:0; opacity:0.85; }
.burger::before{ top:-6px; } .burger::after{ top:6px; }


.navOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45); /* dim only (no blur) */
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 110; /* below header/drawer */
}
html[data-theme="light"] .navOverlay{
  background: rgba(0,0,0,0.25);
}
.navOverlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

.nav__list{
  display:flex; align-items:center; gap: 8px;
  list-style:none; padding:0; margin:0;
  flex-wrap: wrap; justify-content:flex-end;
}
.nav__link{
  display:inline-flex; align-items:center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.nav__link:hover{ background: var(--panel2); border-color: var(--border); color: var(--text); text-decoration:none; }
.nav__link--active{ background: var(--panel); border-color: var(--border); color: var(--text); }

/* Sections */
.main{ padding-bottom: 24px; }
.section{ padding: 72px 0; position: relative; }
.section--alt{
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
html[data-theme="light"] .section--alt{
  background: rgba(0,0,0,0.02);
  border-top-color: rgba(0,0,0,0.06);
  border-bottom-color: rgba(0,0,0,0.06);
}
.section--hero{ padding-top: 86px; }

.section__head{
  display:flex; align-items:flex-end; justify-content:space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 18px;
}
.section__title{ margin:0; font-weight: 600; letter-spacing: 0.3px; font-size: clamp(24px, 3.2vw, 36px); }
.section__subtitle{ margin:0; color: var(--muted2); max-width: 60ch; }

/* Hero */
.hero{ display:flex; gap: 22px; align-items: stretch; flex-wrap: wrap; }
.hero__left{ flex: 1 1 560px; min-width: 280px; }
.hero__right{ flex: 0 1 340px; min-width: 240px; display:flex; justify-content:flex-end; align-items:center; }
.kicker{ margin:0 0 6px; color: var(--muted2); letter-spacing: 0.3px; }
.hero__title{ margin: 0 0 8px; font-weight: 700; letter-spacing: 0.4px; font-size: clamp(34px, 4.3vw, 48px); }
.hero__subtitle{ margin: 0 0 12px; color: var(--muted); font-size: clamp(16px, 2vw, 18px); }
.hero__desc{ margin: 0 0 18px; color: var(--muted); max-width: 70ch; }
.hero__cta{ display:flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.hero__quick{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

.pill{
  display:inline-flex; align-items:center; gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--panel2);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: transform 160ms ease, background 160ms ease;
}
.pill:hover{ transform: translateY(-1px); background: var(--panel); text-decoration:none; }
.pill svg{ width: 16px; height: 16px; opacity: 0.9; }

.portrait{
  width: min(320px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 100%;
  background: var(--panel2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  position: relative;
}
.portrait img{
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,0.30));
}
.portrait__ring{
  position:absolute; inset:-45%;
  background: conic-gradient(from 180deg, transparent, rgba(255,255,255,0.35), transparent);
  opacity: 0.35;
  filter: blur(10px);
  transform: rotate(18deg);
  pointer-events:none;
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  cursor:pointer;
  transition: transform 160ms ease, background 160ms ease;
}
.btn:hover{ transform: translateY(-1px); background: var(--panel); text-decoration:none; }
.btn--primary{ background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.18); }
html[data-theme="light"] .btn--primary{ background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.18); }
.btn--ghost{ background: transparent; }

/* Timeline v4: split meta vs detail (NO maps) */
.timeline2{ position: relative; padding: 10px 0; margin-top: 8px; }
.timeline2::before{
  content:""; position:absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: var(--line); transform: translateX(-50%);
}
.tRow{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
}
.tMid{ position: relative; display:flex; justify-content:center; }
.tPin{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  position: relative;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
html[data-theme="light"] .tPin{
  border-color: rgba(0,0,0,0.16);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
/* Concentric rings + neon center */
.tPin::before{
  content:"";
  position:absolute;
  inset: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
html[data-theme="light"] .tPin::before{
  border-color: rgba(0,0,0,0.18);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}
.tPin::after{
  content:"";
  position:absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255,255,255,0.90);
  box-shadow:
    0 0 0 6px rgba(255,255,255,0.06),
    0 0 18px rgba(255,255,255,0.35);
}
html[data-theme="light"] .tPin::after{
  background: rgba(10,14,20,0.85);
  box-shadow:
    0 0 0 6px rgba(0,0,0,0.05),
    0 0 16px rgba(0,0,0,0.18);
}

.tCol{ min-width: 0; display:flex; }
.tCol--meta{ justify-content:flex-end; }
.tCol--detail{ justify-content:flex-start; }

.tRow.is-even .tCol--meta{ order: 3; justify-content:flex-start; }
.tRow.is-even .tCol--detail{ order: 1; justify-content:flex-end; }
.tRow.is-even .tMid{ order: 2; }

.tCard{
  width: min(470px, 100%);
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 14px 14px 12px;
}

.tMetaTop{
  display:flex; align-items:center; justify-content:space-between; gap: 10px;
  flex-wrap: wrap;
}
.tLogoLine{ display:flex; align-items:center; gap: 10px; }
.tLogo{
  width: 56px; height: 56px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  overflow:hidden;
  flex: 0 0 56px;
}
html[data-theme="light"] .tLogo{ background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.10); }
.tLogo img{ width:100%; height:100%; object-fit: cover; }

.tCompanyName{ margin: 0; font-weight: 800; font-size: 16px; letter-spacing: 0.2px; }
.tLocation{ margin: 4px 0 0; color: var(--muted2); font-size: 13px; }
.tYears{ color: var(--muted2); font-size: 13px; white-space: nowrap; }

.tRole{ margin: 0 0 6px; font-weight: 900; font-size: 18px; letter-spacing: 0.2px; }
.tTeam{ margin: 0 0 10px; color: var(--muted); }
.tDesc{ margin: 0 0 10px; color: var(--muted); }
.tBullets{ margin: 0; padding-left: 18px; color: var(--muted); }
.tBullets li{ margin: 4px 0; }


/* Work mobile merge: company strip inside detail card */
.tCompanyStrip{
  display: none; /* desktop: hidden (meta card already shows company) */
  align-items:center;
  gap: 10px;
  padding: 10px 10px 12px;
  margin: -6px -6px 10px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
html[data-theme="light"] .tCompanyStrip{
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}
.tStripLogo{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  flex: 0 0 44px;
  display:flex;
  align-items:center;
  justify-content:center;
}
html[data-theme="light"] .tStripLogo{
  border-color: rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.04);
}
.tStripLogo img{ width: 100%; height: 100%; object-fit: cover; }
.tStripCompany{ font-weight: 800; letter-spacing: 0.2px; }
.tStripMeta{ color: var(--muted2); font-size: 13px; margin-top: 2px; }

/* Skills */
.skillGrid{ display:flex; gap: 14px; flex-wrap: wrap; }
.skillGroup{
  flex: 1 1 320px; min-width: 260px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 18px 46px rgba(0,0,0,0.14);
}
.skillGroup__title{ margin: 0 0 12px; font-weight: 700; }
.skillRow{
  display:flex; align-items:center; justify-content:space-between; gap: 12px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid transparent;
}
.skillRow:hover{ background: var(--panel); border-color: var(--border); }
.skillName{ color: var(--muted); }
.rating{ display:flex; gap: 6px; align-items:center; }
.dot{ width: 9px; height: 9px; border-radius: 999px; background: var(--accentB); border: 1px solid var(--accentB); }
.dot--on{ background: var(--text); border-color: var(--text); }

/* Cards */
.cards{ display:flex; flex-wrap: wrap; gap: 14px; }
.card{
  flex: 1 1 310px; min-width: 260px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card--pad{ padding: 14px; }
.card__img{
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display:flex; align-items:center; justify-content:center;
}
html[data-theme="light"] .card__img{ background: rgba(0,0,0,0.03); border-bottom-color: rgba(0,0,0,0.08); }
.card__img img{ width:100%; height:100%; object-fit: cover; opacity: 0.96; }
.card__body{ padding: 14px; }
.card__title{ margin: 0 0 6px; font-weight: 700; }
.card__subtitle{ margin: 0 0 10px; color: var(--muted2); }
.card__desc{ margin: 0; color: var(--muted); }
.card__links{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* Education */
.eduGrid{ display:flex; flex-wrap: wrap; gap: 14px; }
.eduItem{
  flex: 1 1 330px; min-width: 260px;
  display:flex; gap: 12px; align-items:flex-start;
  padding: 14px;
  border-radius: 22px;
  background: var(--panel2);
  border: 1px solid var(--border);
  box-shadow: 0 18px 46px rgba(0,0,0,0.14);
}
.eduLogo{
  width: 56px; height: 56px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  flex: 0 0 56px;
}
html[data-theme="light"] .eduLogo{ background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.10); }
.eduLogo img{ width: 100%; height: 100%; object-fit: cover; }
.eduTitle{ margin: 0; font-weight: 700; }
.eduMeta{ margin: 2px 0 0; color: var(--muted2); }
.eduDesc{ margin: 8px 0 0; color: var(--muted); }

/* Contact */
.contact{ display:flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.contact__left{ flex: 1 1 360px; min-width: 260px; }
.contact__right{ flex: 1 1 420px; min-width: 280px; }
.contactCards{ display:flex; flex-direction: column; gap: 12px; }
.contactCard{
  display:flex; gap: 12px; align-items:flex-start;
  padding: 14px;
  border-radius: 22px;
  background: var(--panel2);
  border: 1px solid var(--border);
  box-shadow: 0 18px 46px rgba(0,0,0,0.14);
}
.contactIcon{
  width: 44px; height: 44px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  display:flex; align-items:center; justify-content:center;
  flex: 0 0 44px;
}
html[data-theme="light"] .contactIcon{ background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.10); }
.contactIcon svg{ width: 18px; height: 18px; opacity: 0.95; }
.contactLabel{ margin: 0; font-weight: 700; }
.contactValue{ margin: 2px 0 0; color: var(--muted); word-break: break-word; }
.contactValue a{ color: var(--text); text-decoration:none; }
.contactValue a:hover{ text-decoration: underline; }

.form{ display:flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.field{ display:flex; flex-direction: column; gap: 6px; }
.field__label{ color: var(--muted2); font-size: 14px; }
.field__input{
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  outline: none;
}
html[data-theme="light"] .field__input{ background: rgba(0,0,0,0.03); }
.field__input:focus{ border-color: var(--focus); box-shadow: 0 0 0 4px rgba(255,255,255,0.06); }
html[data-theme="light"] .field__input:focus{ box-shadow: 0 0 0 4px rgba(0,0,0,0.06); }
.field__input--area{ resize: vertical; min-height: 120px; }
.hint{ margin: 8px 0 0; color: var(--muted2); font-size: 13px; }

/* Footer */
.footer{ padding: 26px 0 8px; color: var(--muted2); }
.footer__inner{
  display:flex; justify-content:space-between; align-items:center; gap: 10px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
}
html[data-theme="light"] .footer__inner{ border-top-color: rgba(0,0,0,0.08); }

/* Mobile */
@media (max-width: 740px){

  /* About stack centering (stronger) */
  .hero{ justify-content: center; }
  .hero__left, .hero__right{ width: 100%; }
  .hero__right{ justify-content: center !important; }
  .portrait{ margin-left: auto; margin-right: auto; }

  /* About stack centering */
  .hero__left{ text-align: center; }
  .hero__cta{ justify-content: center; }
  .hero__quick{ justify-content: center; }
  .hero__right{ justify-content: center; }
  .portrait{ margin: 0 auto; }

  .nav__toggle{ display:inline-flex; }
  .nav__list{
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(82vw, 340px);
    padding: 72px 14px 18px;
    margin: 0;
    list-style: none;
    display: flex;              /* always flex; hidden via transform */
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
    background: rgba(11,15,23,0.78);
    border-left: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 90px rgba(0,0,0,0.55);
    transform: translateX(110%);
    transition: transform 220ms ease;
    z-index: 130;
  }
  html[data-theme="light"] .nav__list{
    background: rgba(246,247,251,0.88);
    border-left-color: rgba(0,0,0,0.10);
    box-shadow: 0 30px 90px rgba(0,0,0,0.18);
  }
  .nav__list.is-open{ transform: translateX(0); }
  .nav__link{ width: 100%; justify-content: flex-start; font-size: 16px; padding: 12px 14px; }
.header__inner{ flex-wrap: wrap; }

  /* Timeline: stack with job title first, description second, meta after */
  .timeline2::before{ left: 16px; transform:none; }
  .tRow{ grid-template-columns: 34px 1fr; gap: 10px; }
  .tMid{ grid-column: 1; }
  .tCol--detail, .tCol--meta{ grid-column: 2; justify-content:flex-start; }
  .tCol--detail{ order: 1; }
  .tCol--meta{ order: 2; }

  .tCol--detail, .tCol--meta{ justify-content:flex-start !important; }
  .tCard{ width: 100%; }

  /* Work mobile: single card (merged) */
  .tCol--meta{ display: none; }
  .tRow{ grid-template-columns: 34px 1fr; }
  .tCol--detail{ grid-column: 2; justify-content:flex-start !important; }
  .tCompanyStrip{ display: flex; }
  .timeline2::before{ left: 16px; transform:none; }


  /* Timeline marker alignment (mobile) */
  .timeline2::before{ left: 20px !important; }
  .tRow{ grid-template-columns: 40px 1fr !important; }
  .tMid{ justify-content: center !important; }
  .tPin{
    width: 28px !important;
    height: 28px !important;
  }
  .tPin::before{ inset: 5px !important; }
  .tPin::after{
    width: 8px !important;
    height: 8px !important;
  }


  /* Timeline mobile layout: marker perfectly centered on the line */
  .timeline2{ position: relative; }
  .timeline2::before{ left: 22px !important; transform: none !important; }

  .tRow{
    display: block !important;
    position: relative !important;
    padding-left: 56px !important;
  }
  .tMid{
    position: absolute !important;
    left: 22px !important;
    top: 22px !important;
    width: 0 !important;
  }
  .tPin{
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    transform: translate(-50%, -50%) !important;
    width: 28px !important;
    height: 28px !important;
  }
  .tPin::before{ inset: 5px !important; }
  .tPin::after{ width: 8px !important; height: 8px !important; }

  .tCol--detail{ width: 100% !important; }


}
