/* ===================================================================
   Rishabh Jain — portfolio
   Editorial dark. Fraunces (serif display) + Inter (sans). Lime accent.
   Deliberately distinct from the RESONANCE event site.
   =================================================================== */

:root {
  --bg: #0b0b0c;
  --bg-2: #111113;
  --panel: rgba(255, 255, 255, 0.025);
  --panel-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --ink: #f3f2ec;
  --ink-soft: #9b9a93;
  --ink-faint: #6a6a64;
  --lime: #cdf24e;
  --lime-dim: #aacb3f;
  --radius: 14px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .wordmark, .hero-meta dt, .p-no, .portrait { font-family: 'Fraunces', Georgia, serif; }
em { font-style: italic; font-family: 'Fraunces', Georgia, serif; }
a { color: inherit; text-decoration: none; }

.noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.92rem;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  background: var(--lime); color: #10110a; border: 1px solid var(--lime);
  transition: transform 0.18s var(--ease), background 0.18s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(205, 242, 78, 0.6); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { background: var(--panel-2); box-shadow: none; }
.btn-block { width: 100%; justify-content: center; }

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: var(--maxw); margin: 0 auto; padding: 20px 30px;
  background: linear-gradient(180deg, rgba(11, 11, 12, 0.9), rgba(11, 11, 12, 0));
  backdrop-filter: blur(10px);
}
.wordmark { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.wordmark .dot { color: var(--lime); }
.nav-links { display: flex; gap: 26px; font-size: 0.92rem; color: var(--ink-soft); }
.nav-links a { position: relative; transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px;
  background: var(--lime); transition: width 0.22s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 0 rgba(205, 242, 78, 0.6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(205, 242, 78, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(205, 242, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(205, 242, 78, 0); }
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 80px 30px 48px; }
.hero-kicker {
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--lime-dim); margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 1.02; font-weight: 500;
  letter-spacing: -0.02em; max-width: 16ch;
}
.hero-title em { color: var(--lime); font-weight: 500; }
.hero-lede { margin: 28px 0 34px; font-size: 1.16rem; color: var(--ink-soft); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 48px;
  margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--line-soft); width: fit-content;
}
.hero-meta dt { font-size: 1.9rem; font-weight: 500; }
.hero-meta dd { font-size: 0.82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* ── Marquee strip ───────────────────────────────────────────────── */
.strip {
  overflow: hidden; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 18px 0; margin: 30px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.strip-track {
  display: inline-flex; align-items: center; gap: 26px; white-space: nowrap;
  font-family: 'Fraunces', serif; font-size: 1.4rem; color: var(--ink-soft);
  animation: scroll 30s linear infinite;
}
.strip-track i { color: var(--lime); font-style: normal; font-size: 0.8rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ── Sections ────────────────────────────────────────────────────── */
.section { max-width: var(--maxw); margin: 0 auto; padding: 72px 30px; }
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid var(--line-soft);
}
.sec-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 500; }
.sec-index { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }

/* ── Projects ────────────────────────────────────────────────────── */
.projects { list-style: none; }
.projects li { border-bottom: 1px solid var(--line-soft); }
.project {
  display: grid; grid-template-columns: 48px 1fr auto auto 28px;
  gap: 26px; align-items: center; padding: 28px 8px;
  transition: padding 0.25s var(--ease), background 0.25s;
}
.project:hover { padding-left: 20px; padding-right: 20px; background: var(--panel); }
.p-no { font-size: 1.1rem; color: var(--ink-faint); }
.project:hover .p-no { color: var(--lime); }
.p-main h3 { font-size: 1.35rem; font-weight: 500; margin-bottom: 5px; letter-spacing: -0.01em; }
.p-main p { font-size: 0.94rem; color: var(--ink-soft); max-width: 56ch; }
.p-tags { display: flex; gap: 8px; }
.p-tags span {
  font-size: 0.72rem; color: var(--ink-soft); white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px;
}
.p-year { font-size: 0.92rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.p-arrow { font-size: 1.2rem; color: var(--ink-faint); transition: transform 0.22s var(--ease), color 0.2s; }
.project:hover .p-arrow { color: var(--lime); transform: translate(3px, -3px); }
.work-more {
  display: inline-block; margin-top: 28px; font-size: 0.95rem; color: var(--ink-soft);
  border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: color 0.18s, border-color 0.18s;
}
.work-more:hover { color: var(--lime); border-color: var(--lime); }

/* ── About ───────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.about-portrait { position: sticky; top: 100px; }
.portrait {
  width: 100%; aspect-ratio: 1 / 1; max-width: 280px; border-radius: var(--radius);
  display: grid; place-items: center; font-size: 4rem; font-weight: 500; color: #10110a;
  background: linear-gradient(150deg, var(--lime), #7e9b2b);
}
.now { margin-top: 22px; }
.now-label { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime-dim); }
.now p { margin-top: 8px; font-size: 0.92rem; color: var(--ink-soft); }
.about-copy h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 500; margin-bottom: 22px; }
.about-copy .lead { font-size: 1.3rem; color: var(--ink); margin-bottom: 18px; line-height: 1.45; }
.about-copy p { color: var(--ink-soft); margin-bottom: 16px; }
.inline-link { color: var(--ink); border-bottom: 1px solid var(--lime); padding-bottom: 1px; transition: color 0.16s; }
.inline-link:hover { color: var(--lime); }
.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.stack h4 { font-family: 'Inter', sans-serif; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.stack p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ── Off the clock / music ───────────────────────────────────────── */
.listen-card {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 44px; align-items: center;
  padding: 44px; border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: linear-gradient(150deg, var(--panel-2), transparent);
}
.listen-copy h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 500; margin: 12px 0 14px; }
.listen-copy h2 em { color: var(--lime); }
.listen-copy p { color: var(--ink-soft); max-width: 46ch; }
.listen-side { display: grid; gap: 18px; justify-items: start; }
.yt-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.95rem; color: #fff;
  background: linear-gradient(180deg, #ff3b30, #df241b);
  padding: 12px 20px; border-radius: 999px;
  transition: transform 0.18s var(--ease), box-shadow 0.2s;
}
.yt-link:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(255, 59, 48, 0.65); }
.yt-mark {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.22);
  display: grid; place-items: center; font-size: 0.7rem;
}
.genres { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.genres li {
  font-size: 0.78rem; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
}

/* ── Contact ─────────────────────────────────────────────────────── */
.contact { padding-bottom: 100px; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start;
  padding-top: 40px; border-top: 1px solid var(--line-soft);
}
.contact-copy h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; line-height: 1.05; margin: 14px 0 18px; }
.contact-copy h2 em { color: var(--lime); }
.contact-copy > p { color: var(--ink-soft); max-width: 44ch; }
.voice-hint {
  margin-top: 22px; padding: 14px 16px; border-radius: var(--radius);
  background: rgba(205, 242, 78, 0.07); border: 1px solid rgba(205, 242, 78, 0.2);
  font-size: 0.92rem; color: var(--ink);
}
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; }
.socials a { font-size: 0.95rem; color: var(--ink-soft); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: color 0.16s, border-color 0.16s; }
.socials a:hover { color: var(--lime); border-color: var(--lime); }

.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 0.96rem; color: var(--ink);
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 15px; outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus {
  border-color: rgba(205, 242, 78, 0.55); background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(205, 242, 78, 0.14);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-fine { text-align: center; font-size: 0.8rem; color: var(--ink-faint); }

.contact-success { grid-column: 1 / -1; text-align: center; padding: 50px 20px; }
.cs-mark {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem; color: #10110a; background: var(--lime);
}
.contact-success h3 { font-family: 'Fraunces', serif; font-size: 1.7rem; font-weight: 500; margin-bottom: 8px; }
.contact-success p { color: var(--ink-soft); }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 36px 30px 64px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line-soft);
}
.footer .wordmark { font-size: 1.05rem; }
.foot-note { font-size: 0.85rem; color: var(--ink-faint); }

/* ── Reveal ──────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip-track, .status-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-portrait { position: static; }
  .portrait { max-width: 180px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .stack { grid-template-columns: 1fr; gap: 16px; }
  .listen-card { grid-template-columns: 1fr; gap: 28px; padding: 30px; }
}
@media (max-width: 620px) {
  .project { grid-template-columns: 36px 1fr 24px; gap: 14px; }
  .p-tags, .p-year { display: none; }
  .hero-meta { gap: 28px; }
}
