/* ============================================================
   Sparsh Tyagi - Portfolio
   ============================================================ */

:root {
  --bg: #07070a;
  --bg-soft: #0d0d12;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f6f5f2;
  --text-dim: #c2bfcc;
  --text-faint: #8f8b9c;
  --accent: #a78bfa;         /* violet */
  --accent-2: #7c6cf0;       /* indigo */
  --accent-warm: #f0a072;    /* warm highlight */
  --reactor: #38e1ff;        /* arc-reactor cyan */
  --reactor-soft: rgba(56, 225, 255, 0.55);
  --glow: rgba(139, 122, 255, 0.35);
  --radius: 20px;
  --radius-sm: 14px;
  --maxw: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* NOTE: use `clip`, not `hidden` - `hidden` creates a scroll container and breaks position:sticky */
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.68; font-size: 17px;
  overflow-x: clip; -webkit-font-smoothing: antialiased; letter-spacing: -0.01em;
}
/* only hide the real cursor once JS has the custom one running (class set in script.js) */
@media (hover: hover) and (pointer: fine) { body.custom-cursor { cursor: none; } }
.serif { font-family: "Instrument Serif", Georgia, serif; font-style: italic; letter-spacing: 0; font-weight: 400; }
::selection { background: var(--accent); color: #0a0a0f; }
a { color: inherit; text-decoration: none; }

/* ---------- Background ---------- */
.bg-mesh {
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(60% 55% at 15% 10%, rgba(124, 108, 240, 0.22), transparent 60%),
    radial-gradient(45% 45% at 88% 15%, rgba(56, 225, 255, 0.10), transparent 55%),
    radial-gradient(70% 60% at 75% 90%, rgba(167, 139, 250, 0.16), transparent 60%),
    var(--bg);
}
.bg-scroll {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(90% 70% at 50% -10%, var(--sc-top, rgba(124,108,240,0.22)), transparent 60%),
    radial-gradient(80% 60% at 100% 60%, var(--sc-side, rgba(240,160,114,0.14)), transparent 55%);
  transition: background 0.2s linear;
}
.bg-grain {
  position: fixed; inset: 0; z-index: -2; opacity: 0.5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
.spotlight {
  position: fixed; z-index: -1; width: 600px; height: 600px; pointer-events: none;
  border-radius: 50%; left: 0; top: 0; transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--glow), transparent 65%);
  opacity: 0; transition: opacity 0.4s ease; mix-blend-mode: screen;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.loader-count { font-family: "JetBrains Mono", monospace; font-size: 14px; color: var(--reactor); letter-spacing: 0.2em; }
.loader-name {
  font-size: clamp(1.4rem, 5vw, 2.4rem); font-weight: 600; letter-spacing: 0.2em;
  color: var(--text); overflow: hidden; white-space: nowrap;
  border-right: 2px solid var(--accent); animation: caret 0.8s step-end infinite;
}
@keyframes caret { 50% { border-color: transparent; } }

/* ---------- Custom cursor ---------- */
/* hidden until the pointer actually moves, so it never sits stranded at 0,0 */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); opacity: 0; }
body.cursor-active .cursor-dot, body.cursor-active .cursor-ring { opacity: 1; }
.cursor-dot { width: 7px; height: 7px; background: var(--reactor); box-shadow: 0 0 10px var(--reactor-soft); transition: opacity 0.2s; }
.cursor-ring {
  width: 34px; height: 34px; border: 1.5px solid rgba(255,255,255,0.4);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s, background 0.25s, opacity 0.2s;
}
.cursor-ring.hover { width: 58px; height: 58px; border-color: var(--reactor); background: rgba(56,225,255,0.08); }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Hero light blooms ---------- */
.bloom { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; }
.bloom-violet { width: min(46vw, 620px); aspect-ratio: 1; top: -12vh; left: -8vw; background: radial-gradient(circle, rgba(124,108,240,0.42), transparent 70%); animation: bloom1 12s ease-in-out infinite; }
.bloom-gold { width: min(42vw, 560px); aspect-ratio: 1; bottom: -16vh; right: -6vw; background: radial-gradient(circle, rgba(240,160,114,0.30), transparent 70%); animation: bloom2 14s ease-in-out infinite; }
@keyframes bloom1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,30px) scale(1.12); } }
@keyframes bloom2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px,-30px) scale(1.15); } }
.hero-inner { position: relative; z-index: 2; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 200;
  background: linear-gradient(90deg, var(--accent), var(--reactor));
  box-shadow: 0 0 12px var(--glow); transition: width 0.1s linear;
}

/* ---------- Dock ---------- */
.dock {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%);
  z-index: 100; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 18px;
  background: rgba(15, 15, 20, 0.55); backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border); border-radius: 100px; box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.dock-brand { font-size: 14px; font-weight: 600; color: var(--accent); margin-right: 6px; letter-spacing: 0.05em; }
.dock-links { display: flex; gap: 4px; }
.dock-link { font-size: 14px; color: var(--text-dim); padding: 8px 14px; border-radius: 100px; transition: color 0.25s, background 0.25s; }
.dock-link:hover, .dock-link.active { color: var(--text); background: var(--surface-2); }
.dock-cta { font-size: 14px; font-weight: 500; padding: 9px 18px; border-radius: 100px; background: var(--text); color: #0a0a0f; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.dock-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px var(--glow); }

/* ---------- Layout ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 120px 28px; }
.section-head { margin-bottom: 60px; }
.section-kicker {
  font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); display: inline-block; margin-bottom: 18px;
}
.section-title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; max-width: 18ch; }
.section-title .serif { font-size: 1.05em; }

/* ---------- Hero ---------- */
/* The mask settles on load (see playIntro), so the hero is a normal section
   and scrolling responds immediately - no dead pinned scroll distance. */
.hero { position: relative; }
/* full-bleed: the blooms must not be clipped by a centred max-width box,
   otherwise their blur gets cut into a visible rectangular seam */
.hero-sticky {
  position: relative; min-height: 100vh; overflow: hidden;
  width: 100%; padding: 150px 28px 80px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim);
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 100px; background: var(--surface); margin-bottom: 24px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.hero-hello { font-size: 1.05rem; color: var(--text-dim); margin-bottom: 6px; }
.hero-title { font-size: clamp(3.2rem, 9vw, 6rem); font-weight: 600; line-height: 0.92; letter-spacing: -0.04em; margin-bottom: 18px; }
.hero-title .serif { color: var(--accent); font-size: 1.02em; }
.hero-role { font-size: clamp(1.2rem, 3vw, 1.7rem); color: var(--text); margin-bottom: 20px; font-weight: 500; }
.rotator { color: var(--reactor); position: relative; display: inline-block; }
.rotator #rotator { display: inline-block; transition: opacity 0.3s, transform 0.3s; }
.rotator::after { content: "_"; color: var(--reactor); animation: caret 0.8s step-end infinite; }
.hero-tag { font-size: 1.05rem; color: var(--text-dim); max-width: 42ch; line-height: 1.55; margin-bottom: 32px; }
.hero-tag strong, .hero-role em { color: var(--text); font-weight: 500; font-style: normal; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--text-faint); font-family: "JetBrains Mono", monospace; }
.hero-meta .sep { color: var(--border-strong); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500;
  padding: 13px 24px; border-radius: 100px; border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.btn span { transition: transform 0.3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-primary { background: var(--text); color: #0a0a0f; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--glow); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); transform: translateY(-2px); }
.btn.big { padding: 16px 28px; font-size: 16px; }

/* ---------- Hero visual: neural orb (canvas) + big photo ---------- */
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }

.orb-stage {
  position: relative; width: 230px; height: 292px; flex: none;
  display: flex; align-items: center; justify-content: center; z-index: 1; perspective: 800px;
}
.orb-stage::after {
  content: ""; position: absolute; inset: -18% -10%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(56,225,255,0.20), rgba(167,139,250,0.14) 45%, transparent 66%);
  filter: blur(12px); animation: floaty 7s ease-in-out infinite;
}
.mask {
  --mrx: 0deg; --mry: 0deg; transform-style: preserve-3d;
  transform: rotateX(var(--mrx)) rotateY(var(--mry)); transition: transform 0.3s ease-out;
}
.mask-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* real 3D: the helmet is extruded into stacked Z layers that parallax on tilt */
.mask-3d {
  position: relative; transform-style: preserve-3d;
  animation: floaty 6s ease-in-out infinite;
}
.mask-svg {
  width: 230px; height: auto; display: block;
  filter: drop-shadow(0 0 22px rgba(56,225,255,0.35)) drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}
.mask-svg.depth { position: absolute; top: 0; left: 0; filter: none; }
.mask-svg.d1 { transform: translateZ(-18px); opacity: 0.40; }
.mask-svg.d2 { transform: translateZ(-36px); opacity: 0.18; }

.hero-photo { position: relative; z-index: 2; padding: 3px; border-radius: 27px; animation: floaty 6s ease-in-out infinite; }
/* Rotate the GRADIENT, never the element - rotating the box made the rounded
   rectangle swing out from behind the photo as a stray tilted outline. */
@property --ring-angle {
  syntax: "<angle>"; initial-value: 0deg; inherits: false;
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0; border-radius: 27px; padding: 2px; z-index: 0;
  background: conic-gradient(from var(--ring-angle, 0deg), var(--reactor), var(--accent), var(--accent-warm), var(--reactor));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.75; animation: spinring 9s linear infinite;
}
@keyframes spinring { to { --ring-angle: 360deg; } }
.photo-frame {
  position: relative; z-index: 1; width: min(340px, 80vw); aspect-ratio: 340 / 452; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 50px rgba(56, 225, 255, 0.12);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-badge {
  position: absolute; bottom: 12px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; padding: 9px 13px; border-radius: 11px; background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(12px); border: 1px solid var(--border);
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint); display: flex; align-items: center; gap: 10px;
}
.scroll-hint span { width: 22px; height: 34px; border: 1px solid var(--border-strong); border-radius: 12px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 6px; border-radius: 2px; background: var(--accent); animation: scrolldot 1.8s ease-in-out infinite; }
@keyframes scrolldot { 0%,100% { top: 6px; opacity: 1; } 50% { top: 18px; opacity: 0.3; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; background: var(--bg-soft); }
.marquee-track { display: flex; gap: 32px; white-space: nowrap; width: max-content; animation: scrollx 34s linear infinite; }
.marquee-track span { font-size: 22px; color: var(--text-dim); }
.marquee-track span:nth-child(even) { color: var(--accent); font-size: 14px; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Glass card ---------- */
.glass-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; backdrop-filter: blur(8px);
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.card-label { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.about-text .lead { font-size: 1.3rem; color: var(--text); font-weight: 500; margin-bottom: 20px; max-width: 24ch; line-height: 1.35; }
.about-text p { color: var(--text-dim); font-size: 1.06rem; margin-bottom: 18px; max-width: 54ch; }
.about-text strong { color: var(--text); font-weight: 500; }
.about-side { display: flex; flex-direction: column; gap: 20px; }
.drive-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.drive-list li { position: relative; padding-left: 24px; color: var(--text-dim); font-size: 15px; }
.drive-list li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); font-size: 13px; }
.edu-school { font-size: 1.1rem; font-weight: 500; margin-bottom: 4px; }
.edu-degree { color: var(--text-dim); font-size: 14px; }
.edu-divider { height: 1px; background: var(--border); margin: 16px 0; }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; margin-top: 54px; padding-top: 50px; border-top: 1px solid var(--border); }
.skill-head { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 13px; color: var(--text-dim); padding: 7px 13px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface); transition: color 0.25s, border-color 0.25s, background 0.25s; }
.chips span:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }

/* ---------- Journey (scroll-driven timeline) ---------- */
.journey { position: relative; }
.jr-spine, .jr-fill { position: absolute; left: 7px; top: 34px; bottom: 34px; width: 2px; }
.jr-spine { background: var(--border); }
.jr-fill {
  bottom: auto; height: 0; z-index: 1;
  background: linear-gradient(180deg, var(--accent), var(--reactor));
  box-shadow: 0 0 14px var(--glow); transition: height 0.12s linear;
}
.jr-item {
  position: relative; display: grid; grid-template-columns: 140px 1fr; gap: 30px; padding: 32px 0;
  border-top: 1px solid var(--border); transition: padding-left 0.5s var(--ease), opacity 0.5s var(--ease), transform 0.8s var(--ease);
}
.jr-item:last-of-type { border-bottom: 1px solid var(--border); }
.jr-item::before {
  content: ""; position: absolute; left: 1px; top: 44px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-soft); border: 2px solid var(--border-strong); z-index: 2;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s, transform 0.35s;
}
.jr-item.active::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 16px var(--glow); transform: scale(1.15); }
.jr-item.active { padding-left: 12px; }
.jr-marker { padding-left: 34px; }
.jr-year {
  font-family: "JetBrains Mono", monospace; font-size: 1.5rem; font-weight: 500;
  color: var(--text-faint); letter-spacing: -0.02em; transition: color 0.35s;
}
.jr-item.active .jr-year { color: var(--accent); }
.jr-body h3 { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; transition: color 0.35s; }
.jr-item.active .jr-body h3 { color: var(--text); }
.jr-org { color: var(--reactor); font-size: 14px; margin: 4px 0 12px; font-family: "JetBrains Mono", monospace; }
.jr-body p { color: var(--text-dim); font-size: 1rem; max-width: 60ch; }
.jr-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.jr-tags span { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--text-faint); padding: 4px 10px; border: 1px solid var(--border); border-radius: 100px; }

/* ---------- Clubs ---------- */
.clubs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.club-card { display: flex; flex-direction: column; gap: 8px; }
.club-card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.club-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.club-tag { font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); padding: 5px 9px; border: 1px solid var(--border); border-radius: 100px; background: rgba(139,122,255,0.06); white-space: nowrap; }
.club-date { font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: var(--text-faint); white-space: nowrap; }
.club-card h3 { font-size: 1.25rem; font-weight: 600; margin-top: 4px; }
.club-role { color: var(--reactor) !important; font-size: 12.5px !important; font-weight: 500; }
.club-card p { color: var(--text-dim); font-size: 14px; }
.club-card p strong { color: var(--text); font-weight: 600; }

/* ---------- Worklist (numbered projects) ---------- */
.worklist { display: flex; flex-direction: column; }
.wl-item {
  display: grid; grid-template-columns: 60px 1fr 40px; gap: 24px; align-items: center;
  padding: 36px 0; border-top: 1px solid var(--border); position: relative;
  transition: padding 0.4s var(--ease), background 0.4s;
}
.wl-item:last-of-type { border-bottom: 1px solid var(--border); }
.wl-item::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--reactor));
  transform: scaleY(0); transform-origin: top; transition: transform 0.4s var(--ease);
}
.wl-item:hover::after { transform: scaleY(1); }
.wl-item:hover { padding-left: 26px; padding-right: 14px; background: linear-gradient(90deg, rgba(139,122,255,0.06), transparent 60%); }
.wl-index { font-family: "JetBrains Mono", monospace; font-size: 15px; color: var(--text-faint); transition: color 0.3s; }
.wl-item:hover .wl-index { color: var(--accent); }
.wl-titles { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.wl-titles h3 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.02em; transition: color 0.3s; }
.wl-item:hover .wl-titles h3 { color: var(--accent); }
.wl-cat { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--reactor); padding: 4px 10px; border: 1px solid rgba(56,225,255,0.25); border-radius: 100px; }
.wl-main p { color: var(--text-dim); font-size: 1rem; max-width: 62ch; margin-bottom: 16px; }
.wl-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-tools span { font-family: "JetBrains Mono", monospace; font-size: 11.5px; color: var(--text-dim); padding: 5px 11px; border: 1px solid var(--border); border-radius: 100px; background: var(--surface); }
.wl-arrow { font-size: 22px; color: var(--text-faint); transition: transform 0.3s var(--ease), color 0.3s; }
.wl-item:hover .wl-arrow { color: var(--accent); transform: translate(4px, -4px); }
.worklist-more { display: inline-block; margin-top: 30px; font-size: 15px; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--accent); padding-bottom: 3px; transition: gap 0.3s, color 0.3s; }
.worklist-more:hover { color: var(--accent); }

/* ---------- Tech stack ---------- */
.stack-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.stack-grid span {
  font-size: 15px; color: var(--text-dim); padding: 11px 18px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--surface); transition: transform 0.3s var(--ease), color 0.3s, border-color 0.3s, background 0.3s;
}
.stack-grid span:hover { transform: translateY(-4px); color: var(--text); border-color: var(--reactor); background: rgba(56,225,255,0.06); }

/* ---------- Contact ---------- */
.contact { text-align: center; padding-bottom: 40px; }
.contact-inner { max-width: 760px; margin: 0 auto; }
.contact-title { font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; margin: 18px 0 22px; }
.contact-sub { color: var(--text-dim); font-size: 1.1rem; max-width: 50ch; margin: 0 auto 40px; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact-alt { margin-top: 22px; font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--text-faint); }
.contact-alt a { color: var(--text-dim); border-bottom: 1px solid var(--border-strong); padding-bottom: 1px; transition: color 0.25s; }
.contact-alt a:hover { color: var(--accent); }

.footer {
  max-width: var(--maxw); margin: 120px auto 0; padding: 30px 28px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--text-faint); font-family: "JetBrains Mono", monospace;
}
.footer a:hover { color: var(--text); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { order: -1; min-height: 380px; }
  .about-grid { grid-template-columns: 1fr; }
  .clubs-grid { grid-template-columns: 1fr 1fr; }
  .skills { grid-template-columns: 1fr; gap: 28px; }
  .dock-links { display: none; }
}
@media (max-width: 560px) {
  .hero { padding: 120px 20px 70px; }
  .section { padding: 84px 20px; }
  .clubs-grid { grid-template-columns: 1fr; }
  .jr-item { grid-template-columns: 60px 1fr; gap: 16px; }
  .jr-marker { padding-left: 26px; }
  .jr-year { font-size: 1.15rem; }
  .jr-spine, .jr-fill { left: 5px; }
  .jr-item::before { left: -1px; }
  .wl-item { grid-template-columns: 30px 1fr; gap: 16px; }
  .wl-titles h3 { font-size: 1.4rem; }
  .wl-arrow { display: none; }
  .footer { flex-direction: column; text-align: center; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .orb-stage { width: 188px; height: 240px; }
  .mask-svg { width: 188px; }
  .bloom-violet { width: 80vw; }
  .bloom-gold { width: 75vw; }
  .contact-actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
