/* ============================================================================
   Sahil Panghal — Data Engineer portfolio
   Theme: "viridis" — matplotlib's default colormap on near-black indigo ink.
   Type:  Bricolage Grotesque (display) · JetBrains Mono (data) · Inter (body)
   ========================================================================== */

/* ----------------------------------------------------------------- tokens -- */
:root {
  --bg:        #09090F;
  --bg-2:      #0C0C14;
  --surface:   #111119;
  --surface-2: #16161F;

  --ink:   #ECEAF2;
  --muted: #9E99AE;
  --faint: #625D73;

  --line:   rgba(236, 234, 242, 0.09);
  --line-2: rgba(236, 234, 242, 0.15);

  /* viridis ramp (matplotlib default colormap) */
  --v1: #440154;
  --v2: #414487;
  --v3: #2A788E;
  --v4: #22A884;
  --v5: #7AD151;
  --v6: #FDE725;

  --accent:     #35D99A;
  --accent-dim: #22A884;
  --warm:       #FDE725;
  --on-accent:  #06110C;

  --display: "Bricolage Grotesque", "Space Grotesk", system-ui, sans-serif;
  --body:    "Inter", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 11vw, 150px);

  --r: 14px;
  --r-sm: 9px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ------------------------------------------------------------------ reset -- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 82% -8%, rgba(34, 168, 132, 0.10), transparent 60%),
    radial-gradient(760px 520px at 6% 8%, rgba(65, 68, 135, 0.14), transparent 62%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
  opacity: 0.5;
  pointer-events: none;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; padding: 0; }
strong { color: var(--ink); font-weight: 600; }

::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

kbd {
  font-family: var(--mono);
  font-size: 0.72em;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--muted);
}

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 400;
  padding: 10px 16px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--mono); font-size: 0.8rem; border-radius: var(--r-sm);
  transform: translateY(-160%); transition: transform 0.25s var(--ease);
}
.skip:focus { transform: translateY(0); }

/* ------------------------------------------------------------- utilities -- */
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

.grad {
  background: linear-gradient(100deg, var(--v2), var(--v3) 35%, var(--v4) 62%, var(--v5) 82%, var(--v6));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradpan 8s linear infinite;
}
@keyframes gradpan { to { background-position: 200% 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.02em;
  color: var(--muted); text-transform: lowercase;
}
.eyebrow__sep { color: var(--faint); }

.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(53, 217, 154, 0.6);
  animation: pulse 2.4s var(--ease-io) infinite;
  flex-shrink: 0;
}
.pulse--warm { background: var(--warm); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(53, 217, 154, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(53, 217, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 217, 154, 0); }
}

/* buttons */
.btn {
  --pad-y: 13px; --pad-x: 22px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--mono); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--on-accent); background: var(--accent);
  border: 1px solid transparent; border-radius: var(--r-sm);
  will-change: transform;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover { box-shadow: 0 12px 40px -12px rgba(53, 217, 154, 0.6); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { color: var(--ink); background: transparent; border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }
.btn--sm { --pad-y: 9px; --pad-x: 15px; font-size: 0.82rem; }
.btn--big { --pad-y: 17px; --pad-x: 26px; font-size: 1rem; }
.btn--big.copied { background: var(--v6); color: var(--on-accent); }

/* ------------------------------------------------------------------ nav -- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px var(--gutter);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), padding 0.3s var(--ease);
}
.nav[data-scrolled] { border-bottom-color: var(--line); padding-top: 11px; padding-bottom: 11px; }
.nav__logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
}
.nav__paren { color: var(--accent); }
.nav__dot {
  width: 9px; height: 9px; border-radius: 2px;
  background: linear-gradient(135deg, var(--v3), var(--v5));
  transition: transform 0.5s var(--ease);
}
.nav__logo:hover .nav__dot { transform: rotate(135deg); }

.nav__links { display: flex; gap: 26px; }
.nav__links a {
  position: relative; font-family: var(--mono); font-size: 0.85rem; color: var(--muted);
  transition: color 0.2s var(--ease);
}
.nav__idx { color: var(--faint); font-size: 0.7rem; margin-right: 3px; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--ink); }
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); }

.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__search {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; font-family: var(--mono); font-size: 0.8rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav__search:hover { color: var(--ink); border-color: var(--line-2); }

/* ------------------------------------------------------------- progress -- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 150; }
.progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--v2), var(--v3), var(--v4), var(--v5), var(--v6));
  box-shadow: 0 0 12px rgba(53, 217, 154, 0.6);
}

/* --------------------------------------------------------- command palette -- */
.cmdk {
  position: fixed; inset: 0; z-index: 350;
  background: rgba(5, 6, 10, 0.72); backdrop-filter: blur(5px);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 14vh;
  opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}
.cmdk.open { opacity: 1; visibility: visible; }
.cmdk__box {
  width: 560px; max-width: 90vw;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7); overflow: hidden;
  transform: translateY(-16px); transition: transform 0.3s var(--ease);
}
.cmdk.open .cmdk__box { transform: translateY(0); }
.cmdk__input {
  width: 100%; padding: 18px 20px; background: transparent; border: none; outline: none;
  color: var(--ink); font-family: var(--body); font-size: 1rem;
  border-bottom: 1px solid var(--line);
}
.cmdk__input::placeholder { color: var(--faint); }
.cmdk__list { max-height: 320px; overflow-y: auto; padding: 8px; }
.cmdk__item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: var(--r-sm); font-size: 0.92rem; color: var(--muted);
  cursor: pointer;
}
.cmdk__item.active { background: var(--surface-2); color: var(--ink); }
.cmdk__item .tag { font-family: var(--mono); font-size: 0.7rem; color: var(--faint); }
.cmdk__foot {
  display: flex; gap: 18px; padding: 11px 16px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.72rem; color: var(--faint);
}
.cmdk__foot kbd { margin-right: 3px; }

/* toast */
.toast {
  position: fixed; bottom: 30px; left: 50%; z-index: 380;
  transform: translateX(-50%) translateY(20px);
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 10px; font-size: 0.85rem; opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast__check { color: var(--accent); }

/* ------------------------------------------------------------------ hero -- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 128px; padding-bottom: 56px; overflow: hidden;
}
.hero__spot {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(340px 340px at var(--mx, 70%) var(--my, 30%), rgba(53, 217, 154, 0.10), transparent 70%);
  opacity: 0; transition: opacity 0.6s var(--ease); pointer-events: none;
}
.hero:hover .hero__spot { opacity: 1; }

.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 68px); align-items: center;
}
.hero__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.5rem, 6.4vw, 5.1rem); line-height: 1.0; letter-spacing: -0.035em;
  margin-top: 22px;
}
.hero__sub { max-width: 46ch; margin-top: 26px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.14rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.cycler { display: inline-flex; align-items: baseline; height: 1em; overflow: hidden; vertical-align: bottom; }
.cycler__track { display: flex; flex-direction: column; transition: transform 0.6s var(--ease); }
.cycler__word { display: block; height: 1em; line-height: 1; white-space: nowrap; }
.cursor {
  display: inline-block; width: 0.06em; height: 0.82em; margin-left: 0.08em;
  background: var(--accent); transform: translateY(0.08em);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* signature panel (pipeline) */
.run {
  position: relative; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 40%), var(--surface);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.7); overflow: hidden;
}
.run::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--r); padding: 1px;
  background: linear-gradient(150deg, rgba(42,120,142,0.5), transparent 40%, transparent 70%, rgba(122,209,81,0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.run__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.78rem;
}
.run__name { color: var(--muted); }
.run__live { display: inline-flex; align-items: center; gap: 7px; color: var(--warm); }
.run__canvas { width: 100%; height: auto; aspect-ratio: 640 / 300; }
.run__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 14px 16px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat__k { display: block; font-family: var(--mono); font-size: 0.66rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.stat__v { display: block; margin-top: 5px; font-family: var(--mono); font-size: 1.02rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat__dim { color: var(--faint); font-weight: 400; }
.tick--up { color: var(--v6); }

.hero__scroll {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 12px; margin-top: clamp(28px, 5vh, 56px);
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); width: fit-content;
}
.hero__scrollline { width: 54px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); position: relative; overflow: hidden; }
.hero__scrollline::after { content: ""; position: absolute; inset: 0; width: 20px; background: var(--accent); animation: scrollrun 2s var(--ease-io) infinite; }
@keyframes scrollrun { 0% { transform: translateX(-24px); } 100% { transform: translateX(60px); } }

/* --------------------------------------------------------------- marquee -- */
.marquee {
  border-block: 1px solid var(--line); padding: 18px 0; overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  background: var(--bg-2);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 24px;
  font-family: var(--mono); font-size: clamp(1rem, 2.4vw, 1.5rem); color: var(--muted);
  animation: marquee 32s linear infinite; will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__dot { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------- section -- */
.section { padding-block: var(--section-y); position: relative; }
.shead { margin-bottom: clamp(38px, 5vw, 66px); }
.shead__eyebrow { display: inline-block; font-family: var(--mono); font-size: 0.82rem; color: var(--accent); margin-bottom: 16px; }
.shead__title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 3.3rem); line-height: 1.04; letter-spacing: -0.03em; max-width: 20ch;
}

/* ------------------------------------------------------------------ about -- */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
.about__text p { color: var(--muted); font-size: 1.02rem; line-height: 1.85; }
.about__text p + p { margin-top: 18px; }

.card { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--bg-2);
  font-family: var(--mono); font-size: 0.78rem;
}
.card__file { color: var(--muted); }
.card__file::before { content: "◆ "; color: var(--accent); }
.card__tag { color: var(--faint); }
.card__body { padding: clamp(20px, 3vw, 30px); }

.yaml { padding-block: 8px; }
.yaml__row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-family: var(--mono); font-size: 0.88rem; }
.yaml__row:last-child { border-bottom: none; }
.yaml__k { color: var(--muted); }
.yaml__k::before { content: "› "; color: var(--faint); }
.yaml__v { color: var(--ink); text-align: right; }
.yaml__v--ok { color: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.stattile {
  padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.stattile:hover { border-color: var(--line-2); transform: translateY(-4px); }
.stattile__n {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; letter-spacing: -0.02em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.stattile__l { display: block; margin-top: 10px; font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }

/* ------------------------------------------------------------------ stack -- */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.skill {
  padding: clamp(20px, 2.4vw, 26px); border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); transition: border-color 0.3s var(--ease); position: relative;
}
.skill:hover { border-color: var(--line-2); }
.skill__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.skill__name { font-family: var(--display); font-weight: 600; font-size: 1.08rem; }
.skill__pct { font-family: var(--mono); font-size: 0.9rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.skill__track { height: 6px; background: rgba(255,255,255,0.06); border-radius: 100px; overflow: hidden; }
.skill__fill {
  height: 100%; width: 0%; border-radius: 100px;
  background: linear-gradient(90deg, var(--v3), var(--v4), var(--v5));
  transition: width 1.2s var(--ease);
}
.skill__note { font-size: 0.85rem; color: var(--faint); margin-top: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.35s var(--ease), opacity 0.35s var(--ease), margin-top 0.35s var(--ease); }
.skill:hover .skill__note, .skill:focus-within .skill__note { max-height: 60px; opacity: 1; margin-top: 12px; }

.toolbelt { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 22px; }
.toolbelt__label { font-family: var(--mono); font-size: 0.78rem; color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips li {
  padding: 7px 13px; font-family: var(--mono); font-size: 0.8rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.chips li:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ------------------------------------------------------------------ work -- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  padding: 9px 17px; font-family: var(--mono); font-size: 0.82rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.filter:hover { color: var(--ink); border-color: var(--line-2); }
.filter.is-active { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }

.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.proj {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(22px, 2.6vw, 30px); border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.proj.is-hidden { display: none; }
.proj:hover, .proj:focus-visible { border-color: var(--line-2); transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8); }
.proj__viz {
  position: absolute; inset: 0; opacity: 0.5;
  background: radial-gradient(120% 80% at 100% 0%, rgba(34,168,132,0.14), transparent 55%);
  transition: opacity 0.4s var(--ease); pointer-events: none;
}
.proj:hover .proj__viz { opacity: 1; }
.proj > * { position: relative; }
.proj__meta { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 0.76rem; color: var(--faint); margin-bottom: 20px; }
.proj__slug { color: var(--accent); text-transform: lowercase; }
.proj__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.08; }
.proj__desc { margin-top: 12px; color: var(--muted); font-size: 0.96rem; flex-grow: 1; }
.proj__metrics {
  display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.72rem; color: var(--faint);
}
.proj__metrics b { display: block; font-size: 1.1rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; text-transform: none; }
.proj__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.proj__tags li { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; }

/* ------------------------------------------------------------- experience -- */
.tl { position: relative; padding-left: 8px; }
.tl__track { position: absolute; left: 15px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.tl__fill { position: absolute; inset: 0 0 auto 0; width: 100%; height: 0%; background: linear-gradient(180deg, var(--v2), var(--v4), var(--v5)); transition: height 1.1s var(--ease); }
.tl__item { position: relative; padding-left: 46px; padding-bottom: 16px; }
.tl__item:last-child { padding-bottom: 0; }
.tl__dot {
  position: absolute; left: 8px; top: 24px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent-dim); z-index: 2;
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.tl__card { padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color 0.3s var(--ease); }
.tl__item:hover .tl__card { border-color: var(--line-2); }
.tl__item:hover .tl__dot { background: var(--accent); box-shadow: 0 0 0 5px rgba(53, 217, 154, 0.14); }
.tl__period { font-family: var(--mono); font-size: 0.76rem; color: var(--accent); }
.tl__role { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin-top: 6px; }
.tl__org { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.tl__desc { color: var(--muted); font-size: 0.95rem; line-height: 1.75; margin-top: 14px; }

/* -------------------------------------------------------------- education -- */
.edu { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; align-items: start; }
.edu__degree { font-family: var(--display); font-weight: 600; font-size: 1.35rem; }
.edu__sub { color: var(--muted); font-size: 0.9rem; margin-top: 6px; margin-bottom: 20px; }
.edu__course li { font-size: 0.76rem; }
.certs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cert {
  display: flex; flex-direction: column; gap: 5px; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.cert:hover { border-color: var(--line-2); transform: translateY(-3px); }
.cert__name { font-size: 0.92rem; font-weight: 500; }
.cert__by { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); }

/* --------------------------------------------------------------- contact -- */
.section--contact { text-align: center; }
.cta { max-width: 780px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.cta__title { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -0.035em; margin-top: 16px; }
.cta__sub { margin-top: 20px; color: var(--muted); font-size: 1.08rem; max-width: 46ch; }
.cta__row { margin-top: 34px; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 40px; }
.social a { font-family: var(--mono); font-size: 0.9rem; color: var(--muted); display: inline-flex; gap: 5px; transition: color 0.2s var(--ease); }
.social a span { color: var(--faint); transition: transform 0.25s var(--ease); }
.social a:hover { color: var(--accent); }
.social a:hover span { transform: translate(2px, -2px); color: var(--accent); }

/* ---------------------------------------------------------------- footer -- */
.foot { border-top: 1px solid var(--line); padding-block: 28px; background: var(--bg-2); }
.foot__grid { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 0.76rem; color: var(--faint); }
.foot__r { display: inline-flex; align-items: center; gap: 8px; }

/* --------------------------------------------------------------- reveals -- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .run { order: 2; }
  .about { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; }
  .work { grid-template-columns: 1fr; }
  .edu { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .yaml__row { flex-direction: column; gap: 4px; }
  .yaml__v { text-align: left; }
  .run__stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .certs { grid-template-columns: 1fr; }
  .nav__search { display: none; }
  .foot__grid { justify-content: flex-start; }
}

/* ------------------------------------------------------- reduced motion -- */
@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;
  }
  .reveal { opacity: 1; transform: none; }
  .cursor, .pulse, .hero__scrollline::after { display: none; }
}
