/* ============================================================
   Kush Patel — personal site
   Palette: near-black + teal. Solid colors, hairline borders,
   no gradients. Inter for UI, JetBrains Mono for labels.
   ============================================================ */

:root {
  --bg:        #0B0E0F;
  --bg-elev:   #111617;
  --bg-elev-2: #161C1D;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);

  --text:      #E9EEEE;
  --text-dim:  #9AA8A8;
  --text-faint:#677474;

  --teal:      #2DD4BF;
  --teal-deep: #14B8A6;
  --teal-soft: rgba(45, 212, 191, 0.10);

  --maxw: 1080px;
  --pad: 24px;

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

/* ───────── Reset ───────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* faint dot grid texture — not a gradient */
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
strong { color: var(--text); font-weight: 600; }
::selection { background: var(--teal); color: #04110F; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ───────── Shared bits ───────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
}
.accent { color: var(--teal); }

.section { padding: 110px 0; border-top: 1px solid var(--border); }
.section__head { margin-bottom: 56px; }
.section__title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: 9px;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform 0.2s var(--ease); }
.btn--solid { background: var(--teal); color: #04110F; font-weight: 600; }
.btn--solid:hover { background: #5EE6D5; transform: translateY(-2px); }
.btn--solid:hover svg { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

/* ───────── Nav ───────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 15, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav__brand { display: flex; align-items: center; gap: 11px; font-weight: 600; }
.nav__mark {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; font-weight: 500;
  color: var(--teal);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  background: var(--bg-elev);
}
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 0.9rem; color: var(--text-dim);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav__links a:hover { color: var(--text); }
.nav__cta { padding: 8px 15px; }

/* ───────── Hero ───────── */
.hero { padding: clamp(90px, 16vh, 150px) 0 96px; }
.hero__title {
  font-size: clamp(2.3rem, 6.4vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 28px;
  max-width: 14ch;
}
.hero__lead {
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  color: var(--text-dim);
  max-width: 60ch;
  margin-bottom: 38px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* "Currently building" status pill */
.now {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding: 9px 9px 9px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.now:hover { border-color: var(--border-2); transform: translateY(-2px); }
.now__pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 var(--teal-soft);
  animation: pulse 2.4s var(--ease) infinite;
}
.now__label {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint);
}
.now__text { font-size: 0.92rem; color: var(--text-dim); }
.now__text strong { color: var(--text); }
.now__link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.85rem; font-weight: 500; color: var(--teal);
  padding: 5px 11px; border-radius: 999px; background: var(--teal-soft);
}

.inline-link {
  color: var(--teal);
  border-bottom: 1px solid rgba(45, 212, 191, 0.35);
  transition: border-color 0.2s var(--ease);
}
.inline-link:hover { border-color: var(--teal); }

/* ───────── Credibility strip ───────── */
.strip { border-top: 1px solid var(--border); }
.strip__inner {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px;
  padding: 26px var(--pad);
}
.strip__label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint);
}
.strip__logos { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.strip__logos li { color: var(--text-dim); font-weight: 500; font-size: 0.98rem; }
.strip__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--border-2); }

/* ───────── About ───────── */
.about__grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 60px;
  align-items: start;
}
.about__copy p { color: var(--text-dim); margin-top: 18px; max-width: 56ch; }
.about__copy .section__title { margin-bottom: 6px; }

.about__facts { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 40px; }
.fact { display: flex; flex-direction: column; gap: 6px; }
.fact__num {
  font-size: 2.1rem; font-weight: 700; color: var(--teal);
  letter-spacing: -0.02em; line-height: 1;
}
.fact__label { font-size: 0.82rem; color: var(--text-faint); line-height: 1.4; }

.about__aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 22px; }
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elev);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.portrait::after {
  /* subtle inner hairline frame */
  content: "";
  position: absolute; inset: 10px;
  border: 1px dashed var(--border-2);
  border-radius: 10px;
}
.portrait__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 2;
}
.portrait__mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 3.4rem; font-weight: 500; color: var(--teal);
  opacity: 0.85;
}
.portrait__hint {
  position: absolute; bottom: 16px;
  font-size: 0.72rem; color: var(--text-faint);
  font-family: "JetBrains Mono", monospace; letter-spacing: 0.04em;
}
.about__meta { display: flex; flex-direction: column; }
.about__meta li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.about__meta li:last-child { border-bottom: none; }
.about__meta span { color: var(--text-faint); }
.about__meta strong { text-align: right; }

/* ───────── Timeline ───────── */
.timeline { display: flex; flex-direction: column; }
.tl {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 34px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.tl:first-child { border-top: none; padding-top: 0; }
.tl__meta { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.tl__date {
  font-family: "JetBrains Mono", monospace; font-size: 0.78rem;
  letter-spacing: 0.04em; color: var(--teal);
}
.tl__loc { font-size: 0.82rem; color: var(--text-faint); }
.tl__role { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }
.tl__co { color: var(--text-dim); font-weight: 500; }
.tl__sub { color: var(--text-faint); font-size: 0.85rem; margin-top: 2px; margin-bottom: 14px; }
.tl__points { display: flex; flex-direction: column; gap: 10px; }
.tl__points li {
  position: relative; padding-left: 20px;
  color: var(--text-dim); font-size: 0.95rem;
}
.tl__points li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: transparent; border: 1px solid var(--teal);
}

/* ───────── Project cards ───────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  display: flex; flex-direction: column;
  padding: 26px 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--bg-elev-2); }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.card__tag {
  font-family: "JetBrains Mono", monospace; font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-soft);
  border: 1px solid rgba(45, 212, 191, 0.25);
  padding: 4px 9px; border-radius: 999px;
}
.card__status {
  font-size: 0.78rem; color: var(--text-faint);
  display: inline-flex; align-items: center; gap: 6px;
}
.card__status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); animation: pulse 2.4s var(--ease) infinite;
}
.card__title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.card__desc { color: var(--text-dim); font-size: 0.92rem; flex-grow: 1; }
.card__stack { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.card__stack li {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  color: var(--text-dim); padding: 4px 9px;
  border: 1px solid var(--border); border-radius: 6px;
}
.card__cta {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 22px;
  font-size: 0.9rem; font-weight: 500; color: var(--teal);
  transition: gap 0.2s var(--ease);
}
.card--link:hover .card__cta { gap: 12px; }

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--teal-soft); }
  50% { opacity: 0.6; box-shadow: 0 0 0 5px transparent; }
}

/* ───────── Photography ───────── */
.photo__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.photo__cta { flex-shrink: 0; }
.photo__lead { color: var(--text-dim); max-width: 52ch; margin-top: 14px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elev);
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame:hover { transform: scale(1.012); border-color: var(--border-2); }
.frame--wide { grid-column: span 2; grid-row: span 2; }
.frame span {
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  letter-spacing: 0.04em; color: var(--text-faint);
}
.frame::before {
  /* tiny corner crop marks so placeholders read as "photo slot" */
  content: ""; position: absolute; inset: 12px;
  border: 1px dashed var(--border-2); border-radius: 8px; pointer-events: none;
}

/* ───────── Skills ───────── */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 48px; }
.skills__label {
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 16px;
}
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips li {
  font-size: 0.88rem; color: var(--text-dim);
  padding: 8px 13px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg-elev);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.chips li:hover { border-color: var(--teal); color: var(--text); }

/* ───────── Contact ───────── */
.contact { text-align: center; }
.contact__inner { max-width: 640px; margin: 0 auto; }
.contact__inner .eyebrow { justify-content: center; }
.contact__title {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px;
}
.contact__lead { color: var(--text-dim); font-size: 1.08rem; margin-bottom: 24px; }
.contact__email {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--teal);
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(45, 212, 191, 0.3);
  transition: border-color 0.2s var(--ease);
}
.contact__email:hover { border-color: var(--teal); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ───────── Footer ───────── */
.footer { border-top: 1px solid var(--border); padding: 34px 0; }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.footer__brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 0.92rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a { font-size: 0.85rem; color: var(--text-dim); transition: color 0.2s var(--ease); }
.footer__links a:hover { color: var(--teal); }
.footer__note { color: var(--text-faint); font-size: 0.82rem; }

/* ───────── Scroll reveal ───────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ───────── Responsive ───────── */
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; gap: 44px; }
  .about__aside { position: static; max-width: 360px; }
  .cards { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; gap: 14px; }
  .tl__meta { flex-direction: row; align-items: baseline; gap: 14px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .frame--wide { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 620px) {
  .section { padding: 78px 0; }
  .nav__links { display: none; }
  .skills { grid-template-columns: 1fr; gap: 30px; }
  .about__facts { gap: 28px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .photo__head { flex-direction: column; align-items: flex-start; }
  .now { flex-wrap: wrap; gap: 8px 10px; }
  .now__text { width: 100%; order: 3; }
}
