/* ============================================================
   Nilay Kushawaha — personal site
   Shared dark-first design system
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* dark is the default theme */
  --bg:            #070b14;
  --bg-soft:       #0b1120;
  --surface:       rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border:        rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.3);

  --text:          #e8edf7;
  --text-muted:    #9fb0c9;
  --text-dim:      #6b7f9c;
  --heading:       #f8fafc;

  --accent:        #38bdf8;
  --accent-2:      #a78bfa;
  --accent-3:      #34d399;
  --accent-soft:   rgba(56, 189, 248, 0.12);
  --accent-line:   linear-gradient(135deg, #38bdf8 0%, #818cf8 55%, #a78bfa 100%);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow:    0 18px 45px -20px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 30px 70px -30px rgba(2, 8, 20, 0.95);

  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      980px;

  --nav-h: 66px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
  --bg:            #f6f8fc;
  --bg-soft:       #ffffff;
  --surface:       #ffffff;
  --surface-hover: #ffffff;
  --border:        rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.18);

  --text:          #1e293b;
  --text-muted:    #475569;
  --text-dim:      #64748b;
  --heading:       #0b1120;

  --accent:        #0284c7;
  --accent-2:      #7c3aed;
  --accent-3:      #059669;
  --accent-soft:   rgba(2, 132, 199, 0.1);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow:    0 12px 30px -18px rgba(15, 23, 42, 0.35);
  --shadow-lg: 0 24px 55px -28px rgba(15, 23, 42, 0.35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ambient glow field behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(720px 460px at 12% -6%,  rgba(56, 189, 248, 0.17), transparent 62%),
    radial-gradient(680px 460px at 88% 4%,   rgba(167, 139, 250, 0.15), transparent 60%),
    radial-gradient(900px 620px at 50% 108%, rgba(52, 211, 153, 0.09),  transparent 62%);
}
html[data-theme="light"] body::before { opacity: 0.5; }
html[data-theme="light"] header.site-header { background: rgba(246, 248, 252, 0.75); background: color-mix(in srgb, var(--bg) 75%, transparent); }
html[data-theme="light"] #toTop { background: rgba(255, 255, 255, 0.85); background: color-mix(in srgb, var(--bg-soft) 85%, transparent); }

/* faint grid texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
}
html[data-theme="light"] body::after { opacity: 0.7; }

h1, h2, h3, h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  color: var(--heading);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

p { margin: 0.55rem 0; color: var(--text-muted); }
b, strong { color: var(--heading); font-weight: 600; }

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--accent-2); }

ul { margin: 0.6rem 0 0; padding-left: 1.15rem; }
li { color: var(--text-muted); margin: 0.3rem 0; }
li::marker { color: var(--accent); }

img { max-width: 100%; height: auto; }

::selection { background: rgba(56, 189, 248, 0.28); color: #fff; }

/* ---------- Navbar ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(7, 11, 20, 0.72);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
header.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--heading);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}
.brand:hover { color: var(--heading); }
.brand .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent-line);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex: none;
}

.navbar { display: flex; align-items: center; gap: 0.35rem; }

.nav-right { display: flex; align-items: center; gap: 0.4rem; flex: none; }

.nav-button {
  position: relative;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.93rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-button:hover { color: var(--heading); background: var(--surface-hover); }
.nav-button.active { color: var(--heading); }
.nav-button.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  transform: translateX(-50%);
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--accent-line);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: rotate(-18deg);
}

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
}

/* ---------- Layout ---------- */
main { position: relative; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { margin: 2.1rem auto; }

/* ---------- Card ---------- */
.card,
.skills-container {
  position: relative;
  max-width: var(--maxw);
  margin: 1.5rem auto;
  padding: 1.9rem 2.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
/* gradient hairline on top edge */
.card::before,
.skills-container::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.55), rgba(167, 139, 250, 0.45), transparent);
  opacity: 0.7;
}
.card:hover,
.skills-container:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card h2,
.skills-container h2,
.section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.32rem;
  margin: 0 0 1rem;
}
.section-title .ico { font-size: 1.15rem; line-height: 1; }

.eyebrow {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.gradient-text {
  background: var(--accent-line);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 3.2rem auto 1rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2.4rem;
}

.avatar-ring {
  position: relative;
  flex: none;
  width: 186px;
  height: 186px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 0 70px 6px rgba(56, 189, 248, 0.22);
}
.avatar-ring::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #38bdf8, #818cf8, #a78bfa, #34d399, #38bdf8);
  animation: spin 9s linear infinite;
  filter: blur(0.5px);
}
@keyframes spin { to { transform: rotate(360deg); } }

.profile-pic {
  position: relative;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg);
  transition: transform 0.45s var(--ease);
}
.avatar-ring:hover .profile-pic { transform: scale(1.045); }

.hero h1 {
  font-size: clamp(2rem, 5.2vw, 2.9rem);
  margin: 0.15rem 0 0.35rem;
}
.hero .role {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}
.hero .role b { color: var(--heading); }
.hero .where {
  font-size: 0.93rem;
  color: var(--text-dim);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-primary {
  background: var(--accent-line);
  color: #05080f;
  box-shadow: 0 10px 28px -12px rgba(56, 189, 248, 0.75);
}
.btn-primary:hover {
  color: #05080f;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(129, 140, 248, 0.85);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  color: var(--heading);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Social icons ---------- */
.social-icons { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.social-icons a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 1.05rem;
  transition: all 0.28s var(--ease);
}
.social-icons a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -14px rgba(56, 189, 248, 0.9);
}

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.85rem; }
.tag {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.22);
  transition: all 0.25s var(--ease);
}
.tag:hover {
  color: var(--heading);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -14px rgba(56, 189, 248, 0.9);
}

/* skill rows */
.skill-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 0.4rem 1.1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}
.skill-row:first-of-type { border-top: 0; }
.skill-row .label {
  font-family: 'Sora', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--heading);
  padding-top: 0.15rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  padding: 0.22rem 0.7rem;
  border-radius: 8px;
  font-size: 0.83rem;
  color: var(--text-muted);
  background: var(--surface-hover);
  border: 1px solid var(--border);
  transition: all 0.2s var(--ease);
}
.chip:hover { color: var(--heading); border-color: var(--border-strong); }

/* ---------- Timeline (CV) ---------- */
.timeline { position: relative; padding-left: 1.6rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
  opacity: 0.55;
}

.cv-item {
  position: relative;
  margin-bottom: 1.15rem;
  padding: 1.15rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cv-item::before {
  content: "";
  position: absolute;
  left: calc(-1.6rem - 2px); top: 1.5rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  transition: all 0.3s var(--ease);
}
.cv-item:hover {
  transform: translateX(5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.cv-item:hover::before { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.cv-item.current::before { background: var(--accent-3); border-color: var(--accent-3); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16); }

.cv-item .title {
  font-family: 'Sora', sans-serif;
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0;
}
.cv-item .org { color: var(--text-muted); font-size: 0.95rem; margin: 0.15rem 0 0; }
.cv-item ul { margin-top: 0.65rem; }
.cv-item li { font-size: 0.94rem; }

.date {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.15rem 0.65rem;
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-dim);
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.badge-now {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.12rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-3);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.32);
  border-radius: 999px;
  vertical-align: middle;
}

/* ---------- Publications ---------- */
.year-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 2.1rem 0 1rem;
  font-size: 1.05rem;
  font-family: 'Sora', sans-serif;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.year-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

.pub-item {
  position: relative;
  margin: 1rem 0;
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm);
  transition: all 0.32s var(--ease);
}
.pub-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  border-left-color: var(--accent);
  box-shadow: var(--shadow);
}
.pub-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.45;
  margin: 0 0 0.4rem;
}
.pub-meta { font-size: 0.92rem; color: var(--text-muted); margin: 0; }
.pub-meta .me { color: var(--accent); font-weight: 600; }
.venue {
  display: inline-block;
  margin: 0.55rem 0.5rem 0 0;
  padding: 0.18rem 0.7rem;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 999px;
}
.paper-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
}
/* Paper figures are light-background images. Sit them on an explicit
   white plate so they read as intentional on a dark page, and dim them
   slightly at rest so they don't glare — full brightness on hover. */
.pub-item img {
  display: block;
  width: 100%;
  margin: 1.1rem auto 0;
  padding: 10px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
html[data-theme="dark"] .pub-item img { opacity: 0.9; }
html[data-theme="dark"] .pub-item img:hover { opacity: 1; }
.pub-item .summary { font-size: 0.94rem; margin-top: 0.9rem; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.9rem;
  margin-top: 0.4rem;
}
.stat {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.stat:hover { transform: translateY(-3px); border-color: var(--accent); }
.stat .num {
  font-family: 'Sora', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  background: var(--accent-line);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .lbl {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.9rem;
  margin: 1.2rem 0 0.4rem;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.contact-card .ci {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 11px;
  font-size: 1rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.22);
}
.contact-card .cl {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contact-card .cv-val {
  font-size: 0.92rem;
  color: var(--text);
  word-break: break-word;
}

/* ---------- Footer ---------- */
footer.site-footer {
  max-width: var(--maxw);
  margin: 3.5rem auto 0;
  padding: 1.8rem 1.5rem 2.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
  color: var(--text-dim);
}
footer.site-footer .social-icons a { width: 36px; height: 36px; font-size: 0.95rem; }

/* ---------- Back to top ---------- */
#toTop {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(11, 17, 32, 0.85);
  background: color-mix(in srgb, var(--bg-soft) 85%, transparent);
  backdrop-filter: blur(10px);
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: all 0.3s var(--ease);
  z-index: 90;
}
#toTop.show { opacity: 1; transform: none; pointer-events: auto; }
#toTop:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.show { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  body { font-size: 16px; }

  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.4rem;
    margin-top: 2.2rem;
  }
  .hero-actions { justify-content: center; }
  .avatar-ring, .profile-pic { width: 150px; height: 150px; }
  .profile-pic { width: 144px; height: 144px; }

  .card, .skills-container { padding: 1.4rem 1.25rem; margin: 1.15rem auto; border-radius: 15px; }

  .skill-row { grid-template-columns: 1fr; gap: 0.45rem; }

  .nav-toggle { display: grid; place-items: center; }
  .navbar {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.7rem 1.1rem 1rem;
    background: rgba(7, 11, 20, 0.96);
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .navbar.open { display: flex; }
  .nav-button { padding: 0.6rem 0.8rem; border-radius: 10px; }
  .nav-button.active::after { left: 0.8rem; transform: none; }

  .timeline { padding-left: 1.25rem; }
  .cv-item::before { left: calc(-1.25rem - 2px); }

  footer.site-footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
