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

:root {
  --bg:          #FFFEF9;
  --card-bg:     #FFF8F2;
  --card-alt-bg: #F7F7F7;
  --header-bg:   #D9D5CA;
  --divider:     #D9D5CA;
  --text:        #181818;
  --text-muted:  #757575;
  --content-w:   1148px;
  --accent:      #181818;

  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  32px;
  --space-lg:  64px;
  --space-xl:  96px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: var(--text); text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

/* ══ Layout ══ */
.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--divider);
  margin: var(--space-lg) 0;
}

/* ══ Typography: Section Heading (Display 2) ══ */
.section-heading {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 40px;
}

/* ══ Labels / Utility ══ */
.label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ══════════════════════════════
   NAVIGATION
══════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
}

.nav__inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Two-tone logo: VINEET bold · SHARMA muted */
.nav__logo {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.nav__logo-first {
  font-weight: 700;
  color: var(--text);
}

.nav__logo-last {
  font-weight: 400;
  color: var(--text-muted);
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
}

/* Hamburger button — hidden on desktop */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 10;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  padding: 140px 0 80px;
}

.hero__inner {
  max-width: 944px;
  margin: 0 auto;
}

/* Landing cover images are configured in src/_data/homepage.json */
.hero__cover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.hero__cover-card {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--card-bg);
}

.hero__cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__headline {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  max-width: 720px;
  margin-bottom: 20px;
}

.hero__tagline {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero__bio {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 640px;
}

/* ══════════════════════════════
   SECTION STRUCTURE
══════════════════════════════ */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--divider);
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
}

/* Small uppercase label (used in Notes header etc.) */
.section__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.section__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--divider);
  transition: color 0.2s;
  white-space: nowrap;
}

.section__link:hover { color: var(--text); }

/* ══════════════════════════════
   JOURNEY
══════════════════════════════ */
.journey {
  display: flex;
  flex-direction: column;
}

.journey__entry {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0 40px;
  padding: 24px 0;
  border-top: 1px solid var(--divider);
  align-items: start;
}

.journey__entry:last-child {
  border-bottom: 1px solid var(--divider);
}

.journey__org {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 2px;
}

/* Coloured circle badge with org initials.
   Replace the <span> with <img> to use a real logo. */
.journey__org-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-transform: uppercase;
}

.journey__org-logo-wrap {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--divider);
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}

.journey__org-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.journey__org-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.journey__roles {
  display: flex;
  flex-direction: column;
}

.journey__role-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 6px 0;
}

.journey__role-row + .journey__role-row {
  border-top: 1px solid var(--divider);
}

.journey__role-name {
  font-size: 16px;
  color: var(--text);
}

.journey__role-year {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ══════════════════════════════
   PROJECT CARDS
══════════════════════════════ */
.project-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.project-card__image-wrap {
  width: 100%;
  overflow: hidden;
}

.project-card__image {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-card__image--empty {
  aspect-ratio: 16 / 7;
  background: var(--header-bg);
}

.project-card:hover .project-card__image {
  transform: scale(1.02);
}

.project-card__footer {
  padding: 20px 24px 24px;
}

.project-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.project-card__tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  background: var(--card-alt-bg);
  padding: 3px 10px;
  border-radius: 100px;
}

.project-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: 0;
}

/* ══════════════════════════════
   BLOG LIST
══════════════════════════════ */
.blog-list { list-style: none; }

.blog-list__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--divider);
}

.blog-list__item:first-child { border-top: 1px solid var(--divider); }

.blog-list__title { font-size: 17px; font-weight: 500; }

.blog-list__title a:hover { border-bottom: 1px solid var(--text); }

.blog-list__tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}


.reaction-belt {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--divider);
}

.reaction-belt__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--divider);
  border-radius: 100px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.reaction-belt__item:hover,
.reaction-belt__item.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--text-on-color, #fff);
  transform: translateY(-1px);
}

.reaction-belt__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 12px;
  line-height: 1;
}

/* ══════════════════════════════
   AWARDS
══════════════════════════════ */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.award-card {
  display: block;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 28px;
  color: var(--text);
}

.award-card--link {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.award-card--link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.07);
}

.award-card__logo {
  height: 72px;
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
}

.award-card__logo img {
  max-width: 150px;
  max-height: 72px;
  object-fit: contain;
}

.award-card__logo--red-dot img {
  max-width: 96px;
}

.award-card__logo--if img {
  max-width: 150px;
  border-radius: 2px;
}

.award-card__logo--ux img {
  max-width: 180px;
}

.award-card__name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.award-card__year {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.award-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ══════════════════════════════
   CONTACT
══════════════════════════════ */
.contact {
  padding: 80px 0;
  border-top: 1px solid var(--divider);
}

.contact__heading {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0;
}

.contact__text {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.contact__links a {
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--text);
  transition: opacity 0.2s;
}

.contact__links a:hover { opacity: 0.5; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer {
  border-top: 1px solid var(--divider);
  padding: 32px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* ══════════════════════════════
   BLOG POST (single)
══════════════════════════════ */
.post {
  padding: 160px 0 80px;
  max-width: 720px;
  margin: 0 auto;
}

.post__back {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
  display: inline-block;
}

.post__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  margin-bottom: 16px;
}

.post__meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.post__content { font-size: 17px; line-height: 1.8; }

.post__content h2 { font-size: 24px; font-weight: 700; margin: 48px 0 16px; }
.post__content h3 { font-size: 20px; font-weight: 600; margin: 36px 0 12px; }
.post__content p { margin-bottom: 24px; }
.post__content img { border-radius: 12px; margin: 32px 0; }

.post__content blockquote {
  border-left: 3px solid var(--divider);
  padding-left: 20px;
  color: var(--text-muted);
  font-style: italic;
  margin: 32px 0;
}

/* ══════════════════════════════
   CASE STUDY LAYOUT
══════════════════════════════ */
.case-study { padding: 120px 0 80px; }

.case-study__back {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
  display: inline-block;
}

.case-study__back:hover { color: var(--text); }

/* ══════════════════════════════
   RESPONSIVE — Tablet (≤ 900px)
══════════════════════════════ */
@media (max-width: 900px) {
  .hero__headline { font-size: 40px; }

  .hero__cover-grid {
    gap: 20px;
  }

  .section {
    padding: 56px 0;
  }

  .journey__entry {
    grid-template-columns: 180px 1fr;
    gap: 0 24px;
  }
}

/* ══════════════════════════════
   RESPONSIVE — Mobile (≤ 640px)
══════════════════════════════ */
@media (max-width: 640px) {
  /* Nav: show hamburger, collapse links */
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--divider);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .nav--open .nav__links {
    display: flex;
  }

  .nav__links li a {
    display: block;
    padding: 14px 24px;
    font-size: 14px;
  }

  /* Hero */
  .hero { padding: 100px 0 56px; }

  .hero__cover-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 32px;
  }

  .hero__cover-card {
    aspect-ratio: 16 / 11;
    border-radius: 8px;
  }

  .hero__cover-card:not(:first-child) {
    display: none;
  }

  .hero__headline {
    font-size: 30px;
  }

  .hero__tagline {
    line-height: 1.6;
  }

  .hero__bio { font-size: 16px; }

  /* Section heading */
  .section-heading { font-size: 26px; }

  /* Journey: stack org above roles */
  .journey__entry {
    grid-template-columns: 1fr;
    gap: 12px 0;
  }

  .journey__org {
    padding-top: 0;
  }

  /* Blog list: allow title to wrap, tag below on very narrow */
  .blog-list__item {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px;
  }

  /* Awards grid: single column */
  .awards-grid {
    grid-template-columns: 1fr;
  }

  .reaction-belt {
    gap: 8px;
  }

  .reaction-belt__item {
    flex: 1 1 calc(50% - 8px);
    justify-content: space-between;
  }

  /* Contact */
  .contact { padding: 56px 0; }
  .contact__heading { font-size: 28px; }
  .contact__links { flex-wrap: wrap; }

  /* Post */
  .post { padding: 120px 0 56px; }
  .post__title { font-size: 30px; }

  /* Case study */
  .case-study { padding: 100px 0 56px; }
}
