/* ═══════════════════════════════════════════
   Abhishek Sharma — Portfolio
   Design language inspired by deepseek.com:
   clean white, signature blue #4D6BFE,
   soft ambient glows, gentle motion
   ═══════════════════════════════════════════ */

:root {
  --blue: #4D6BFE;
  --blue-deep: #2E4BDB;
  --blue-soft: #EEF1FE;
  --ink: #16181F;
  --ink-2: #4A4F5C;
  --ink-3: #8A8F9C;
  --bg: #FBFBFD;
  --card: #FFFFFF;
  --line: rgba(22, 24, 31, 0.08);
  --shadow-sm: 0 2px 8px rgba(22, 24, 31, 0.05);
  --shadow-md: 0 8px 30px rgba(22, 24, 31, 0.08);
  --shadow-lg: 0 20px 60px rgba(77, 107, 254, 0.15);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(77, 107, 254, 0.18); }

/* ── ambient background ── */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}
.bg-glow-1 {
  width: 55vw; height: 55vw;
  top: -20vw; right: -15vw;
  background: radial-gradient(circle, rgba(77,107,254,0.16), transparent 65%);
}
.bg-glow-2 {
  width: 45vw; height: 45vw;
  bottom: -15vw; left: -12vw;
  background: radial-gradient(circle, rgba(124,92,255,0.12), transparent 65%);
  animation-delay: -9s;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-4vw, 3vw) scale(1.12); }
}

#hero3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-scroll { position: relative; z-index: 1; }

/* ── nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(251, 251, 253, 0.75);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 1.05rem;
}
.logo-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), #7C5CFF);
  color: #fff; font-weight: 800; font-size: 1rem;
  box-shadow: 0 4px 14px rgba(77,107,254,0.35);
  transition: transform 0.4s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.08); }
.logo-text em { font-style: normal; color: var(--blue); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--blue); background: var(--blue-soft); }
.nav-cta {
  background: var(--ink) !important;
  color: #fff !important;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.25s !important;
}
.nav-cta:hover {
  background: var(--blue) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(77,107,254,0.35);
}

.nav-burger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-burger.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ── hero ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 130px 28px 60px;
  background:
    radial-gradient(130% 100% at 50% -10%, #1A2150 0%, #0C1130 45%, #070916 100%);
  color: #fff;
  overflow: hidden;
}
/* soft edge where dark hero meets light page */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 90px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}

/* split layout: text left, 3D right */
.hero-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}
.hero-visual {
  position: relative;
  min-width: 0;
  height: min(72vh, 620px);
}
.visual-caption {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(198, 203, 255, 0.45);
  white-space: nowrap;
  pointer-events: none;
}

/* dark-hero overrides */
.hero .hero-badge {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
  color: #C6CBFF;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 24px rgba(77,107,254,0.25);
}
.hero .hero-sub { color: #A9B0CC; }
.hero .hero-sub strong { color: #fff; }
.hero .grad-text {
  background: linear-gradient(100deg, #7B96FF 10%, #A78BFF 55%, #5CD6FF 95%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
}
.btn-ghost-on-dark,
.hero .btn-ghost {
  background: rgba(255,255,255,0.07);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}
.hero .btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(124,160,255,0.7);
  box-shadow: 0 10px 30px rgba(77,107,254,0.35);
}
.hero .stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}
.hero .stat:hover {
  box-shadow: 0 14px 40px rgba(77,107,254,0.35);
  border-color: rgba(124,160,255,0.5);
}
.hero .stat-num, .hero .stat-plus {
  background: linear-gradient(120deg, #8FA6FF, #5CD6FF);
  -webkit-background-clip: text; background-clip: text;
}
.hero .stat p { color: #8A91B4; }
.hero .hero-scroll span { border-color: rgba(255,255,255,0.35); }
.hero .hero-scroll span::after { background: #7B96FF; }

/* nav over dark hero (before scroll) */
.nav:not(.scrolled) .logo { color: #fff; }
.nav:not(.scrolled) .nav-links a { color: #C3C9E0; }
.nav:not(.scrolled) .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav:not(.scrolled) .nav-cta { background: #fff !important; color: #0C1130 !important; }
.nav:not(.scrolled) .nav-cta:hover { background: var(--blue) !important; color: #fff !important; }
.nav:not(.scrolled) .nav-burger span { background: #fff; }
/* mobile: open panel is light, so restore dark text */
.nav:not(.scrolled) .nav-links.open a { color: var(--ink-2); }
.nav:not(.scrolled) .nav-links.open a:hover { color: var(--blue); background: var(--blue-soft); }
.nav:not(.scrolled) .nav-links.open .nav-cta { background: var(--ink) !important; color: #fff !important; }
.nav:not(.scrolled) .nav-links.open ~ .nav-burger span,
.nav .nav-burger.open span { background: var(--ink); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem; font-weight: 500; color: var(--ink-2);
  margin-bottom: 28px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22C55E;
  position: relative;
}
.pulse-dot::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(34,197,94,0.4);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 24px;
}
.grad-text {
  background: linear-gradient(100deg, var(--blue) 10%, #7C5CFF 55%, #4DC3FE 95%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-flow 6s ease infinite;
}
@keyframes grad-flow {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* rotating word */
.type-sequence {
  position: relative;
  display: inline-block;
  height: 1.15em;
  min-width: 8ch;
  overflow: hidden;
  vertical-align: bottom;
  text-align: left;
}
.type-word {
  position: absolute;
  left: 0;
  display: block;
  white-space: nowrap;
  /* each word carries its OWN gradient — background-clip:text on a parent
     does not paint into absolutely-positioned children (they'd be invisible) */
  background: linear-gradient(100deg, #7B96FF 10%, #A78BFF 55%, #5CD6FF 95%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: word-cycle 6.6s var(--ease) infinite, grad-flow 6s ease infinite;
  opacity: 0;
}
.type-word:nth-child(1) { animation-delay: 0s; }
.type-word:nth-child(2) { animation-delay: 2.2s; }
.type-word:nth-child(3) { animation-delay: 4.4s; }
@keyframes word-cycle {
  0%      { transform: translateY(110%); opacity: 0; }
  4%, 29% { transform: translateY(0);    opacity: 1; }
  33%,100%{ transform: translateY(-110%);opacity: 0; }
}

.hero-sub {
  max-width: 620px;
  color: var(--ink-2);
  font-size: 1.06rem;
  margin-bottom: 38px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-start; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s, color 0.25s;
}
.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
  background: linear-gradient(120deg, var(--blue), #6A5CFF);
  color: #fff;
  box-shadow: 0 8px 24px rgba(77,107,254,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(77,107,254,0.45); }
.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(77,107,254,0.4); color: var(--blue); }

/* stats */
.hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  width: 100%;
}
.stat {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 14px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-num, .stat-plus {
  font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--blue), #7C5CFF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat p { font-size: 0.74rem; color: var(--ink-3); line-height: 1.45; margin-top: 4px; }

.hero-scroll { margin-top: 56px; }
.hero-scroll span {
  display: block;
  width: 24px; height: 40px;
  border: 2px solid var(--ink-3);
  border-radius: 14px;
  position: relative;
  opacity: 0.6;
}
.hero-scroll span::after {
  content: "";
  position: absolute;
  left: 50%; top: 7px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--blue);
  animation: scroll-hint 1.8s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
}

/* ── sections ── */
.section { position: relative; z-index: 1; padding: 110px 28px; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(77,107,254,0.035) 20%, rgba(77,107,254,0.035) 80%, transparent); }
.container { max-width: 1120px; margin: 0 auto; }

.section-kicker {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 52px;
}

/* cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(77,107,254,0.3);
}

/* skills */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.skill-card .card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 1.3rem;
  border-radius: 13px;
  background: var(--blue-soft);
  margin-bottom: 16px;
  transition: transform 0.4s var(--ease);
}
.skill-card:hover .card-icon { transform: scale(1.12) rotate(-6deg); }
.skill-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.01em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 0.78rem; font-weight: 500;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.chip:hover {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: rgba(77,107,254,0.35);
  transform: translateY(-2px);
}

/* "Currently Learning" card */
.learning-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(77,107,254,0.045), rgba(124,92,255,0.045)), var(--card);
  border: 1px dashed rgba(77,107,254,0.35);
}
.learning-card:hover { border-style: solid; }
.learning-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(120deg, var(--blue), #7C5CFF);
  padding: 3px 10px;
  border-radius: 999px;
  vertical-align: middle;
  animation: badge-glow 2.6s ease-in-out infinite;
}
@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(77,107,254,0.35); }
  50% { box-shadow: 0 0 0 6px rgba(77,107,254,0); }
}
.chip-learning {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: rgba(77,107,254,0.22);
}
.chip-learning:hover {
  color: #fff;
  background: linear-gradient(120deg, var(--blue), #7C5CFF);
  border-color: transparent;
}

/* timeline */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), rgba(124,92,255,0.25));
  border-radius: 2px;
}
.t-item { position: relative; margin-bottom: 26px; }
.t-dot {
  position: absolute;
  left: -34px; top: 30px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--card);
  border: 4px solid var(--blue);
  box-shadow: 0 0 0 5px rgba(77,107,254,0.14);
  z-index: 1;
}
.t-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.t-head h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.t-company { color: var(--blue); font-weight: 600; font-size: 0.92rem; }
.t-date {
  font-size: 0.78rem; font-weight: 600; color: var(--ink-3);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px;
  white-space: nowrap;
}
.t-card ul { list-style: none; }
.t-card li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.t-card li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--blue);
  opacity: 0.55;
}
.t-card li strong { color: var(--ink); font-weight: 600; }

/* projects */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.project-card { position: relative; overflow: hidden; }
.p-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(77,107,254,0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.project-card:hover .p-glow { opacity: 1; }
.p-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.p-tags span {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.project-card h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 10px; }
.project-card p { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 18px; }
.p-metrics { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; border-top: 1px dashed var(--line); }
.p-metrics span { font-size: 0.78rem; font-weight: 600; color: var(--ink-3); }

/* education */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.edu-card { position: relative; }
.edu-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.edu-card .t-date { position: absolute; top: 24px; right: 24px; }
.edu-card.wide { grid-column: 1 / -1; }
.edu-card.wide .chips { margin-top: 14px; }

/* footer */
.footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: 110px 28px 48px;
  background: linear-gradient(180deg, transparent, rgba(77,107,254,0.05));
}
.footer-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
  margin-bottom: 16px;
}
.footer-sub { color: var(--ink-2); margin-bottom: 36px; }
.footer-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.footer-links { display: flex; gap: 26px; justify-content: center; margin-bottom: 44px; }
.footer-links a {
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.9rem;
  position: relative;
  transition: color 0.25s;
}
.footer-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.footer-links a:hover { color: var(--blue); }
.footer-links a:hover::after { transform: scaleX(1); }
.footer-copy { font-size: 0.8rem; color: var(--ink-3); }

/* ── reveal on scroll (Apple-style soft blur-in) ── */
.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  filter: blur(10px);
  transition:
    opacity 0.9s var(--ease-apple),
    transform 1.1s var(--ease-apple),
    filter 0.9s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.visible { opacity: 1; transform: none; filter: blur(0); }
.d1 { --delay: 0.1s; } .d2 { --delay: 0.2s; } .d3 { --delay: 0.3s; }
.d4 { --delay: 0.4s; } .d5 { --delay: 0.55s; }

/* ── hero line-mask reveal (Apple keynote style) ── */
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line-in {
  display: block;
  animation: rise-in 1.1s var(--ease-apple) both;
}
.hero-title .li1 { animation-delay: 0.15s; }
.hero-title .li2 { animation-delay: 0.32s; }
.hero-title .li2 .type-sequence { line-height: 1.15; }
@keyframes rise-in {
  from { transform: translateY(115%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── word-mask reveal for section headings (split by JS) ── */
.w-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; }
.w-mask .w {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition:
    transform 0.95s var(--ease-apple),
    opacity 0.7s ease;
  transition-delay: var(--wd, 0s);
}
.w-in .w-mask .w { transform: translateY(0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .hero-title .line-in { animation: none; opacity: 1; transform: none; }
  .w-mask { overflow: visible; }
  .w-mask .w { transform: none; opacity: 1; }
  /* rotating words: show the first one statically */
  .type-sequence { min-width: auto; height: auto; overflow: visible; }
  .type-word { position: static; opacity: 1; }
  .type-word:nth-child(n+2) { display: none; }
}

/* ── responsive ── */
@media (max-width: 980px) {
  .hero { padding-top: 110px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { height: 380px; order: 2; }
  .hero-content { order: 1; }
  .visual-caption { display: none; }
}

@media (max-width: 820px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100svh;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    background: rgba(251,251,253,0.92);
    backdrop-filter: blur(24px);
    box-shadow: -20px 0 60px rgba(22,24,31,0.12);
    transform: translateX(105%);
    transition: transform 0.45s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.05rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 20px; }
  .edu-card .t-date { position: static; display: inline-block; margin-top: 10px; }
}
