/* ==========================================================================
   touhidurabir.github.io, site.css
   Dark editorial layout. One accent (teal). Thin rules, small radii,
   monospace labels, large display type. No decorative shadows.
   ========================================================================== */

:root {
  --bg: #0b0c10;
  --bg-2: #101117;
  --bg-3: #15161e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ececf1;
  --muted: #a4a7b5;
  --faint: #8a8d9c;
  --accent: #14b8a6;             /* fills: buttons, dots, bars */
  --accent-fg: #2dd4bf;          /* accent used as text; darker in light mode */
  --accent-hover: #2dd4bf;
  --accent-ink: #062b27;
  --accent-soft: rgba(45, 212, 191, 0.14);
  --glow: rgba(20, 184, 166, 0.16);
  --nav-bg: rgba(11, 12, 16, 0.78);
  --menu-bg: rgba(11, 12, 16, 0.96);
  --portrait-fade: rgba(11, 12, 16, 0.9);
  --grain-opacity: 0.35;
  --img-filter: saturate(0.9);
  color-scheme: dark;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 6px;
  --radius-lg: 10px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1200px;
  --nav-h: 64px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}


/* ---- light theme ----
   Applied when the user picks light, or when the system prefers light and
   the user has not chosen. Same tokens, warmer paper surfaces. */
[data-theme="light"] {
  --bg: #f6f5f1;
  --bg-2: #ffffff;
  --bg-3: #eeece6;
  --line: rgba(20, 20, 30, 0.09);
  --line-strong: rgba(20, 20, 30, 0.18);
  --text: #16171d;
  --muted: #42454f;
  --faint: #616474;
  --accent: #0f766e;
  --accent-fg: #0f766e;
  --accent-hover: #115e59;
  --accent-ink: #ffffff;
  --accent-soft: rgba(15, 118, 110, 0.14);
  --glow: rgba(15, 118, 110, 0.16);
  --nav-bg: rgba(246, 245, 241, 0.82);
  --menu-bg: rgba(246, 245, 241, 0.97);
  --portrait-fade: rgba(246, 245, 241, 0.92);
  --grain-opacity: 0.5;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f5f1;
    --bg-2: #ffffff;
    --bg-3: #eeece6;
    --line: rgba(20, 20, 30, 0.09);
    --line-strong: rgba(20, 20, 30, 0.18);
    --text: #16171d;
    --muted: #42454f;
    --faint: #616474;
    --accent: #0f766e;
    --accent-fg: #0f766e;
    --accent-hover: #115e59;
    --accent-ink: #ffffff;
    --accent-soft: rgba(15, 118, 110, 0.14);
    --glow: rgba(15, 118, 110, 0.16);
    --nav-bg: rgba(246, 245, 241, 0.82);
    --menu-bg: rgba(246, 245, 241, 0.97);
    --portrait-fade: rgba(246, 245, 241, 0.92);
    --grain-opacity: 0.5;
    color-scheme: light;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  transition: background-color 0.3s, color 0.3s;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle grain so large dark areas do not band */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-fg); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
p + p { margin-top: 1em; }
strong { color: var(--text); font-weight: 600; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section + .section { border-top: 1px solid var(--line); }

/* ---- type utilities ---- */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
}
.section-head h2,
.section-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}
.section-head .lede {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 44ch;
}
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-fg); color: var(--accent-fg); }
.btn svg { width: 1em; height: 1em; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-fg);
}
.link-arrow svg { width: 0.9em; height: 0.9em; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---- nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.is-scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.nav-links {
  display: none;
  /* tightens on narrow desktops so the CV button and toggle keep their gutter */
  gap: clamp(1.1rem, 2.4vw, 1.75rem);
  font-size: 0.9rem;
  color: var(--muted);
}
.nav-links a { position: relative; padding-block: 0.25rem; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  display: none;
  align-items: center;
  gap: 0.4rem;
  height: 40px;
  padding-inline: 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: border-color 0.25s, color 0.25s;
}
.nav-cta:hover { border-color: var(--accent-fg); color: var(--accent-fg); }
.nav-cta svg { width: 0.9em; height: 0.9em; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-right { display: flex; align-items: center; gap: 0.6rem; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-fg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 99;
  background: var(--menu-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 1rem var(--gutter) 1.5rem;
  display: grid;
  gap: 0.25rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.mobile-menu a:last-child { border-bottom: 0; }

/* ---- hero ---- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero::before {
  /* single soft accent glow, top-right */
  content: "";
  position: absolute;
  right: -20vw;
  top: -30vh;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; }
}
.hero-kicker {
  font-weight: 600;
  color: var(--muted);
  font-size: 1rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-top: 0.75rem;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-fg);
}
.hero-sub {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  max-width: 54ch;
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}
.hero-meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: var(--faint);
}
.hero-meta .live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}
.hero-meta .live::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #37d67a;
  box-shadow: 0 0 0 4px rgba(55, 214, 122, 0.18);
}

.portrait {
  position: relative;
  justify-self: center;
  width: min(100%, 320px);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
}
.portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.85) contrast(1.05);
}
.portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--portrait-fade) 100%);
}
.portrait-tag {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 1;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.portrait-tag b { color: var(--text); font-weight: 600; }
.rotator {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}
.rotator .caret {
  display: inline-block;
  width: 0.55em; height: 1em;
  background: var(--accent);
  vertical-align: -0.15em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.rotator .word { color: var(--text); }

/* stat strip */
.stats {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat .val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat .val sup { font-size: 0.5em; color: var(--accent-fg); vertical-align: 0.6em; margin-left: 0.05em; }
.stat .lbl { margin-top: 0.5rem; color: var(--muted); font-size: 0.9rem; }


/* ---- about ---- */
.about-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
}
.pull {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 34ch;
}
.prose { color: var(--muted); font-size: 1.0625rem; }
.prose a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.prose a:hover { color: var(--accent-fg); border-color: var(--accent-fg); }
.facts {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.facts li { background: var(--bg-2); padding: 1rem 1.1rem; }
.facts .k { font-size: 0.8rem; color: var(--faint); }
.facts .v { margin-top: 0.3rem; font-weight: 600; }
.facts .v a { color: var(--accent-fg); }

/* ---- cards ---- */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card h3 { font-size: 1.25rem; }
.card .prose { font-size: 1rem; }

/* open source bento */
.bento {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento .span-7 { grid-column: span 7; }
  .bento .span-5 { grid-column: span 5; }
}
.card-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-fg);
  margin-bottom: 0.75rem;
}
.card-foot { margin-top: 1.5rem; }
.pkgs { margin-top: 1.25rem; display: grid; gap: 0.75rem; }
.pkg { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; align-items: baseline; }
.pkg a { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text); }
.pkg a:hover { color: var(--accent-fg); }
.pkg .n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.pkg .bar {
  grid-column: 1 / -1;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.pkg .bar i {
  display: block;
  height: 100%;
  width: var(--w, 10%);
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease);
}
.is-visible .pkg .bar i { transform: scaleX(1); }

/* ---- what I do: numbered list ---- */
.list-rules { border-top: 1px solid var(--line); margin: 0; padding: 0; list-style: none; }
.list-rules > li {
  display: grid;
  gap: 0.75rem 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 800px) {
  .list-rules > li { grid-template-columns: 5rem minmax(0, 4fr) minmax(0, 7fr); align-items: start; }
}
.list-rules .idx {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-fg);
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
  margin-top: -0.2rem;
}
.list-rules h3 { font-size: 1.35rem; }
.list-rules p { color: var(--muted); }

/* ---- skills ---- */
.skills {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .skills { grid-template-columns: repeat(3, 1fr); } }
.skill-group h3 { font-size: 0.95rem; margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.6rem; }
.skill-group h3::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-size: 0.85rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--accent-fg); color: var(--text); }
.chip { display: inline-flex; align-items: center; gap: 0.45rem; }
.chip-icon { width: 14px; height: 14px; flex: 0 0 auto; fill: var(--brand, currentColor); }
.chip-icon-mono { fill: currentColor; opacity: 0.85; }
.small-print { margin-top: 1.5rem; color: var(--faint); font-size: 0.9rem; }

/* ---- projects ---- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.filter {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.filter:hover { color: var(--text); border-color: var(--accent-fg); }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent-fg); color: var(--accent-ink); }

.projects {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
@media (min-width: 900px) {
  .projects { grid-template-columns: repeat(6, 1fr); }
  .project { grid-column: span 2; }
  .project.is-featured { grid-column: span 3; }
}
.project {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.project:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.project.is-hidden { display: none; }
.project-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
}
.project.is-featured .project-media { aspect-ratio: 16 / 9; }
.project-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s var(--ease), filter 0.4s;
  filter: saturate(0.9);
}
.project:hover .project-media img { transform: scale(1.03); filter: saturate(1); }
.project-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.project-body h3 { font-size: 1.15rem; }
.project.is-featured .project-body h3 { font-size: 1.4rem; }
.project-body p { color: var(--muted); font-size: 0.95rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; font-size: 0.8rem; color: var(--faint); }
.project-tags span + span::before { content: "·"; margin-right: 0.75rem; opacity: 0.6; }
.project-body .link-arrow { margin-top: auto; padding-top: 0.5rem; }
.project-body .link-arrow.is-disabled { color: var(--faint); pointer-events: none; }
.project-title-link::after { content: ""; position: absolute; inset: 0; }
.project-body .link-arrow, .project-tags { position: relative; z-index: 1; }

/* ---- experience ---- */
.xp-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1000px) {
  .xp-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 4rem; align-items: start; }
  .xp-side { position: sticky; top: calc(var(--nav-h) + 2rem); }
}
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--line-strong);
}
.tl-item {
  position: relative;
  padding-left: 2.25rem;
  padding-bottom: 2.5rem;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.tl-item.is-current::before { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1rem; }
.tl-head h3 { font-size: 1.3rem; }
/* employer and university names link out to their own sites */
.tl-head h3 a,
.tl-role a { border-bottom: 1px solid var(--line-strong); }
.tl-head h3 a:hover,
.tl-role a:hover { border-color: var(--accent-fg); }
.tl-date {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-fg);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
/* full-time or part-time, kept muted so it reads as a qualifier on the dates
   rather than competing with them */
.tl-type {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--faint);
  vertical-align: 0.1em;
}
.tl-role { color: var(--muted); font-size: 0.95rem; margin-top: 0.15rem; }
.tl-role b { color: var(--text); font-weight: 600; }
.tl-note { margin-top: 0.75rem; color: var(--faint); font-size: 0.9rem; }
.tl-bullets { margin-top: 1rem; display: grid; gap: 0.5rem; color: var(--muted); }
.tl-bullets li { position: relative; padding-left: 1.6rem; font-size: 0.95rem; }
.tl-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.9rem;
  height: 1px;
  background: var(--accent-fg);
}
.side-card + .side-card { margin-top: 1rem; }
.side-card h3 { font-size: 1.05rem; }
.side-card .tl-role { margin-top: 0.25rem; }
.side-card .tl-date { margin: 0 0 0.5rem; display: block; }

/* ---- testimonials ---- */
.quotes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quote { display: flex; flex-direction: column; margin: 0; }
.quote figcaption { margin-top: auto; }
.quote blockquote { margin: 0; color: var(--muted); font-size: 1rem; }
.quote blockquote::before { content: "“"; display: block; font-family: var(--font-display); font-size: 3rem; line-height: 0.6; color: var(--accent-fg); margin-bottom: 0.75rem; }
.quote footer { margin-top: 1.5rem; display: flex; align-items: flex-start; align-items: center; gap: 0.85rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.quote footer img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote footer b { display: block; font-weight: 600; }
.quote footer span { color: var(--faint); font-size: 0.85rem; }
.quote footer span a { color: var(--muted); }

/* ---- faq ---- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent-fg);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.25rem; max-width: 70ch; }

/* ---- contact ---- */
.contact {
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  left: -10vw; bottom: -40vh;
  width: 60vw; height: 60vw;
  max-width: 800px; max-height: 800px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}
.contact h2 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 0.75rem;
}
.contact-email {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.15rem;
}
.contact-email:hover { color: var(--accent-fg); }
.contact-grid { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.contact-links { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.contact-links a,
.contact-links .row {
  background: var(--bg-2);
  padding: 1rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.contact-links a:hover { background: var(--bg-3); }
.contact-links .k { font-size: 0.85rem; color: var(--faint); }
.contact-links .v { font-weight: 600; }
.contact-note { color: var(--muted); max-width: 52ch; }

footer.site-foot {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--faint);
  font-size: 0.85rem;
}
footer.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; }
footer.site-foot a { color: var(--muted); }
footer.site-foot a:hover { color: var(--accent-fg); }

/* ---- reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rotator .caret { animation: none; }
  .btn, .project, .project-media img { transition: none; }
}
