/* Home page. Layouts only; tokens and components live in base.css. */

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 104px); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 20px; }
.hero__copy .h1 { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.3rem); max-width: 17ch; text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* Title animates per word: each word rises out of its own overflow box.
   The box needs padding for descenders (y, g, p) or overflow:hidden clips them;
   the matching negative margin keeps line spacing unchanged. */
[data-hero-title] .w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding-bottom: 0.18em; margin-bottom: -0.18em;
}
[data-hero-title] .w > span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease); }
[data-hero-title].is-in .w > span { transform: none; }

.hero__figure { margin: 0; }
.hero__frame { background: var(--surface); }
.hero__stage { position: relative; aspect-ratio: 4 / 3; }
.twin-canvas { width: 100%; height: 100%; cursor: grab; }
.twin-canvas:active { cursor: grabbing; }

/* ---------- products ---------- */
.product-grid { gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.product {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 44px) clamp(24px, 3vw, 40px) 0;
  position: relative; transition: background-color 0.4s var(--ease);
}
.product + .product { border-left: 1px solid var(--rule); padding-left: clamp(24px, 3vw, 44px); }
.product::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--action); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.product:hover::after { transform: scaleX(1); }
.product__top { display: flex; flex-direction: column; gap: 6px; }
.product .body { flex: 1; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.step { padding: clamp(22px, 2.6vw, 34px) clamp(20px, 3vw, 44px) 0 0; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 10px; position: relative; }
.step + .step { margin-left: clamp(20px, 3vw, 44px); padding-right: 0; }
.step h3 { margin-top: 0; }
.step::after { content: ""; position: absolute; left: 0; top: -2px; width: 0; height: 2px; background: var(--action); transition: width 0.7s var(--ease); }
.steps.is-in .step::after { width: 100%; }
.steps.is-in .step:nth-child(2)::after { transition-delay: 0.12s; }
.steps.is-in .step:nth-child(3)::after { transition-delay: 0.24s; }

/* ---------- deliverables ---------- */
.deliver { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.deliver__head { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--nav-total) + 24px); }
.deliver__head .tlink { margin-top: 6px; }
.deliver__rows { border-top: 1px solid var(--ink); }

/* ---------- proof ---------- */
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); padding-bottom: clamp(36px, 5vw, 64px); }
.proof__stat { display: flex; flex-direction: column; gap: 10px; }
.proof__num { font-family: var(--display); font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem); letter-spacing: -0.04em; line-height: 1; }
.proof__num em { font-style: normal; font-family: var(--sans); font-size: 0.26em; font-weight: 500; letter-spacing: 0; color: var(--ink-3); margin-left: 0.35em; }
.proof__stat p { max-width: 34ch; }

.backers { display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: center; gap: clamp(16px, 3vw, 40px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--rule); }
.backers__logos { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
/* Each logo file carries a different amount of transparent padding, so heights are set
   per file to land every visible mark on the same optical size (~30px). */
.blogo__mark { height: 46px; display: flex; align-items: center; justify-content: center; }
.blogo img { width: auto; filter: grayscale(1); opacity: 0.5; transition: opacity 0.4s, filter 0.4s; }
.blogo:hover img { opacity: 1; filter: grayscale(0); }
.blogo--isb img { height: 82px; }
.blogo--iitm img { height: 46px; }
.blogo--nirmaan img { height: 34px; }
.blogo--wide img { height: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero__copy .h1 { max-width: none; }
  .deliver { grid-template-columns: minmax(0, 1fr); }
  .deliver__head { position: static; }
  .backers { grid-template-columns: auto 1fr; row-gap: 20px; }
}
@media (max-width: 720px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product { padding: clamp(22px, 5vw, 32px) 0; }
  .product + .product { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { padding-right: 0; }
  .step + .step { margin-left: 0; margin-top: 24px; }
  .proof { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .backers { grid-template-columns: 1fr; }
}

/* Same zoom hint as the product page viewer (styles in page.css are not loaded here). */
.viewer__zoomhint {
  position: absolute; inset: auto 0 0 0;
  display: flex; align-items: center; justify-content: center; gap: 0.5ch;
  padding: 13px; margin: 0; max-width: none;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); background: color-mix(in srgb, var(--ink) 80%, transparent);
  backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(100%);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}
.viewer__zoomhint b { font-weight: 500; border: 1px solid currentColor; border-radius: 3px; padding: 1px 6px; margin: 0 0.15ch; }
.viewer__zoomhint.is-on { opacity: 1; transform: none; }
