/* ITI Growth: experience layer
   The Mumbai frame (home), the About page's rail, ITI Group band, explorer,
   timeline and fund comparison, and the colour-blocked footer.
   Only the two logo colours and their ramps from tokens.css are used.
   Patterns drawn from the owner's references: the Greenoaks corner frame and
   ring field, AI Common's line-mask reveal and inverted plan card, Morpho's
   section rail and italic accents, Montarville's split footer cards. */

:root {
  --night: #2e2b29;          /* brand-900: the deepest charcoal */
  --night-2: #1e1c1b;        /* brand-950 */
  --paper-on-dark: rgba(244, 241, 233, 0.78);
  --rule-on-dark: rgba(244, 241, 233, 0.16);
  --ease-out: cubic-bezier(0.2, 0.75, 0.1, 1);
  --ease-mech: cubic-bezier(0.8, 0, 0.1, 1);
}

/* serif italic accents inside headings, after Morpho */
h1 em, h2 em, .frame__title em, .about-title em {
  font-style: italic;
  font-weight: 300;
}

/* ------------------------------------------------------ line-mask reveal */

.ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.ln__in { display: inline-block; }
.ln-ready .ln__in { transform: translateY(calc(100% + 0.3em)); }
.ln-go .ln__in { transform: none; transition: transform 1250ms var(--ease-out) var(--ln-delay, 0ms); }

/* --------------------------------------------------------- the frame */

.frame {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: var(--night) url("../video/mumbai-poster.jpg") center / cover no-repeat;
  color: var(--paper);
  isolation: isolate;
}
.frame__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  opacity: 0;
  transition: opacity 1400ms ease;
}
.frame.is-playing .frame__video { opacity: 1; }
.frame__wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(30, 28, 27, 0.55) 0%, rgba(30, 28, 27, 0.15) 30%, rgba(30, 28, 27, 0.35) 62%, rgba(30, 28, 27, 0.88) 100%),
    linear-gradient(90deg, rgba(46, 43, 41, 0.7) 0%, rgba(46, 43, 41, 0.15) 60%);
  mix-blend-mode: multiply;
}
.frame__wash::after {
  /* a warm charcoal tint so the grey monsoon sky takes on the brand */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(67, 63, 60, 0.32);
  mix-blend-mode: color;
}
.frame__rings { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.frame__sun {
  position: absolute;
  left: 74%;
  top: 34%;
  width: clamp(14px, 1.4vw, 22px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(222, 64, 25, 0.5);
  animation: sun 4.2s ease-in-out infinite;
  z-index: 0;
}
@keyframes sun {
  0%, 100% { box-shadow: 0 0 0 0 rgba(222, 64, 25, 0.45); }
  50% { box-shadow: 0 0 0 18px rgba(222, 64, 25, 0); }
}

.frame__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding: calc(var(--header-h) + 24px) var(--gutter) 24px;
}
.frame__body { margin-bottom: clamp(40px, 9vh, 110px); }
.frame__kicker {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-on-dark);
  margin-bottom: 22px;
}
.frame__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.9rem, 1.6rem + 5.6vw, 7.2rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--paper);
  max-width: 13ch;
  text-shadow: 0 2px 30px rgba(30, 28, 27, 0.35);
}
.frame__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 4vh, 44px); }

.button--paper { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.button--paper:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.button--outline-paper { border-color: rgba(244, 241, 233, 0.7); color: var(--paper); }
.button--outline-paper:hover { background: var(--paper); color: var(--ink); }
.frame :focus-visible { outline-color: var(--paper); }

.frame__corners {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-on-dark);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-on-dark);
}
.frame__corner { line-height: 1.6; }
.frame__corner [data-clock] { font-variant-numeric: tabular-nums; color: var(--paper); }
.frame__corner--mid { text-align: center; }
.frame__toggle {
  justify-self: end;
  min-height: var(--target-min);
  padding: 0 14px;
  background: transparent;
  border: 1px solid rgba(244, 241, 233, 0.45);
  color: var(--paper);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.frame__toggle:hover { background: var(--paper); color: var(--ink); }

/* -------------------------------------------------------- home intro */

.intro { padding-block: clamp(56px, 8vw, 112px) clamp(24px, 4vw, 48px); }
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 3fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
}
.intro__lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--step-3);
  line-height: 1.18;
  letter-spacing: -0.012em;
  max-width: 30ch;
}
.stat__value small { font-size: 0.4em; margin-left: 4px; letter-spacing: 0; }

/* ---------------------------------------------------------- the rail */

.rail {
  position: fixed;
  left: clamp(10px, 1.4vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  font-size: 0.75rem;
  color: var(--muted);
  transition: color 300ms ease;
}
.rail__count { letter-spacing: 0.1em; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.rail ol { list-style: none; display: grid; gap: 2px; }
.rail a { display: flex; align-items: center; gap: 10px; min-height: 24px; color: inherit; }
.rail__tick { display: block; width: 14px; height: 1px; background: currentColor; transition: width 300ms var(--ease-out), background 300ms ease; }
.rail__name {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 200ms ease, transform 200ms ease;
  white-space: nowrap;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--paper);
  padding: 2px 6px;
  color: var(--ink);
}
.rail a:hover .rail__name, .rail a:focus-visible .rail__name { opacity: 1; transform: none; }
.rail a[aria-current="true"] .rail__tick { width: 28px; background: var(--accent); }
.rail--light { color: rgba(244, 241, 233, 0.8); }
@media (max-width: 1180px) { .rail { display: none; } }

/* ---------------------------------------------------------- about head */

.page-head--about { padding-bottom: clamp(48px, 7vw, 96px); }
.about-title {
  margin-top: 22px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 1.6rem + 6vw, 7.6rem);
  line-height: 0.96;
  letter-spacing: -0.028em;
  max-width: 12ch;
}
.about-title em { color: var(--red); }
.about-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 6vw, 96px);
  margin-top: clamp(32px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.about-mission { position: relative; padding-left: 28px; }
.about-mission::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.about-mission__text {
  margin-top: 12px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--step-2);
  line-height: 1.25;
}

/* ------------------------------------------------------- how we work */

.how { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.how__head { position: sticky; top: calc(var(--header-h) + 32px); }
.how__head h2 { margin-top: 16px; }
.how__note { margin-top: 16px; color: var(--ink-soft); max-width: 32ch; }
.how__list { list-style: none; border-top: 1px solid var(--rule-strong); }
.how__row {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 20px;
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--rule);
}
.how__row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 650ms var(--ease-mech);
}
.how__row:hover::after { transform: scaleX(1); transform-origin: left; }
.how__num {
  grid-row: span 2;
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--step-3);
  line-height: 1;
  color: var(--red);
}
.how__title { font-size: var(--step-2); line-height: 1.15; }
.how__body { margin-top: 8px; color: var(--ink-soft); max-width: 52ch; }

/* ------------------------------------------------------- ITI Group band */

.group {
  background: var(--night);
  color: var(--paper);
  padding-block: clamp(64px, 9vw, 128px);
  position: relative;
  overflow: hidden;
}
.group::before {
  /* a single faint ring set from the brand dot, echoing the home frame */
  content: "";
  position: absolute;
  right: -18vw;
  top: -22vw;
  width: 60vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 25px, rgba(244, 241, 233, 0.05) 25px 26px);
  pointer-events: none;
}
.group h2, .group h3 { color: var(--paper); }
.eyebrow--onDark { color: var(--paper-on-dark); }
.eyebrow--onDark::before { background: var(--accent); }
.group__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 6vw, 96px); align-items: end; position: relative; }
.group__title { margin-top: 16px; font-size: var(--step-4); line-height: 1.02; max-width: 16ch; }
.group__title em { color: #f29d88; }
.group__lede { margin-top: 22px; color: var(--paper-on-dark); max-width: 56ch; }
.group__scale { border-left: 1px solid var(--rule-on-dark); padding-left: clamp(18px, 2.4vw, 32px); }
.group__big {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4rem, 2rem + 6vw, 8.4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--paper);
}
.group__big-label { margin-top: 14px; color: var(--paper-on-dark); max-width: 30ch; }
.group__big-note { margin-top: 8px; font-size: 0.8125rem; color: rgba(244, 241, 233, 0.72); }

.group__facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--rule-on-dark);
  border-bottom: 1px solid var(--rule-on-dark);
}
.group__facts li { padding: 20px 16px 20px 0; }
.group__facts li + li { border-left: 1px solid var(--rule-on-dark); padding-left: clamp(14px, 2vw, 24px); }
.group__fact-value { display: block; font-family: var(--serif); font-weight: 300; font-size: var(--step-3); line-height: 1; }
.group__fact-label { display: block; margin-top: 10px; font-size: 0.875rem; color: var(--paper-on-dark); }

/* explorer: tabs on the left, a paper card on the right */
.explorer {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(48px, 7vw, 88px);
  align-items: stretch;
}
.explorer__tabs { display: flex; flex-direction: column; border-top: 1px solid var(--rule-on-dark); }
.explorer__tab {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  min-height: 60px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--rule-on-dark);
  background: transparent;
  color: var(--paper-on-dark);
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: color 200ms ease, padding 300ms var(--ease-out);
}
.explorer__tab::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%) scale(0);
  transition: transform 300ms var(--ease-out);
}
.explorer__num { font-size: 0.75rem; letter-spacing: 0.1em; }
.explorer__name { font-family: var(--serif); font-size: var(--step-2); line-height: 1.1; }
.explorer__tab:hover { color: var(--paper); }
.explorer__tab[aria-selected="true"] { color: var(--paper); padding-left: 14px; }
.explorer__tab[aria-selected="true"]::before { transform: translateY(-50%) scale(1); left: 0; }
.explorer__tab:focus-visible { outline-color: var(--paper); }

.explorer__panels { position: relative; }
.explorer__panel {
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(24px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.explorer__panel.is-in { animation: panel-in 520ms var(--ease-out); }
@keyframes panel-in { from { transform: translateY(14px); } to { transform: none; } }
.explorer__kicker { font-size: 0.75rem; letter-spacing: 0.12em; color: var(--red); }
.explorer__panel .explorer__title { color: var(--ink); font-size: var(--step-3); font-weight: 300; line-height: 1.05; }
.explorer__entities { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.explorer__entities li { border: 1px solid var(--rule-strong); padding: 4px 10px; font-size: 0.8125rem; color: var(--ink-soft); }
.explorer__body { color: var(--ink-soft); max-width: 56ch; }
.explorer__for {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.35;
}
.explorer__for span { display: block; margin-bottom: 6px; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }

/* timeline */
.timeline { margin-top: clamp(56px, 8vw, 100px); position: relative; }
.timeline__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
.timeline__title { font-size: var(--step-2); font-weight: 300; }
.timeline__nav { display: flex; gap: 6px; }
.timeline__btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule-on-dark);
  background: transparent;
  color: var(--paper);
  font-size: 1rem;
  cursor: pointer;
}
.timeline__btn:hover:not(:disabled) { background: var(--paper); color: var(--ink); }
.timeline__btn:disabled { opacity: 0.35; cursor: default; }
.timeline__btn:focus-visible, .timeline__track:focus-visible { outline-color: var(--paper); }
.timeline__track {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 26%);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  border-top: 1px solid var(--rule-on-dark);
}
.timeline__track::-webkit-scrollbar { display: none; }
.timeline__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.timeline__item { scroll-snap-align: start; padding: 0 24px 8px 0; position: relative; user-select: none; }
.timeline__dot {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--night);
  border: 1px solid var(--paper);
}
.timeline__item:last-child .timeline__dot { background: var(--accent); border-color: var(--accent); }
.timeline__year { display: block; padding-top: 22px; font-family: var(--serif); font-weight: 300; font-size: var(--step-3); line-height: 1; }
.timeline__item p { margin-top: 10px; font-size: 0.92rem; color: var(--paper-on-dark); max-width: 28ch; }
.timeline__progress { height: 1px; background: var(--rule-on-dark); margin-top: 22px; }
.timeline__progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0.06); transition: transform 200ms linear; }

/* ------------------------------------------------------ cheque range bar */

.range { margin-top: 10px; }
.range__track { position: relative; height: 6px; background: var(--paper-deep); }
.range__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--lo);
  width: calc(var(--hi) - var(--lo));
  background: var(--accent);
  transform-origin: left;
}
.range__scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.75rem; color: var(--muted); }


/* ---------------------------------------------------- colour-block footer */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--paper);
  border-top: 0;
  padding: clamp(28px, 4vw, 56px) 0 0;
}
.fblocks {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 10px;
}
.fb { padding: clamp(22px, 2.6vw, 36px); min-height: 340px; }
.fb--nav { background: var(--paper); color: var(--ink); display: flex; flex-direction: column; gap: 32px; }
.fb__nav { display: flex; flex-direction: column; gap: 2px; }
.fb__nav a {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--step-3);
  line-height: 1.12;
  color: var(--ink);
  align-self: flex-start;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat;
  transition: background-size 650ms var(--ease-mech), color 200ms ease;
}
.fb__nav a:hover { background-size: 100% 1px; color: var(--red); }
.fb__minor { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--rule); }
.fb__minor section { display: flex; flex-direction: column; gap: 2px; }
.fb__minor a { display: inline-flex; align-items: center; min-height: 32px; font-size: 0.875rem; color: var(--ink-soft); }
.fb__minor a:hover { color: var(--red); }
.fb__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.fb--contact { background: var(--ink); color: var(--paper); display: flex; flex-direction: column; gap: 20px; }
.fb--contact .fb__label { color: rgba(244, 241, 233, 0.72); }
.fb__value { font-size: 1.12rem; font-weight: 500; color: var(--paper); }
.fb__value--sm { font-size: 0.95rem; font-weight: 400; line-height: 1.5; max-width: 30ch; }
a.fb__value:hover { color: #f29d88; }
.fb__row { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-top: auto; }
.fb__clock { font-variant-numeric: tabular-nums; }
.fb__social { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule-on-dark); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper); }
.fb__social:hover { background: var(--paper); color: var(--ink); }
.fb--contact :focus-visible { outline-color: var(--paper); }

.fb--pitch {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--accent);
  color: var(--white);
  overflow: hidden;
  transition: background 300ms ease;
}
.fb__pitch-kicker { font-size: 1.5rem; font-family: var(--serif); font-weight: 300; line-height: 1.1; }
.fb__pitch-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem); line-height: 1; margin-top: 6px; }
.fb__pitch-title::after { content: " \2192"; display: inline-block; transition: transform 300ms var(--ease-out); }
.fb__dot {
  position: absolute;
  top: clamp(22px, 2.6vw, 36px);
  right: clamp(22px, 2.6vw, 36px);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 500ms var(--ease-out);
}
.fb--pitch:hover { background: var(--red); }
.fb--pitch:hover .fb__pitch-title::after { transform: translateX(6px); }
.fb--pitch:hover .fb__dot { transform: scale(2.4); }
.fb--pitch:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }

.site-footer .footer__reg {
  position: relative;
  z-index: 1;
  border-top-color: var(--rule-on-dark);
  color: rgba(244, 241, 233, 0.82);
}
.site-footer .footer__bottom {
  position: relative;
  z-index: 1;
  border-top-color: var(--rule-on-dark);
  color: rgba(244, 241, 233, 0.82);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
  .fblocks { grid-template-columns: 1fr 1fr; }
  .fb--pitch { grid-column: 1 / -1; min-height: 160px; }
  .explorer { grid-template-columns: 1fr; }
  .explorer__tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .explorer__tab { flex: 0 0 auto; grid-template-columns: auto auto; padding: 12px 18px 12px 0; min-height: 52px; }
  .explorer__tab[aria-selected="true"] { padding-left: 14px; }
  .explorer__name { font-size: var(--step-1); white-space: nowrap; }
  .group__facts { grid-template-columns: 1fr 1fr; }
  .group__facts li:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-on-dark); }
  .group__facts li:nth-child(4) { border-top: 1px solid var(--rule-on-dark); }
}

@media (max-width: 820px) {
  .frame__corners { grid-template-columns: 1fr auto; }
  .frame__sun { left: 78%; top: 26%; }
  .intro__grid, .about-head__grid, .how, .group__top { grid-template-columns: 1fr; }
  .how__head { position: static; }
  .group__scale { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-on-dark); padding-top: 22px; }
  .timeline__track { grid-auto-columns: minmax(200px, 70%); }
}

@media (max-width: 560px) {
  .fblocks { grid-template-columns: 1fr; }
  .fb { min-height: 0; }
  .fb__minor { grid-template-columns: 1fr; }
  .how__row { grid-template-columns: 48px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .ln-ready .ln__in { transform: none; }
  .frame__sun { animation: none; }
  .frame__video { opacity: 1; transition: none; }
  .explorer__panel.is-in { animation: none; }
}

/* hidden panels must stay hidden despite display:flex above */
.explorer__panel[hidden] { display: none; }
