/* =========================================================
   Sahebjamee — site styles
   ========================================================= */
:root {
  --ink: #0d1826;
  --ink-2: #3d4b5c;
  --ink-3: #6b7889;
  --paper: #f6f7f9;
  --paper-2: #eceff4;
  --line: #dde2ea;
  --night: #07111c;
  --night-2: #0d1d2e;
  --night-line: rgba(255, 255, 255, .1);
  --on-night: #eef3f9;
  --on-night-2: #a8b6c7;
  --azure: #2f6bff;
  --sky: #5cc8ff;
  --grad: linear-gradient(120deg, var(--sky), var(--azure));
  --radius: 18px;
  --wrap: 1200px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --slide-dur: 7s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(90deg); }
.brand__word { font-family: var(--sans); font-size: .98rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: #fff; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.22); line-height: 1.1; }
.brand--sm .brand__mark { width: 22px; height: 22px; }
.brand--sm .brand__word { font-size: .82rem; padding-left: 10px; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav.is-scrolled { background: rgba(7, 17, 28, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--night-line); }
.nav__menu ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__menu a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--on-night-2); text-decoration: none; font-size: .93rem; font-weight: 500; transition: color .2s, background .2s; }
.nav__menu a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav__menu a.is-current { color: #fff; }
.nav__menu .nav__cta { color: #fff; background: var(--grad); margin-left: 8px; }
.nav__menu .nav__cta:hover { background: var(--grad); filter: brightness(1.1); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: rgba(255,255,255,.08); border-radius: 12px; position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.actions--center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, background .25s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { color: #fff; background: var(--grad); box-shadow: 0 10px 30px -10px rgba(47, 107, 255, .7); }
.btn--primary:hover { box-shadow: 0 16px 36px -10px rgba(47, 107, 255, .85); }
.btn--glass { color: #fff; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255,255,255,.13); }

/* ---------- Type helpers ---------- */
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); margin-bottom: 18px; }
.display { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; font-size: clamp(2.3rem, 4.8vw, 3.9rem); line-height: 1.04; }
.phd { color: var(--on-night-2); font-weight: 400; }

/* =========================================================
   Hero slider
   ========================================================= */
.slider { position: relative; background: var(--night); color: var(--on-night); overflow: hidden; isolation: isolate; }
.slider__track { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.slide { grid-area: 1 / 1; position: relative; min-height: max(560px, min(80svh, 720px)); display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s .9s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease), visibility 0s; z-index: 1; }
.slide__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding-top: 96px; padding-bottom: 104px; }
.slide__copy { max-width: 620px; min-width: 0; }
.slide__inner > * { min-width: 0; }
.slide__role { margin-top: 18px; font-size: 1.15rem; font-weight: 500; color: #fff; }
.slide__lede { margin-top: 16px; font-size: 1.08rem; color: var(--on-night-2); max-width: 54ch; }

/* staged entrance of slide content */
.slide .slide__copy > *, .slide .portrait, .slide .photo-card, .slide .badge-orbit {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .9s var(--ease);
}
.slide.is-active .slide__copy > * , .slide.is-active .portrait, .slide.is-active .photo-card, .slide.is-active .badge-orbit { opacity: 1; transform: none; }
.slide.is-active .slide__copy > :nth-child(1) { transition-delay: .15s; }
.slide.is-active .slide__copy > :nth-child(2) { transition-delay: .25s; }
.slide.is-active .slide__copy > :nth-child(3) { transition-delay: .35s; }
.slide.is-active .slide__copy > :nth-child(4) { transition-delay: .45s; }
.slide.is-active .slide__copy > :nth-child(5) { transition-delay: .55s; }
.slide.is-active .portrait, .slide.is-active .photo-card, .slide.is-active .badge-orbit { transition-delay: .3s; transition-duration: 1.1s; }

/* backgrounds */
.slide__bg { position: absolute; inset: 0; z-index: 0; }
.slide__bg--grid {
  background:
    radial-gradient(60% 70% at 75% 45%, rgba(47,107,255,.32), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(92,200,255,.12), transparent 70%),
    linear-gradient(var(--night), var(--night-2));
}
.slide__bg--grid::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 80%);
}
.slide__bg--photo { background: url("assets/img/office.jpg") center / cover no-repeat; filter: blur(28px) brightness(.45) saturate(1.2); transform: scale(1.2); }
.slide__bg--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,17,28,.95) 0%, rgba(7,17,28,.6) 60%, rgba(7,17,28,.4)); }
.slide__bg--glow {
  background:
    radial-gradient(45% 55% at 72% 50%, rgba(47,107,255,.35), transparent 70%),
    radial-gradient(30% 35% at 88% 20%, rgba(238,58,90,.18), transparent 70%),
    linear-gradient(160deg, #081320, #0b1a2c 60%, #07111c);
}

/* portrait (slide 1) */
.portrait { position: relative; margin: 0; align-self: end; justify-self: center; width: min(100%, 380px); margin-bottom: -104px; }
.portrait > img { position: relative; z-index: 1; width: 100%; height: auto; mask-image: linear-gradient(#000 90%, transparent 100%); -webkit-mask-image: linear-gradient(#000 90%, transparent 100%); filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)); }
.portrait__halo { position: absolute; left: 50%; top: 8%; width: 92%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 50% 45%, rgba(92,200,255,.35), rgba(47,107,255,.18) 45%, transparent 70%); box-shadow: inset 0 0 0 1px rgba(92,200,255,.25); }
.portrait__halo::after { content: ""; position: absolute; inset: -9%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.14); animation: spin 60s linear infinite; }
.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 16px; background: rgba(13, 29, 46, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 20px 40px -20px rgba(0,0,0,.6); font-size: .78rem; line-height: 1.3; color: var(--on-night-2); margin: 0; animation: float 6s ease-in-out infinite; }
.chip strong { display: block; color: #fff; font-size: .9rem; }
.chip__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(92,200,255,.14); box-shadow: inset 0 0 0 1px rgba(92,200,255,.3); }
.chip__icon svg { width: 18px; height: 18px; fill: none; stroke: var(--sky); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip__num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 700; font-size: .95rem; }
.chip--l { left: -30%; top: 64%; }
.chip--r { right: -12%; top: 66%; animation-delay: -2s; }
.chip--c { left: -12%; top: 82%; animation-delay: -4s; }

/* photo card (slide 2) */
.photo-card { margin: 0; justify-self: end; width: min(100%, 500px); border-radius: 26px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.1); aspect-ratio: 1; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.slide--approach.is-active .photo-card img { animation: kenburns 14s ease-out both; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 34px 0 0; padding-top: 26px; border-top: 1px solid var(--night-line); }
.stats dt { font-family: var(--serif); font-size: 2.3rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dd { margin: 8px 0 0; font-size: .86rem; color: var(--on-night-2); line-height: 1.45; }

/* badge orbit (slide 3) */
.badge-orbit { position: relative; justify-self: center; width: min(100%, 460px); aspect-ratio: 1; }
.badge-orbit::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 60px rgba(255,255,255,.015), 0 0 0 120px rgba(255,255,255,.01); }
.bo { position: absolute; height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); animation: float 7s ease-in-out infinite; }
.bo--1 { width: 44%; left: 28%; top: 26%; }
.bo--2 { width: 30%; left: 2%;  top: 8%;  animation-delay: -1.5s; }
.bo--3 { width: 27%; right: 2%; top: 4%;  animation-delay: -3s; }
.bo--4 { width: 25%; left: 8%;  bottom: 6%; animation-delay: -4.5s; }
.bo--5 { width: 25%; right: 6%; bottom: 10%; animation-delay: -2.2s; }

/* slider controls */
.slider__ui { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 5; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.slider__dots { display: flex; gap: 22px; flex: 1; max-width: 620px; }
.dot { flex: 1; border: 0; background: none; padding: 8px 0; text-align: left; color: var(--on-night-2); }
.dot__label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; transition: color .3s; }
.dot.is-active .dot__label, .dot:hover .dot__label { color: #fff; }
.dot__bar { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.16); overflow: hidden; }
.dot__bar i { display: block; height: 100%; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.dot.is-done .dot__bar i { transform: scaleX(1); opacity: .45; }
.dot.is-active .dot__bar i { animation: progress var(--slide-dur) linear forwards; }
.slider.is-paused .dot.is-active .dot__bar i { animation-play-state: paused; }
.slider.no-auto .dot.is-active .dot__bar i { animation: none; transform: scaleX(1); }
.slider__arrows { display: flex; gap: 10px; }
.arrow { display: grid; place-items: center; width: 50px; height: 50px; border: 0; border-radius: 50%; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); transition: background .2s, transform .2s; }
.arrow:hover { background: rgba(255,255,255,.16); transform: scale(1.05); }
.arrow svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arrow .i-play { display: none; fill: #fff; stroke: none; }
.slider.is-stopped .arrow .i-play { display: block; }
.slider.is-stopped .arrow .i-pause { display: none; }

@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 120px 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--night); color: var(--on-night); }
.section__head { margin-bottom: 48px; }
.kicker { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--azure); margin-bottom: 14px; }
.section--dark .kicker { color: var(--sky); }
.section__title { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: -.02em; }
.section__sub { margin-top: 14px; color: var(--on-night-2); max-width: 52ch; }
.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.split .section__head { margin: 0; position: sticky; top: 110px; align-self: start; }

.prose p + p { margin-top: 18px; }
.prose p { color: var(--ink-2); }
.prose .prose__lead { font-family: var(--serif); font-size: 1.5rem; line-height: 1.45; color: var(--ink); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; padding: 32px 28px; background: #fff; border-radius: var(--radius); box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line); transition: transform .35s var(--ease), box-shadow .35s; overflow: hidden; }
.card::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), 0 28px 50px -28px rgba(13,24,38,.35); }
.card:hover::after { transform: scaleX(1); }
.card__icon { width: 46px; height: 46px; padding: 11px; border-radius: 13px; background: linear-gradient(135deg, rgba(92,200,255,.18), rgba(47,107,255,.14)); fill: none; stroke: var(--azure); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: .96rem; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline > li { position: relative; padding: 0 0 44px 34px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--azure); }
.timeline > li:first-child::before { background: var(--azure); box-shadow: 0 0 0 6px rgba(47,107,255,.15); }
.timeline__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 8px; }
.timeline h3 { font-size: 1.3rem; font-family: var(--serif); font-weight: 500; }
.when { font-size: .85rem; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.role + .role { margin-top: 18px; }
.role__title { font-weight: 600; margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.timeline p, .timeline li li { color: var(--ink-2); font-size: .97rem; }
.timeline ul { margin: 0; padding-left: 18px; }
.timeline ul li + li { margin-top: 4px; }

/* certifications */
.section__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { border: 0; padding: 9px 16px; border-radius: 999px; font-size: .88rem; font-weight: 500; background: rgba(255,255,255,.06); color: var(--on-night-2); box-shadow: inset 0 0 0 1px var(--night-line); transition: background .2s, color .2s; }
.filter span { opacity: .6; margin-left: 4px; }
.filter:hover { color: #fff; }
.filter.is-on { background: #fff; color: var(--night); }
.certs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.cert { position: relative; display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 20px; padding: 22px 22px 22px 18px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); box-shadow: inset 0 0 0 1px var(--night-line); transition: transform .35s var(--ease), box-shadow .35s, background .35s; }
.cert:hover { transform: translateY(-4px); background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); box-shadow: inset 0 0 0 1px rgba(92,200,255,.35), 0 30px 50px -30px rgba(0,0,0,.8); }
.cert.is-hidden { display: none; }
.cert__badge { position: relative; display: grid; place-items: center; width: 104px; height: 104px; }
.cert__badge::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: radial-gradient(circle, rgba(92,200,255,.28), transparent 70%); }
.cert--biz .cert__badge::before { background: radial-gradient(circle, rgba(238,58,90,.25), transparent 70%); }
.cert__badge img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); transition: transform .5s var(--ease); }
.cert:hover .cert__badge img { transform: scale(1.07) rotate(-3deg); }
.cert__level { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-bottom: 6px; }
.cert--biz .cert__level { color: #ff8a8f; }
.cert--fund .cert__level { color: #9fb6ff; }
.cert--legacy .cert__level { color: var(--on-night-2); }
.cert h3 { font-size: 1.04rem; line-height: 1.35; color: #fff; padding-right: 54px; }
.cert__meta { margin-top: 8px; font-size: .84rem; color: var(--on-night-2); }
.cert__status { position: absolute; top: 18px; right: 18px; font-size: .7rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(110, 231, 160, .14); color: #8ff0b5; box-shadow: inset 0 0 0 1px rgba(110,231,160,.3); }

.edu { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--night-line); }
.edu__label { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-2); margin-bottom: 16px; }
.edu__label:not(:first-child) { margin-top: 32px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 14px 0; border-bottom: 1px solid var(--night-line); }
.list li:first-child { padding-top: 0; }
.list strong { display: block; font-weight: 500; color: #fff; }
.list span { font-size: .88rem; color: var(--on-night-2); }
.langs { color: var(--on-night); }
.recog { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.recog li { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--night-line); }
.recog img { width: 56px; height: 56px; flex: none; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.4)); }
.recog strong { display: block; font-weight: 500; color: #fff; line-height: 1.35; }
.recog span { font-size: .86rem; color: var(--on-night-2); }

/* contact */
.contact { position: relative; overflow: hidden; padding: 130px 0; text-align: center; color: var(--on-night); background: radial-gradient(60% 80% at 50% 110%, rgba(47,107,255,.45), transparent 70%), linear-gradient(var(--night-2), var(--night)); border-top: 1px solid var(--night-line); }
.contact__inner { max-width: 720px; }
.contact__mark { width: 52px; height: 52px; margin: 0 auto 26px; filter: drop-shadow(0 14px 30px rgba(47,107,255,.55)); }
.contact p { margin-top: 18px; color: var(--on-night-2); font-size: 1.08rem; }

/* footer */
.footer { background: var(--night); color: var(--on-night-2); font-size: .86rem; border-top: 1px solid var(--night-line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 26px; padding-bottom: 26px; }

/* scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split .section__head { position: static; }
  .slide__inner { grid-template-columns: 1fr 1fr; }
  .chip--l { left: -12%; } .chip--r { right: -10%; } .chip--c { left: -4%; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav__toggle { display: block; }
  .nav__menu { position: fixed; inset: 76px 16px auto; padding: 12px; border-radius: 18px; background: rgba(9, 20, 33, .96); backdrop-filter: blur(16px); box-shadow: 0 0 0 1px var(--night-line), 0 30px 60px -20px rgba(0,0,0,.7); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav__menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__menu ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__menu a { padding: 12px 14px; font-size: 1rem; }
  .nav__menu .nav__cta { margin: 6px 0 0; text-align: center; }
  .nav.menu-open { background: rgba(7,17,28,.95); }

  .slide { min-height: 0; align-items: flex-start; }
  .slide__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 104px; padding-bottom: 120px; }
  .portrait { width: min(78%, 340px); margin-bottom: 0; }
  .slide--intro .slide__inner { padding-bottom: 96px; }
  .photo-card { justify-self: stretch; width: 100%; aspect-ratio: 4 / 3; }
  .badge-orbit { width: min(100%, 340px); }
  .stats { gap: 12px; }
  .stats dt { font-size: 1.8rem; }
  .slider__ui { bottom: 22px; align-items: center; }
  .slider__dots { gap: 10px; }
  .dot__label { display: none; }
  .arrow { width: 44px; height: 44px; }
  .section { padding: 84px 0; }
  .cards { grid-template-columns: 1fr; }
  .certs { grid-template-columns: 1fr; }
  .edu { grid-template-columns: 1fr; gap: 0; }
  .edu > div + div { margin-top: 44px; }
  .chip--l { left: -10%; top: 58%; } .chip--r { right: -10%; top: 71%; } .chip--c { left: -6%; top: 84%; }
  .contact { padding: 96px 0; }
}

@media (max-width: 480px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .display { font-size: 2.2rem; }
  .chip { font-size: .7rem; padding: 7px 12px 7px 7px; }
  .chip__icon, .chip__num { width: 28px; height: 28px; }
  .chip strong { font-size: .8rem; }
  .cert { grid-template-columns: 78px 1fr; gap: 14px; padding: 18px 16px 18px 12px; }
  .cert__badge { width: 78px; height: 78px; }
  .cert h3 { font-size: .98rem; padding-right: 0; }
  .cert__status { position: static; grid-column: 2; justify-self: start; margin-top: -6px; }
  .stats dd { font-size: .78rem; }
  .actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}

/* 404 page */
.contact--page { min-height: 100svh; display: grid; place-items: center; }
.brand--center { justify-content: center; margin-bottom: 40px; }
