/* ============================================================
   Singh Piyush — personal site
   Visual language inspired by kanesherwell.com
   Plain CSS, no framework, no build step.
   ============================================================ */

:root {
  --text-primary: #121212;
  --text-secondary: #335f4a;
  --text-muted: #5b6b62;
  --green: #00371d;
  --green-light: #668777;
  --green-hover: #0c4c2e;
  --dark-blue: #003580;
  --purple: #4a249d;
  --orange: #ff9b41;
  --border: #e2e2e2;
  --bg: #ffffff;
  --bg-secondary: #e5ebe7;
  --bg-mint: #eef3f0;

  --container: 80rem;
  --pad-global: 6.25rem;
  --pad-tablet: 2rem;
  --pad-mobile: 1.25rem;

  --radius: 0.5rem;
  --radius-lg: 1.25rem;

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
*, *::before, *::after { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* -------- Typography -------- */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; color: var(--text-primary); }
h1 { font-size: clamp(2.75rem, 6vw + 0.5rem, 4.5rem); line-height: 1.04; font-weight: 600; }
h2 { font-size: clamp(2rem, 3.5vw + 0.5rem, 3rem); line-height: 1.05; font-weight: 500; }
h3 { font-size: clamp(1.375rem, 1.4vw + 0.75rem, 2rem); line-height: 1.1; font-weight: 500; }
p  { margin: 0 0 1rem; }

.accent { color: var(--text-secondary); }
.muted { color: var(--text-muted); font-weight: 400; }
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.eyebrow--light { color: var(--green-light); }

/* -------- Layout -------- */
.padding-global {
  padding-left: var(--pad-global);
  padding-right: var(--pad-global);
}
.container-large {
  max-width: var(--container);
  margin: 0 auto;
}
.section { padding: 5rem 0; }
.section--hero { padding: 0 0 5rem; background: var(--bg-secondary); }
.section--what { padding: 7rem 0; }
.section--offer { padding: 6rem 0; background: var(--bg-mint); border-radius: 2rem; margin: 2rem auto; max-width: calc(var(--container) + 2rem); }
.section--capabilities { padding: 6rem 0; }
.section--experience { padding: 7rem 0; }
.section--education { padding: 5rem 0 7rem; }
.section--works { padding: 6rem 0; }
.section--feedback { padding: 6rem 0 8rem; }

/* -------- Buttons / Links -------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  border: none;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.button:hover { background: var(--green-hover); transform: translateY(-1px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-weight: 600;
  position: relative;
}
.link-arrow span { transition: transform .3s var(--ease); display: inline-block; }
.link-arrow:hover span { transform: translateX(4px); }
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }

/* -------- Nav -------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-secondary);
  padding: 1rem 0;
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(229, 235, 231, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__logo {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.nav__menu {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  margin-right: 1.5rem;
}
.nav__link {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--text-primary);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 0.6rem 1rem; font-size: 0.9rem; }
.nav__burger {
  display: none;
  background: transparent;
  border: 0;
  width: 32px; height: 24px;
  flex-direction: column; justify-content: space-between;
}
.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* -------- Hero -------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding-top: 3.5rem;
  position: relative;
}
.hero__copy { max-width: 32rem; }
.hero__copy h1 { margin-bottom: 1.75rem; }
.hero__sub p { font-size: 1.125rem; color: var(--text-primary); margin-bottom: 1.25rem; max-width: 28rem; }

.hero__media {
  position: relative;
  aspect-ratio: 1 / 1.05;
  max-width: 36rem;
  margin-left: auto;
  width: 100%;
}
.hero__photo {
  position: absolute;
  inset: 0;
}
.hero__blob {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: drop-shadow(0 24px 40px rgba(0,55,29,0.18));
  pointer-events: none;
}
.hero__squiggle {
  position: absolute;
  right: -2.5rem;
  bottom: 8%;
  width: 11rem;
  height: auto;
  z-index: 1;
  opacity: 0.7;
  pointer-events: none;
  transform: rotate(-8deg);
}
.hero__photo img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(0.97) contrast(1.02) drop-shadow(0 18px 28px rgba(0,55,29,0.18));
  transition: transform .8s var(--ease);
}
.hero__media:hover .hero__photo img { transform: scale(1.02); }

.stat-pill {
  position: absolute;
  background: #fff;
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  box-shadow: 0 14px 32px -10px rgba(0,55,29,0.2);
  min-width: 9.5rem;
  z-index: 2;
}
.stat-pill--left { left: -1.5rem; top: 22%; }
.stat-pill--right { right: -1.5rem; bottom: 14%; }
.stat-pill__num {
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}
.stat-pill__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.25;
}

.hero__expertise {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,55,29,0.12);
  flex-wrap: wrap;
}
.hero__expertise-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,55,29,0.12);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* -------- What I do -------- */
.what {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: start;
}
.what__left h2 { margin-bottom: 1.5rem; }
.what__left p { max-width: 34rem; color: var(--text-primary); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat__num {
  font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.5rem);
  font-weight: 600;
  color: var(--green);
  line-height: 1;
}
.stat__label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.marquee {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  height: 22rem;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.marquee__col { overflow: hidden; }
.marquee__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.marquee__col--up .marquee__inner { animation: scrollUp 28s linear infinite; }
.marquee__col--down .marquee__inner { animation: scrollDown 32s linear infinite; }

@keyframes scrollUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@keyframes scrollDown {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4.5rem;
  background: var(--bg-mint);
  border: 1px solid rgba(0,55,29,0.08);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.brand:hover { background: var(--green); color: #fff; }

/* -------- Offer / Tabs -------- */
.offer__head { max-width: 48rem; margin-bottom: 3rem; }
.offer__head h2 { margin-bottom: 1rem; }
.offer__head p { color: var(--text-muted); }

.tabs__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.tab {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1.1rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.tab:hover { border-color: var(--green); }
.tab.is-active { background: var(--green); border-color: var(--green); color: #fff; }

.tab-panel { display: none; flex-wrap: wrap; gap: 0.6rem; }
.tab-panel.is-active { display: flex; animation: fadeIn .4s var(--ease); }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.pill:hover { transform: translateY(-2px); border-color: var(--green); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -------- Capabilities -------- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.capabilities { list-style: none; padding: 0; margin: 0; }
.capabilities li {
  padding: 0.95rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.capabilities li:last-child { border-bottom: 0; }

/* -------- Experience -------- */
.experience h2 { margin-bottom: 3rem; }
.timeline { display: flex; flex-direction: column; gap: 2.5rem; }
.timeline__item { display: grid; grid-template-columns: 3rem 1fr; gap: 1.5rem; }
.timeline__rail { display: flex; flex-direction: column; align-items: center; padding-top: 0.6rem; }
.dot {
  width: 14px; height: 14px; border-radius: 999px;
  background: #fff; border: 2px solid var(--green-light);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.dot--active {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 6px rgba(0,55,29,0.12);
}
.line { flex: 1; width: 2px; background: var(--border); margin-top: 0.5rem; }

.timeline__body {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.timeline__body:hover {
  border-color: rgba(0,55,29,0.3);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -24px rgba(0,55,29,0.25);
}
.timeline__body h3 { margin-bottom: 0.65rem; }
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.meta strong { color: var(--text-primary); font-weight: 600; }
.sep {
  width: 4px; height: 4px;
  border-radius: 999px;
  background: var(--green-light);
  display: inline-block;
}
.more p { color: var(--text-muted); }
.read-more {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 0.25rem;
}
.read-more:hover { color: var(--green); }

/* -------- Education -------- */
.education h2 { margin-bottom: 2.5rem; }
.education__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.5rem;
}
.edu-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.edu-card:hover { border-color: rgba(0,55,29,0.3); transform: translateY(-2px); }
.edu-card__role {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.edu-card__school { color: var(--text-secondary); font-weight: 600; margin-bottom: 0.5rem; }
.edu-card__meta { color: var(--text-muted); font-size: 0.92rem; line-height: 1.45; }
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  background: rgba(0,55,29,0.08);
  color: var(--green);
  border-radius: 999px;
}

/* -------- Works -------- */
.works__head { text-align: center; margin-bottom: 3rem; }
.works__head h2 { margin-bottom: 0.75rem; }
.works__head p { color: var(--text-muted); }

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.25rem;
}
.work-card {
  display: block;
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  position: relative;
  min-height: 22rem;
  color: #fff;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.work-card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px -28px rgba(0,0,0,0.35); }
.work-card__inner {
  height: 100%;
  padding: 2rem 1.85rem 1.85rem;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 60%);
}
.work-card__inner h3 { color: #fff; margin-bottom: 0.75rem; }
.work-card__meta {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
  font-weight: 500;
}
.work-card__meta .sep { background: rgba(255,255,255,0.5); }
.work-card__body { color: rgba(255,255,255,0.86); font-size: 0.95rem; line-height: 1.5; }
.work-card__cta {
  margin-top: auto;
  padding-top: 1.5rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  letter-spacing: -0.005em;
}

.work-card--green  .work-card__inner { background-color: var(--green); }
.work-card--purple .work-card__inner { background-color: var(--purple); }
.work-card--orange .work-card__inner { background-color: var(--orange); color: #1a1a1a; }
.work-card--orange .work-card__inner h3,
.work-card--orange .work-card__inner .work-card__body,
.work-card--orange .work-card__inner .work-card__cta,
.work-card--orange .work-card__inner .work-card__meta { color: #1a1a1a; }
.work-card--orange .work-card__meta .sep { background: rgba(0,0,0,0.45); }
.work-card--blue   .work-card__inner { background-color: var(--dark-blue); }

/* -------- Feedback / Recognition -------- */
.feedback__card {
  position: relative;
  background: var(--bg-mint);
  border-radius: 2rem;
  padding: 3.5rem 3rem;
  max-width: 56rem;
  margin: 0 auto;
}
.feedback__quote {
  font-size: clamp(1.1rem, 1.2vw + 0.6rem, 1.35rem);
  line-height: 1.55;
  color: var(--text-primary);
  margin: 0;
}
.feedback__mark {
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 9rem;
  line-height: 1;
  color: var(--green);
  opacity: 0.18;
  font-family: Georgia, serif;
  pointer-events: none;
}

/* -------- Footer -------- */
.footer {
  background: var(--green);
  color: #d6e2db;
  padding: 5rem 0 2.5rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.footer__left { display: flex; flex-direction: column; gap: 2rem; }
.footer__logo {
  font-size: 1.5rem; font-weight: 700; line-height: 1.05; color: #fff;
}
.footer__links { display: flex; flex-direction: column; gap: 0.65rem; }
.footer__links a { color: #c1d4c9; font-size: 1rem; }
.footer__links a:hover { color: #fff; }

.footer__right h2 { color: #fff; margin-bottom: 1.5rem; max-width: 26rem; }
.footer__right .accent { color: var(--orange); }
.footer__right .button { background: #fff; color: var(--green); }
.footer__right .button:hover { background: #e5ebe7; }

.footer__bottom {
  grid-column: 1 / -1;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: #a8bdb1;
}
.footer__social { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer__social a { color: #d6e2db; }
.footer__social a:hover { color: #fff; }

/* -------- Reveal animations -------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__col--up .marquee__inner,
  .marquee__col--down .marquee__inner { animation: none; }
  html { scroll-behavior: auto; }
}

/* =================================================================
   Responsive
   ================================================================= */

@media (max-width: 1100px) {
  :root { --pad-global: 2.5rem; }
  .hero { grid-template-columns: 1fr; gap: 3.5rem; padding-top: 2.5rem; }
  .hero__media { max-width: 28rem; margin: 0 auto; }
  .what { grid-template-columns: 1fr; gap: 3rem; }
  .marquee { height: 18rem; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .education__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --pad-global: 2rem; }
  .section { padding: 4rem 0; }
  .section--hero { padding-bottom: 4rem; }
  .section--what, .section--experience, .section--works, .section--feedback { padding: 5rem 0; }

  h1 { font-size: clamp(2.5rem, 9vw, 3.5rem); }
  h2 { font-size: clamp(1.85rem, 6vw, 2.4rem); }

  .nav__menu { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__menu {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    padding: 1.5rem var(--pad-global);
    background: var(--bg-secondary);
    margin: 0;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .stat-pill--left { left: -0.5rem; top: 18%; }
  .stat-pill--right { right: -0.5rem; bottom: 8%; }
  .stat-pill { min-width: 8.5rem; padding: 0.75rem 0.9rem; }
  .stat-pill__num { font-size: 1.35rem; }

  .stats { grid-template-columns: 1fr 1fr; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .education__grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .timeline__item { grid-template-columns: 2rem 1fr; gap: 1rem; }
  .timeline__body { padding: 1.5rem 1.5rem; border-radius: 1rem; }

  .feedback__card { padding: 2.5rem 1.75rem; border-radius: 1.25rem; }
  .feedback__mark { right: 1rem; font-size: 6rem; }
}

@media (max-width: 480px) {
  :root { --pad-global: 1.25rem; }
  .hero__copy h1 br { display: none; }
  .hero__copy h1 .accent { display: block; margin-bottom: 0.1em; }
  .stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .meta { font-size: 0.88rem; }
  .stat-pill__label { font-size: 0.72rem; }
}
