@charset "utf-8";

/* -------------------------------------------------------------------------- */
/* Self-hosted Inter (variable, latin subset)                                  */
/* -------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -------------------------------------------------------------------------- */
/* Design tokens — dark theme is the default                                   */
/* -------------------------------------------------------------------------- */
:root {
  --bg: #0b0e13;
  --bg-elevated: #131922;
  --bg-card: rgba(22, 29, 39, 0.72);
  --bg-card-solid: #161d27;
  --bg-card-hover: #1a2330;
  --surface-glass: rgba(20, 26, 34, 0.82);
  --menu-bg: rgba(16, 20, 28, 0.97);
  --backdrop-bg: rgba(0, 0, 0, 0.5);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eaeff5;
  --text-muted: #a3b0bf;
  --text-soft: #75849a;
  --accent: #5ec8ff;
  --accent-strong: #3db4f5;
  --accent-2: #a28bfa;
  --accent-soft: rgba(94, 200, 255, 0.12);
  --accent-border: rgba(94, 200, 255, 0.35);
  --on-accent: #061018;
  --success: #4ade80;
  --chip-bg: rgba(255, 255, 255, 0.04);
  --gradient: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  --title-line: linear-gradient(90deg, rgba(94, 200, 255, 0.35), transparent);
  --marker-color: rgba(94, 200, 255, 0.5);
  --glow-1: radial-gradient(1100px 620px at 8% -12%, rgba(94, 200, 255, 0.11), transparent 58%);
  --glow-2: radial-gradient(900px 540px at 100% 0%, rgba(162, 139, 250, 0.09), transparent 55%);
  --hero-sheen: radial-gradient(600px 260px at 0% 0%, rgba(94, 200, 255, 0.1), transparent 70%),
    radial-gradient(520px 260px at 100% 100%, rgba(162, 139, 250, 0.08), transparent 70%);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.25);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  --max-width: 880px;
  --header-gap: 2rem;
  --transition: 0.2s ease;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f5f6fa;
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-solid: #ffffff;
  --bg-card-hover: #eef2f8;
  --surface-glass: rgba(255, 255, 255, 0.86);
  --menu-bg: rgba(255, 255, 255, 0.98);
  --backdrop-bg: rgba(15, 23, 42, 0.35);
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.17);
  --text: #141c27;
  --text-muted: #44546a;
  --text-soft: #5b6a7e;
  --accent: #0279b8;
  --accent-strong: #03649a;
  --accent-2: #6d4ae0;
  --accent-soft: rgba(2, 121, 184, 0.09);
  --accent-border: rgba(2, 121, 184, 0.35);
  --on-accent: #ffffff;
  --success: #16a34a;
  --chip-bg: rgba(15, 23, 42, 0.035);
  --title-line: linear-gradient(90deg, rgba(2, 121, 184, 0.35), transparent);
  --marker-color: rgba(2, 121, 184, 0.55);
  --glow-1: radial-gradient(1100px 620px at 8% -12%, rgba(2, 121, 184, 0.09), transparent 58%);
  --glow-2: radial-gradient(900px 540px at 100% 0%, rgba(109, 74, 224, 0.07), transparent 55%);
  --hero-sheen: radial-gradient(600px 260px at 0% 0%, rgba(2, 121, 184, 0.08), transparent 70%),
    radial-gradient(520px 260px at 100% 100%, rgba(109, 74, 224, 0.06), transparent 70%);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-sm: 0 4px 18px rgba(15, 23, 42, 0.07);
}

/* -------------------------------------------------------------------------- */
/* Reset & base                                                               */
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--glow-1), var(--glow-2), var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-strong);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.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;
}

/* -------------------------------------------------------------------------- */
/* Layout                                                                     */
/* -------------------------------------------------------------------------- */
.page {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 4.5rem 0 3rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1400;
  padding: 0.65rem 1rem;
  background: var(--bg-card-solid);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
  color: var(--accent);
}

/* -------------------------------------------------------------------------- */
/* Hamburger & side menu                                                      */
/* -------------------------------------------------------------------------- */
.hamburger {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border-strong);
  background: var(--surface-glass);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.hamburger:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-border);
  transform: translateY(-1px);
}

.hamburger:active {
  transform: translateY(0);
}

.hamburger-box {
  width: 20px;
  height: 14px;
  display: inline-block;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 20px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  display: block;
  position: absolute;
  left: 0;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.25s ease;
}

.hamburger-inner {
  top: 6px;
}

.hamburger-inner::before {
  content: "";
  top: -6px;
}

.hamburger-inner::after {
  content: "";
  top: 6px;
  width: 13px;
}

.hamburger:hover .hamburger-inner::after {
  width: 20px;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  height: 100dvh;
  width: min(300px, 86vw);
  overflow-y: auto;
  background: var(--menu-bg);
  border-right: 1px solid var(--border);
  color: var(--text);
  transform: translateX(-110%);
  transition: transform 0.35s var(--ease-out);
  z-index: 1200;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu-inner {
  padding: 1.25rem 1.35rem 2rem;
}

.side-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  float: right;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.side-close:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.menu-section-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 2rem 0 0.6rem;
  clear: both;
}

.menu-section-title:first-of-type {
  margin-top: 2.75rem;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-weight: 500;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition),
    padding var(--transition);
}

.menu-list a:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
  padding-left: 1.05rem;
}

.menu-ext {
  font-size: 0.85em;
  color: var(--text-soft);
}

.hamburger.open {
  display: none;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: var(--backdrop-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1150;
}

.menu-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* -------------------------------------------------------------------------- */
/* Sticky social rail                                                         */
/* -------------------------------------------------------------------------- */
.sticky-container {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1100;
}

.sticky {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sticky li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.sticky li a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-2px);
}

.sticky li svg {
  width: 20px;
  height: 20px;
}

/* -------------------------------------------------------------------------- */
/* Hero / header                                                              */
/* -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--header-gap);
  margin-bottom: 1.5rem;
  padding: 2.25rem 1.5rem 2.25rem;
  background: var(--hero-sheen), var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise 0.7s var(--ease-out) both;
}

/* Thin gradient edge along the top of the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--gradient);
  opacity: 0.8;
}

.profilePhoto {
  position: relative;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  padding: 3px;
  background: var(--gradient);
  flex-shrink: 0;
  box-shadow: 0 10px 40px rgba(94, 200, 255, 0.18);
}

.profilePhoto img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-card-solid);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.3rem 0.8rem 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-out infinite;
}

.greeting {
  margin: 0 0 0.15rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: wave 2.4s ease-in-out 0.6s 2;
}

.profileHeader h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--text) 35%, var(--accent) 75%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profileHeader .role {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.45;
}

.mission {
  position: relative;
  margin: 0 0 1.1rem;
  padding: 0.85rem 1.1rem;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition),
    transform var(--transition), box-shadow var(--transition);
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--gradient);
  color: var(--on-accent);
  box-shadow: 0 6px 20px rgba(94, 200, 255, 0.22);
}

.btn-primary:hover {
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(94, 200, 255, 0.32);
}

[data-theme="light"] .btn-primary {
  box-shadow: 0 6px 20px rgba(2, 121, 184, 0.22);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent-border);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.btn-icon {
  padding: 0.6rem;
  width: 38px;
  justify-content: center;
}

/* Show the icon for the theme you would switch TO */
.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: inline-block;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: inline-block;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

/* -------------------------------------------------------------------------- */
/* Sections                                                                   */
/* -------------------------------------------------------------------------- */
.sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.4rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  scroll-margin-top: 1.5rem;
}

.section-title {
  margin: 0 0 1.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--title-line);
}

.sub-title {
  margin: 1.75rem 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--text);
  letter-spacing: -0.01em;
}

.section-body {
  color: var(--text-muted);
}

.section-body > p:first-child {
  margin-top: 0;
}

.section-body > p:last-child {
  margin-bottom: 0;
}

.section-intro {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.prose {
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--text-muted);
  text-wrap: pretty;
}

.prose.lead {
  font-size: 1.02rem;
  color: var(--text);
}

.prose em {
  font-style: italic;
  color: var(--text);
}

/* Reveal-on-scroll (only when JS is running) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stats */
.stats {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), transform var(--transition);
}

.stat:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-soft);
}

/* Values */
.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.value {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.value-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-title {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--text);
}

.value-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Skill chips */
.skill-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem 1.5rem;
}

.skill-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  line-height: 1.4;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.skill-chips .chip:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.2rem 1.2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition),
    transform var(--transition), box-shadow var(--transition);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover {
  border-color: var(--accent-border);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.project-card:hover::before {
  opacity: 1;
}

.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.project-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.project-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.project-name a {
  color: var(--text);
}

.project-name a:hover {
  color: var(--accent);
}

/* Make the whole card clickable via the title link */
.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.project-link-icon {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  color: var(--text-soft);
  transition: color var(--transition), transform var(--transition);
}

.project-card:hover .project-link-icon {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.project-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.project-chips {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.more-link span {
  transition: transform var(--transition);
}

.more-link:hover span {
  transform: translateX(3px);
}

/* Experience timeline */
.timeline {
  position: relative;
  padding-left: 1.6rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2) 55%, var(--border));
  opacity: 0.55;
}

.job {
  position: relative;
}

.job + .job {
  margin-top: 1.75rem;
}

.job::before {
  content: "";
  position: absolute;
  left: calc(-1.6rem + 0px);
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-card-solid);
  border: 2px solid var(--accent);
}

.job.is-current::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.job-header {
  margin-bottom: 0.75rem;
}

.job-org {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.job-meta {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  align-items: baseline;
}

.job-meta .role-title {
  color: var(--accent);
  font-weight: 600;
}

.job-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.job-list li + li {
  margin-top: 0.5rem;
}

.job-list li::marker {
  color: var(--marker-color);
}

.job-list strong {
  color: var(--text);
  font-weight: 600;
}

/* Education */
.edu-heading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.edu-heading img {
  width: 40px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.edu-heading .job-org {
  margin: 0;
}

.edu-sub {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.edu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.edu-block {
  padding: 1rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.edu-degree {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--text);
}

.edu-meta {
  margin: 0.15rem 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
}

.edu-detail {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Learning / research entries */
.entry {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.entry + .entry {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.entry p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.entry strong {
  color: var(--text);
  font-weight: 600;
}

.entry-badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Connect card */
.connect-card {
  position: relative;
  text-align: center;
  padding: 2.25rem 1.5rem;
  background: var(--hero-sheen), var(--bg-card);
  overflow: hidden;
}

.connect-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--gradient);
  opacity: 0.8;
}

.connect-title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.connect-text {
  max-width: 34rem;
  margin: 0 auto;
  font-size: 0.96rem;
  color: var(--text-muted);
  text-wrap: pretty;
}

.connect-actions {
  margin-top: 1.4rem;
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footerNote {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-soft);
}

/* -------------------------------------------------------------------------- */
/* Animations                                                                 */
/* -------------------------------------------------------------------------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

@keyframes wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .page {
    padding-top: 3.5rem;
  }

  .hero {
    flex-direction: row;
    text-align: left;
    align-items: center;
    padding: 2.5rem 2.5rem;
    gap: 2.25rem;
  }

  .profileHeader {
    flex: 1;
    min-width: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .connect-actions {
    justify-content: center;
  }

  .section-card {
    padding: 1.85rem 1.9rem 1.7rem;
  }

  .connect-card {
    padding: 2.75rem 2rem;
  }

  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .edu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .value {
    flex-direction: column;
  }

  .skill-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Below this width the side rail would overlap the content column */
@media (max-width: 1023px) {
  .sticky-container {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 1rem;
    transform: translateX(-50%);
  }

  .sticky {
    flex-direction: row;
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.5rem;
  }

  .sticky li a {
    width: 40px;
    height: 40px;
  }

  .page {
    padding-bottom: 6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .hamburger,
  .side-menu,
  .menu-backdrop,
  .sticky-container,
  .theme-toggle {
    display: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
