/* ============================================================
   East7 — HR for India Capability Centres
   Ink-navy + orange, dark editorial throughout
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-600-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-600-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-400-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-400-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0f1322;
  --text: #f2ede3;
  --muted: #a8aebe;
  --faint: #6a7183;
  --line: rgba(242, 237, 227, 0.16);
  --line-soft: rgba(242, 237, 227, 0.09);
  --accent: #f09c52;
  --accent-strong: #f6b072;
  --ghost: rgba(240, 156, 82, 0.13);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  --shell: 74rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --theme-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: #fff8ee;
}

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(6rem, 12vw, 10rem);
}

/* native anchor jumps (no-JS / reduced motion) must clear the fixed nav */
[id] {
  scroll-margin-top: 4.5rem;
}

/* ---------- Type ---------- */
.display {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 20ch;
}

.accent-italic {
  font-style: italic;
  color: var(--accent);
}

.kicker {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.kicker-slash {
  color: var(--faint);
  margin-right: 0.35em;
  letter-spacing: 0;
}

.section-head {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section-head .kicker {
  margin-bottom: 1.4rem;
}

.section-intro {
  margin-top: 1.6rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-head--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-head--center .display {
  max-width: 16ch;
}

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: transform 0.45s var(--theme-ease);
}

.site-nav.nav-hidden {
  transform: translateY(-100%);
}

.nav-inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transition: opacity 0.4s ease, border-color 0.4s ease;
}

.site-nav.is-scrolled::before {
  opacity: 1;
  border-bottom-color: var(--line-soft);
}

.nav-inner > * {
  position: relative;
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}

.brand-7 {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.hero-kicker {
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.9rem, 8.4vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.hero-title .line-inner {
  display: inline-block;
  will-change: transform;
}

.hero-below {
  margin-top: clamp(2rem, 4.5vw, 3.5rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-sub {
  max-width: 33rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, transform 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-solid {
  background: var(--text);
  color: var(--bg);
}

.btn-solid:hover {
  background: var(--accent-strong);
  color: #fff8ee;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  width: 1px;
  height: 3.4rem;
  background: var(--line);
  overflow: hidden;
}

.hero-scroll-hint span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: top;
  animation: scrollhint 2.2s var(--theme-ease) infinite;
}

@keyframes scrollhint {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line-soft);
  padding-block: 1.1rem;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee-row {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-row i {
  font-style: normal;
  color: var(--accent);
  margin-inline: 1.4rem;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   FOCUS
   ============================================================ */
.focus {
  padding-block: clamp(5rem, 10vw, 8rem);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.focus-card {
  background: var(--bg);
  padding: clamp(1.8rem, 4vw, 3.2rem);
}

.focus-card--wide {
  grid-column: 1 / -1;
}

.focus-word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.focus-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 0.9rem;
}

.focus-body {
  margin-top: 1.1rem;
  color: var(--muted);
  max-width: 46rem;
}

@media (max-width: 680px) {
  .focus-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ABOUT
   ============================================================ */
.pullquote {
  border-left: 3px solid var(--accent);
  padding-left: clamp(1.4rem, 3vw, 2.4rem);
  margin-block: clamp(2.5rem, 5vw, 4rem);
}

.pullquote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  max-width: 26ch;
  text-wrap: balance;
}

.about-body {
  max-width: 42rem;
  display: grid;
  gap: 1.4rem;
  color: var(--muted);
}

.about-body strong {
  color: var(--text);
  font-weight: 600;
}

.values {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 4rem;
}

.value-row {
  border-top: 2px solid var(--accent);
  padding-top: 1.2rem;
}

.value-row h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.value-row p {
  color: var(--muted);
  font-size: 0.98rem;
}

@media (max-width: 680px) {
  .values {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================================
   FOUNDER (dark moment)
   ============================================================ */
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}

.founder-sticky {
  position: sticky;
  top: 7rem;
}

.monogram {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(9rem, 18vw, 15rem);
  line-height: 0.85;
  color: var(--ghost);
  user-select: none;
  margin-bottom: 1.5rem;
  margin-left: -0.05em;
}

.founder-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.01em;
}

.founder-role {
  margin-top: 0.7rem;
}

.founder-chips {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.founder-chips li {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.founder-body {
  display: grid;
  gap: 1.4rem;
  color: var(--muted);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.founder-body strong {
  color: var(--text);
  font-weight: 600;
}

.founder-facts li {
  display: flex;
  gap: 1rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.98rem;
}

.founder-facts li::before {
  content: "—";
  color: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .founder-grid {
    grid-template-columns: 1fr;
  }
  .founder-sticky {
    position: static;
  }
  .monogram {
    font-size: 7rem;
  }
}

/* ============================================================
   SERVICES
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.service-card {
  position: relative;
  background: var(--bg);
  padding: clamp(1.8rem, 4vw, 3rem);
  padding-bottom: clamp(2.4rem, 5vw, 3.6rem);
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--theme-ease);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-num {
  position: absolute;
  top: 0.8rem;
  right: 1.2rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(4rem, 8vw, 6rem);
  line-height: 1;
  color: var(--ghost);
  user-select: none;
  pointer-events: none;
}

.service-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.2;
  max-width: 14ch;
  margin-bottom: 1rem;
  position: relative;
}

.service-card > p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 30rem;
  position: relative;
}

.service-tag {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

@media (max-width: 680px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PROCESS (sticky-stack set-piece — pure CSS, no JS pinning)
   ============================================================ */
.process {
  padding-block: 0;
}

.process-shell {
  padding-block: clamp(6rem, 12vw, 9rem);
}

.process .section-head {
  max-width: 46rem;
}

.process-stage {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* each step sticks below the nav; the next one slides up and stacks over it */
.process-step {
  position: sticky;
  top: 5rem;
  background: var(--bg);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: min(46vh, 26rem);
  padding-block: clamp(2rem, 4vh, 3rem);
  border-top: 1px solid var(--line);
  box-shadow: 0 -24px 48px rgba(8, 10, 20, 0.55);
}

.step-ghost {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(6rem, 15vw, 12rem);
  line-height: 0.9;
  color: var(--ghost);
  user-select: none;
}

.step-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.step-content p {
  color: var(--muted);
  max-width: 34rem;
}

@media (max-width: 680px) {
  .process-step {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    align-content: center;
    min-height: min(50vh, 24rem);
  }
  .step-ghost {
    font-size: 4.5rem;
    line-height: 1;
  }
}

/* ============================================================
   FIT
   ============================================================ */
.stages {
  display: grid;
  gap: 0;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.stage-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1.5rem 3rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line-soft);
}

.stages .stage-row:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.stage-label h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.2;
}

.stage-tag {
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.stage-body {
  color: var(--muted);
  max-width: 36rem;
  align-self: center;
}

.fit-body {
  max-width: 42rem;
  display: grid;
  gap: 1.4rem;
  color: var(--muted);
}

.fit-body strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 680px) {
  .stage-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding-bottom: clamp(7rem, 13vw, 11rem);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 56rem;
  margin-inline: auto;
}

.contact-card {
  position: relative;
  border: 1px solid var(--line);
  padding: 2rem 1.8rem;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.contact-card[href]:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.contact-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 0.8rem;
}

.contact-value {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
}

.contact-arrow {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-card[href]:hover .contact-arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 680px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand--footer {
  font-size: 1.2rem;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--faint);
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .marquee-track {
    animation: none;
  }
  .hero-scroll-hint {
    display: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
