:root {
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --dim: #a0a0a0;
  --line: #efefef;
  --hover: #f6f6f6;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; }
p { margin: 0; }

/* ---------- header: original gradient + particles ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(-225deg, #52b3c4 0, #2c9edc 48%, #5e42b2 100%); }
#particles-js { position: absolute; inset: 0; }
.hero-inner { position: relative; text-align: center; padding: 48px 20px 34px; pointer-events: none; }
.hero-inner > * { pointer-events: auto; }
.wordmark { width: 300px; max-width: 80%; height: auto; margin: 0 auto; pointer-events: none !important; }
.hero p { color: rgba(255,255,255,.9); font-size: 16px; margin-top: 4px; }
.social { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; opacity: .8; transition: opacity .15s, background .15s; }
.social a:hover { opacity: 1; background: rgba(255,255,255,.15); }
.social svg { width: 16px; height: 16px; }

/* signature: the name writes itself in, then the tagline and links follow */
.wordmark {
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
          mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  animation: sign 1.7s cubic-bezier(.5, 0, .3, 1) .05s forwards;
}
@keyframes sign { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
.hero p, .social { opacity: 0; transform: translateY(4px); animation: rise .7s ease forwards; }
.hero p { animation-delay: 1.25s; }
.social { animation-delay: 1.45s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .wordmark { -webkit-mask-image: none; mask-image: none; animation: none; }
  .hero p, .social { opacity: 1; transform: none; animation: none; }
}

/* ---------- sticky section bar ---------- */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.bar-inner { max-width: 720px; margin: 0 auto; padding: 0 20px; display: flex; gap: 24px; }
.bar a { padding: 12px 0 10px; font-size: 13.5px; color: var(--dim); border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.bar a:hover { color: var(--text); }
.bar a.active { color: var(--text); border-bottom-color: var(--text); }

/* ---------- page ---------- */
.page { max-width: 720px; margin: 0 auto; padding: 36px 20px 8px; }
section { padding-top: 40px; scroll-margin-top: 48px; }
h2 { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin: 0 0 14px; }
.intro { font-size: 17px; line-height: 1.6; color: #333; }
.muted { color: var(--muted); }
.date { color: var(--dim); font-size: 13.5px; white-space: nowrap; }

/* subtle inline links */
.intro a, .item p a {
  text-decoration: underline; text-decoration-color: #ddd; text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: text-decoration-color .15s;
}
.intro a:hover, .item p a:hover { text-decoration-color: currentColor; }

/* experience */
.item { display: flex; gap: 14px; padding: 10px 0; }
.item-body { flex: 1; min-width: 0; }
.line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.name b { font-weight: 600; }
a.name:hover b { text-decoration: underline; text-underline-offset: 3px; }
.item p { color: var(--muted); margin-top: 1px; }
.item p.sub { font-size: 13px; color: var(--dim); margin-top: 4px; }
.item p.sub a { text-decoration-color: #e6e6e6; }
.logo-sm { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; flex: none; }
.logo-xs { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; flex: none; }
.item .logo-sm { margin-top: 1px; }

/* projects */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 8px; margin: 0 -10px; }
.tile { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; transition: background .15s; min-width: 0; }
.tile:hover { background: var(--hover); }
.tile-main { flex: 1; min-width: 0; }
.tile b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile b + span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* hackathons + writing */
.rows { margin: 0 -10px; }
.row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; transition: background .15s; }
.row:hover { background: var(--hover); }
.row-main { flex: 1; min-width: 0; }
.row-main b { font-weight: 600; }

.footer { max-width: 720px; margin: 56px auto 0; padding: 20px 20px 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--dim); font-size: 13px; }
.footer a:hover { color: var(--text); }

/* ---------- smaller screens ---------- */
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-inner { padding: 40px 20px 30px; }
  .bar-inner { justify-content: space-between; gap: 8px; }
  .intro { font-size: 16px; }
  .line { flex-direction: column; gap: 0; }
  .row { align-items: flex-start; flex-wrap: wrap; row-gap: 0; }
  .row { position: relative; padding-right: 32px; }
  .row .date { width: 100%; padding-left: 36px; }
  .row .chev { position: absolute; right: 10px; top: 50%; margin-top: -7px; }
}

/* chevrons mark everything clickable */
.chev { width: 14px; height: 14px; flex: none; color: #c8c8c8; transition: transform .15s, color .15s; }
.tile:hover .chev, .row:hover .chev, a.name:hover .chev { color: var(--text); transform: translateX(2px); }
a.name { display: inline-flex; align-items: center; flex-wrap: wrap; }
a.name .chev { margin-left: 2px; }
a.name .chev { width: 13px; height: 13px; }
.year { font-weight: 400; color: var(--dim); font-size: 12.5px; margin-left: 4px; }
