/* ============================================================
   SANTHOSH RAJINIKANTH — PORTFOLIO
   Cinematic editorial system: near-black, bone white, one signal red.
   Display: Anton · Text: Onest. Layout authored in rem against a
   1920px canvas; the root font-size scales with the viewport.

   CONTENTS
   01 Tokens            08 Marquee           15 Skills
   02 Adaptive root     09 Sections & type   16 Certifications
   03 Reset & base      10 Reveal system     17 Images      
   04 Utilities         11 About             18 Contact & footer
   05 Preloader         12 Numbers           19 Fallbacks
   06 Navigation        13 Work              20 Reduced motion
   07 Hero              14 LTIMindtree, rows, research
   ============================================================ */

/* ---------- 00 FONTS (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/anton-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/onest-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 01 TOKENS ---------- */
:root {
  --background: #08080a;
  --foreground: #f3f1ea;
  --surface: #111114;
  --surface-2: #17171b;
  --muted: #807f78;           /* 4.98:1 on background */
  --line: rgba(243, 241, 234, 0.1);
  --line-strong: rgba(243, 241, 234, 0.22);
  --accent: #ff3b1d;          /* 5.62:1 on background */
  --accent-2: #ff6a3d;

  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 2.5rem;
  --section: 9rem;

  /* Type scale. Text sizes carry a px floor so the vw-driven root
     never shrinks reading text below a comfortable size. */
  --fs-hero: 28rem;
  --fs-mega: 13rem;
  --fs-display: 7.5rem;
  --fs-h1: 5rem;
  --fs-h2: 3.25rem;
  --fs-h3: max(1.75rem, 21px);
  --fs-lead: max(1.375rem, 18px);
  --fs-body: max(1.0625rem, 15px);
  --fs-small: max(0.9375rem, 14px);
  --fs-eyebrow: max(0.8125rem, 11px);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-wipe: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 02 ADAPTIVE ROOT (16px at each base width) ---------- */
html { font-size: 16px; background: var(--background); }
@media (max-width: 1920px) { html { font-size: 0.833333vw; } }
@media (max-width: 1440px) { html { font-size: 1.111111vw; } }
@media (max-width: 1024px) { html { font-size: 1.5625vw; } }
@media (max-width: 640px) {
  html { font-size: 4.444444vw; }
  :root { --gutter: 16px; --section: 6rem; }
}

/* ---------- 03 RESET & BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img, video, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; appearance: none; }
strong { font-weight: 600; color: var(--foreground); }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
main { position: relative; width: 100%; overflow-x: clip; }

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

/* Lenis (from lenis@1.3.19/dist/lenis.css) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- 04 UTILITIES ---------- */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 1rem; left: var(--gutter); z-index: 200;
  padding: 0.75rem 1.25rem; background: var(--accent); color: var(--background);
  font-weight: 600; transform: translateY(-200%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

.live-dot {
  position: relative; display: inline-block; flex: none;
  width: 0.5rem; height: 0.5rem; min-width: 7px; min-height: 7px;
  border-radius: 50%; background: var(--accent);
}
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--accent); animation: ping 2.2s var(--ease-out-quart) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(2.8); opacity: 0; } }

/* ---------- 05 PRELOADER ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 0.75rem;
  padding: var(--gutter);
  will-change: transform;
}
.intro .preloader { display: flex; }
.preloader__bg { position: absolute; inset: 0; z-index: -10; background: var(--background); }
.preloader__brand {
  font-family: var(--font-display); font-size: var(--fs-h3);
  text-transform: uppercase; line-height: 1; letter-spacing: -0.01em;
}
.preloader__count {
  font-family: var(--font-display); font-size: var(--fs-display);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.preloader__num { display: inline-block; min-width: 1.32em; } /* always 3 digits (000–100): steady width */
.preloader__brand, .preloader__count { transition: opacity 0.3s ease-out; }
.preloader.is-done .preloader__brand,
.preloader.is-done .preloader__count { opacity: 0; }
.preloader.is-wiping { transform: translateY(-100%); transition: transform 0.65s var(--ease-wipe); }
.preloader.is-gone { display: none; }
@media (min-width: 640px) {
  .preloader { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 1rem; }
}

/* ---------- 06 NAVIGATION ---------- */
.site-nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  pointer-events: none;
  transition: transform 0.5s var(--ease-out-expo);
}
.site-nav::before {
  content: ""; position: absolute; inset: 0 0 -2rem; z-index: -1;
  background: linear-gradient(to bottom, rgba(8, 8, 10, 0.92), rgba(8, 8, 10, 0.6) 55%, transparent);
  opacity: 0; transition: opacity 0.4s ease-out;
}
.site-nav.is-scrolled::before { opacity: 1; }
.site-nav.is-hidden { transform: translateY(-110%); }
.site-nav__inner {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.5rem var(--gutter);
}
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo__mark {
  display: grid; place-items: center;
  width: max(2.5rem, 40px); height: max(2.5rem, 40px);
  border-radius: 9999px; border: 1px solid var(--line-strong);
  font-weight: 600; font-size: max(0.875rem, 13px); letter-spacing: -0.01em;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.logo:hover .logo__mark { background: var(--accent); border-color: var(--accent); color: var(--background); }
.logo__name {
  display: none; font-size: var(--fs-eyebrow); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted);
}
@media (min-width: 640px) { .logo__name { display: inline; } }

.nav-links { display: none; gap: 2.5rem; margin-left: auto; }
.nav-links a, .nav-cta {
  position: relative; font-size: var(--fs-eyebrow); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted);
  transition: color 0.3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -0.35rem; height: 1px; width: 0;
  background: var(--accent); transition: width 0.4s var(--ease-out-expo);
}
.nav-links a:hover, .nav-links a.is-active, .nav-cta:hover { color: var(--foreground); }
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }
.nav-cta {
  display: none; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 9999px;
  color: var(--foreground);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--background); }
.nav-cta__arrow { transition: transform 0.4s var(--ease-out-expo); }
.nav-cta:hover .nav-cta__arrow { transform: translateY(2px); }

.burger {
  position: relative; z-index: 60;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 44px; height: 44px; margin-right: -8px;
}
.burger span {
  display: block; height: 2px; width: 24px; background: var(--foreground);
  transition: transform 0.45s var(--ease-out-expo), opacity 0.3s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .burger { display: none; }
}
@media (min-width: 1024px) and (max-width: 1200px) { .nav-links { gap: 1.5rem; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: center; gap: 2.5rem;
  padding: 6rem var(--gutter) 3rem;
  background: var(--background);
  opacity: 0; transition: opacity 0.45s ease-out;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__list { display: flex; flex-direction: column; gap: 0.6rem; }
.mobile-menu__list a {
  display: inline-block;
  font-family: var(--font-display); font-size: var(--fs-h2);
  text-transform: uppercase; line-height: 1; letter-spacing: -0.01em;
  opacity: 0; transform: translateY(48px);
  transition: opacity 0.42s ease-out, transform 0.42s var(--ease-out-expo), color 0.25s;
}
.mobile-menu.is-open .mobile-menu__list a { opacity: 1; transform: none; }
.mobile-menu__list a:hover, .mobile-menu__list a:active { color: var(--accent); }
.mobile-menu__cta {
  align-self: flex-start;
  font-size: var(--fs-eyebrow); font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em;
  padding: 0.9rem 1.25rem; border: 1px solid var(--line-strong); border-radius: 9999px;
}

/* ---------- 07 HERO ---------- */
.hero {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
}
.hero__top {
  position: relative; z-index: 30;
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: 6.5rem var(--gutter) 0;
}
.hero__roles {
  display: flex; flex-direction: column;
  font-family: var(--font-display); font-size: var(--fs-h3);
  text-transform: uppercase; line-height: 1.05; letter-spacing: -0.01em;
}
.mask { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__role { display: block; }
.hero__right { max-width: 26rem; }
.hero__desc { font-size: var(--fs-body); color: var(--muted); }
.hero__now {
  margin-top: 1rem; padding-left: 1.25rem; position: relative;
  font-size: var(--fs-small); color: var(--foreground);
}
.hero__now .live-dot { position: absolute; left: 0; top: 0.55em; }
.hero__now a { border-bottom: 1px solid var(--accent); transition: color 0.3s; }
.hero__now a:hover { color: var(--accent); }
.hero__cue {
  display: none; align-items: center; gap: 0.75rem; margin-top: 2rem;
  font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted);
  transition: color 0.3s;
}
.hero__cue:hover { color: var(--foreground); }
.hero__cue-rule { display: block; width: 2.5rem; height: 1px; background: var(--accent); transform-origin: left; }
.hero__cue:hover .hero__cue-rule { animation: rule 1.2s var(--ease-out-expo) infinite; }
@keyframes rule { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); } }

/* Stage: name + portrait. In flow on phones, full-bleed behind the top row from 640px. */
.hero__stage {
  position: relative; flex: 1; min-height: 112vw;
  container-type: inline-size;
}
.hero__name {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--font-display); font-weight: 400;
  /* "RAJINIKANTH" is 4.73em wide in Anton: fill the width between gutters */
  font-size: 19vw;
  font-size: min(calc((100cqw - 2 * var(--gutter)) / 4.8), 34svh);
  text-transform: uppercase; line-height: 0.78; letter-spacing: -0.01em;
  color: var(--accent);
  transform: translateY(1%);
  pointer-events: none;
}
/* Phones and portrait tablets: the portrait spans the width, so the name sits in front of it */
@media (max-width: 639px), (max-width: 1023px) and (orientation: portrait) {
  .hero__name { z-index: 26; transform: none; bottom: 0.5rem; }
  .hero__fade { height: 18vh; }
}
.hero__line { display: block; white-space: nowrap; overflow: hidden; padding-top: 0.05em; }
.hero__line .ch { display: inline-block; }

.hero__portrait {
  position: absolute; bottom: 0; left: 50%; z-index: 20;
  height: 100%; aspect-ratio: 550 / 990; max-width: 100%;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero__photo { width: 100%; height: 100%; }
.hero__photo img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.hero__fade {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 25; height: 26vh;
  background: linear-gradient(to bottom, transparent, var(--background));
  pointer-events: none;
}

@media (min-width: 640px) {
  .hero__top { flex-direction: row; align-items: flex-start; justify-content: space-between; padding-top: 8rem; }
  .hero__roles { font-size: var(--fs-h2); }
  .hero__right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
  .hero__now { padding-left: 0; padding-right: 1.25rem; }
  .hero__now .live-dot { left: auto; right: 0; }
  .hero__cue { display: inline-flex; }
  .hero__stage { position: absolute; inset: 0; min-height: 0; }
  .hero__portrait { height: 84svh; }
  .hero__fade { height: 16vh; }
}
@media (min-width: 640px) and (max-width: 1024px) and (orientation: portrait) {
  .hero__portrait { height: 74svh; }
}

/* Hero entrance (JS adds .is-in; letters get per-letter delays) */
.js .hero__role { transform: translateY(110%); opacity: 0; }
.js .hero__line .ch { transform: translateY(100%); opacity: 0; }
.js .hero-fade { opacity: 0; transform: translateY(16px); }
.js .hero__photo { opacity: 0; transform: scale(1.04); transform-origin: 50% 100%; }
.hero.is-in .hero__role {
  transform: none; opacity: 1;
  transition: transform 0.76s var(--ease-out-expo), opacity 0.76s var(--ease-out-expo);
  transition-delay: calc(200ms + var(--i) * 80ms);
}
.hero.is-in .hero__line .ch {
  transform: none; opacity: 1;
  transition: transform 0.9s var(--ease-out-expo), opacity 0.9s var(--ease-out-expo);
  transition-delay: var(--cd, 0ms);
}
.hero.is-in .hero-fade {
  opacity: 1; transform: none;
  transition: opacity 0.52s var(--ease-out-expo), transform 0.52s var(--ease-out-expo);
  transition-delay: calc(400ms + var(--d, 0ms));
}
.hero.is-in .hero__photo {
  opacity: 1; transform: none;
  transition: opacity 1.1s ease-out, transform 1.4s var(--ease-out-expo);
  transition-delay: 150ms;
}

/* ---------- 08 MARQUEE ---------- */
.marquee {
  position: relative; z-index: 2;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 2rem;
  background: var(--background);
}
.marquee__track { display: flex; width: max-content; animation: marquee 22s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex-wrap: nowrap; }
.marquee__group li {
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--font-display); font-size: var(--fs-h2);
  text-transform: uppercase; line-height: 1.1; letter-spacing: -0.01em;
}
.marquee__group li::after {
  content: ""; display: block; flex: none;
  width: 0.625rem; height: 0.625rem; margin-inline: 2rem;
  border-radius: 9999px; background: var(--accent);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 09 SECTIONS & TYPE ---------- */
.section { padding: var(--section) var(--gutter); }
.section + .section { padding-top: calc(var(--section) * 0.75); }

.eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: var(--fs-eyebrow); line-height: 1.2; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted);
}
.eyebrow::before {
  content: ""; flex: none; width: 0.5rem; height: 0.5rem; min-width: 7px; min-height: 7px;
  border-radius: 9999px; background: var(--accent);
}
.heading {
  margin-top: 1.5rem;
  font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h2);
  text-transform: uppercase; line-height: 1; letter-spacing: -0.01em;
  text-wrap: balance;
}
.heading--xl { max-width: 16ch; line-height: 0.95; }
.heading--narrow { max-width: 14ch; }
.heading--display { max-width: 18ch; line-height: 0.95; font-size: 3.75rem; }
@media (min-width: 640px) {
  .heading--xl { font-size: var(--fs-h1); }
  .heading--display { font-size: var(--fs-display); }
}

.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--muted); }
.label-heading {
  font-size: var(--fs-eyebrow); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted);
}

.section-head {
  display: flex; flex-direction: column; gap: 1.5rem;
  margin-bottom: 4rem;
}
.section-head__meta {
  font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted);
}
.section-head__desc { margin-top: 2rem; max-width: 58ch; color: var(--muted); }
.section-head--sub { margin-top: calc(var(--section) * 0.8); }
@media (min-width: 640px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .section-head__meta, .section-head__link { flex: none; text-align: right; }
}

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--fs-eyebrow); font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em;
  padding-block: 0.6rem; border-bottom: 1px solid var(--line-strong);
  transition: color 0.3s, border-color 0.3s;
}
.arrow-link span[aria-hidden] { color: var(--accent); transition: transform 0.4s var(--ease-out-expo); }
.arrow-link:hover { color: var(--accent); border-color: var(--accent); }
.arrow-link:hover span[aria-hidden] { transform: translate(3px, -3px); }

.bullets { display: grid; gap: 0.55rem; }
.bullets li { position: relative; padding-left: 1.4rem; color: var(--muted); }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 0.78em;
  width: 0.6rem; height: 1px; background: var(--accent);
}
.stack { font-size: var(--fs-small); color: var(--foreground); opacity: 0.86; line-height: 1.7; }

.tag {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: var(--fs-eyebrow); font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent);
}
.tag--plain { color: var(--muted); }

/* ---------- 10 REVEAL SYSTEM ---------- */
/* Split headings: each line slides up from its own mask */
.split-line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.split-inner { display: inline-block; }
.js [data-split].is-split .split-inner { transform: translateY(110%); opacity: 0; }
.js [data-split].is-split.in-view .split-inner {
  transform: none; opacity: 1;
  transition: transform 0.9s var(--ease-out-expo), opacity 0.9s var(--ease-out-expo);
  transition-delay: calc(var(--l, 0) * 90ms);
}

/* Blocks: fade + rise, staggered with --d */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal].in-view {
  opacity: 1; transform: none;
  transition: opacity 0.56s var(--ease-out-expo), transform 0.56s var(--ease-out-expo);
  transition-delay: var(--d, 0ms);
}

/* Word-by-word quote (replays when a tab changes) */
.w { display: inline-block; }
.js [data-words].is-split .w { transform: translateY(18px); opacity: 0; }
.js [data-words].is-split.play .w {
  transform: none; opacity: 1;
  transition: transform 0.52s var(--ease-out-quart), opacity 0.52s var(--ease-out-quart);
  transition-delay: calc(var(--wi, 0) * 22ms);
}

/* ---------- 11 ABOUT ---------- */
.about__grid { display: grid; gap: 4rem; }
.about__copy { margin-top: 2rem; max-width: 52ch; display: grid; gap: 1.25rem; color: var(--muted); }
.about__copy .lead { color: var(--muted); }
.about__list-wrap .label-heading { margin-bottom: 1.5rem; }
.principles { border-bottom: 1px solid var(--line); }
.principle {
  display: grid; grid-template-columns: auto 1fr; column-gap: 1.5rem;
  padding-block: 1.75rem; border-top: 1px solid var(--line);
}
.principle__num, .principle__title {
  font-size: var(--fs-h3); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em;
}
.principle__num { color: var(--accent); font-variant-numeric: tabular-nums; min-width: 2.2ch; }
.principle p { margin-top: 0.6rem; max-width: 44ch; color: var(--muted); }
.principle__title { transition: color 0.34s ease-out; }
.principle:hover .principle__title { color: var(--accent); }
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
  .about__intro { grid-column: span 6; position: sticky; top: 7rem; align-self: start; }
  .about__list-wrap { grid-column: 8 / span 5; padding-top: 0.5rem; }
}

/* ---------- 12 NUMBERS ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.stat:nth-child(even) { border-left: 1px solid var(--line); padding-left: 1.25rem; }
@media (max-width: 639px) { .stat__fig { font-size: 4.5rem; } .stat__label { font-size: var(--fs-eyebrow); } }
.stat {
  display: flex; flex-direction: column; gap: 1rem;
  padding-block: 2.5rem; border-bottom: 1px solid var(--line);
}
.stat__fig {
  font-family: var(--font-display); font-size: var(--fs-display);
  line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
  transition: color 0.34s ease-out;
}
.stat:hover .stat__fig { color: var(--accent); }
.stat__label {
  max-width: 20ch; font-size: var(--fs-body);
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted);
}
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(even) { border-left: 1px solid var(--line); padding-left: 2rem; }
}
@media (min-width: 1024px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding-block: 3rem; }
  .stat:not(:first-child) { border-left: 1px solid var(--line); padding-left: 2rem; }
}

/* ---------- 13 WORK ---------- */
.work-grid { display: grid; row-gap: 5rem; column-gap: var(--gutter); }
@media (min-width: 768px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work--offset { margin-top: 8rem; }
}
.work__card { display: flex; flex-direction: column; }

/* Typographic cover: the project's name set as an outlined poster */
.cover {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10; border-radius: 2px;
  background:
    radial-gradient(circle at 1px 1px, rgba(243, 241, 234, 0.07) 1px, transparent 1.5px) 0 0 / 1.5rem 1.5rem,
    radial-gradient(130% 130% at 30% 15%, var(--surface-2), var(--background));
  border: 1px solid var(--line);
  isolation: isolate;
}
.cover__idx, .cover__cat {
  position: absolute; top: 1.5rem; z-index: 2;
  font-size: var(--fs-eyebrow); font-weight: 500; text-transform: uppercase; letter-spacing: 0.22em;
}
.cover__idx { left: 1.5rem; color: var(--accent); }
.cover__cat { right: 1.5rem; color: var(--muted); }
.cover__word {
  position: absolute; left: -0.04em; bottom: -0.16em; z-index: 1;
  font-family: var(--font-display); font-size: 22cqw; line-height: 1;
  text-transform: uppercase; letter-spacing: -0.01em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 241, 234, 0.32);
  transition: color 0.6s var(--ease-out-expo), -webkit-text-stroke-color 0.6s, transform 0.9s var(--ease-out-expo);
}
.cover { container-type: inline-size; }
.cover__glow {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(120deg, transparent 30%, color-mix(in srgb, var(--accent) 35%, transparent) 50%, transparent 70%);
  background-size: 250% 100%; background-position: 100% 0;
  opacity: 0; transition: opacity 0.38s ease-out, background-position 1.1s var(--ease-out-expo);
}
.work__card:hover .cover__word { color: var(--accent); -webkit-text-stroke-color: var(--accent); transform: translateX(-3%); }
.work__card:hover .cover__glow { opacity: 1; background-position: 0 0; }

.work__row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.work__name {
  font-size: var(--fs-h3); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em;
  transition: color 0.34s ease-out;
}
.work__card:hover .work__name { color: var(--accent); }
.work__kicker { margin-top: 0.4rem; color: var(--muted); }
@media (max-width: 639px) {
  .work__row { flex-direction: column; gap: 0.75rem; }
  .work__side { text-align: left; }
}
.work__side { flex: none; text-align: right; }
.work__status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-eyebrow); font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted);
}
.work__status--live { color: var(--accent); }

.pai { display: grid; gap: 1rem; margin-top: 1.75rem; }
.pai div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; }
.pai dt {
  padding-top: 0.25em;
  font-size: var(--fs-eyebrow); font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent);
}
.pai dd { color: var(--muted); }
@media (max-width: 640px) { .pai div { grid-template-columns: 1fr; gap: 0.25rem; } }
.work__card .stack { margin-top: 1.5rem; }

.case { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.case summary {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1rem; cursor: pointer; list-style: none;
  font-size: var(--fs-eyebrow); font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em;
  transition: color 0.3s;
}
.case summary::-webkit-details-marker { display: none; }
.case summary:hover { color: var(--accent); }
.case__icon { position: relative; width: 12px; height: 12px; }
.case__icon::before, .case__icon::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor;
  transition: transform 0.4s var(--ease-out-expo);
}
.case__icon::after { transform: rotate(90deg); }
.case[open] .case__icon::after { transform: rotate(0deg); }
.case__body { display: grid; gap: 1rem; padding-bottom: 1.25rem; color: var(--muted); }
.work__card .arrow-link { align-self: flex-start; margin-top: 0.5rem; }

/* ---------- 14 LTIMINDTREE / ROWS / RESEARCH ---------- */
.ltim__grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) {
  .ltim__grid { grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
  .selector { grid-column: span 4; position: sticky; top: 7rem; align-self: start; }
  .panels { grid-column: 6 / span 7; }
}
.selector { border-bottom: 1px solid var(--line); }
.selector__item {
  display: flex; align-items: baseline; gap: 1.25rem; width: 100%;
  padding-block: 1.75rem; border-top: 1px solid var(--line); text-align: left;
}
.selector__idx {
  font-size: var(--fs-eyebrow); font-variant-numeric: tabular-nums; letter-spacing: 0.18em;
  color: var(--muted); transition: color 0.3s;
}
.selector__text { display: flex; flex-direction: column; flex: 1; }
.selector__name {
  font-size: var(--fs-h3); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em;
  color: var(--muted); transition: color 0.3s;
}
.selector__role {
  margin-top: 0.3rem; font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted);
}
.selector__rule {
  align-self: center; flex: none; height: 1px; width: 0; background: var(--accent);
  transition: width 0.5s var(--ease-out-expo);
}
.selector__item:hover .selector__name { color: var(--foreground); }
.selector__item[aria-selected="true"] .selector__idx { color: var(--accent); }
.selector__item[aria-selected="true"] .selector__name { color: var(--foreground); }
.selector__item[aria-selected="true"] .selector__rule { width: 2.5rem; }

.panel:focus-visible { outline-offset: 8px; }
.panel.is-entering { animation: panelIn 0.6s var(--ease-out-expo); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.panel__head { padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.panel__title {
  margin-top: 1rem;
  font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h2);
  text-transform: uppercase; line-height: 1; letter-spacing: -0.01em;
  text-wrap: balance;
}
.panel__quote {
  margin-top: 1.5rem; max-width: 40ch;
  font-size: var(--fs-h3); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em;
}
.panel__body { display: grid; gap: 2.5rem; padding-top: 2rem; }
@media (min-width: 768px) { .panel__body { grid-template-columns: 1.15fr 1fr; gap: 3rem; } }
.panel__col { display: flex; flex-direction: column; }
.panel__col > p { color: var(--muted); }
.panel__col > .label-heading:not(:first-child) { margin-top: 2rem; }
.panel__col > .label-heading { margin-bottom: 0.9rem; }
.result { color: var(--foreground) !important; border-left: 2px solid var(--accent); padding-left: 1rem; }
.note {
  margin-top: 2rem; padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border: 1px solid var(--line-strong); border-left: 2px solid var(--accent);
  background: var(--surface); color: var(--muted); font-size: var(--fs-small);
}

/* Architecture: a numbered vertical pipeline with a connecting rail */
.arch .label-heading { margin-bottom: 1.25rem; }
.pipeline { position: relative; counter-reset: step; display: grid; gap: 0.5rem; }
.pipeline::before {
  content: ""; position: absolute; left: 0.95rem; top: 1rem; bottom: 1rem; width: 1px; background: var(--line-strong);
}
.pipeline li {
  position: relative; counter-increment: step;
  display: flex; flex-direction: column;
  padding: 0.7rem 0.9rem 0.7rem 3rem;
  border: 1px solid var(--line); background: var(--surface);
}
.pipeline li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0.25rem; top: 0.7rem;
  display: grid; place-items: center; width: 1.4rem; height: 1.4rem; min-width: 22px; min-height: 22px;
  font-size: max(0.6875rem, 10px); font-variant-numeric: tabular-nums;
  background: var(--background); border: 1px solid var(--line-strong); border-radius: 50%;
  color: var(--muted);
}
.pipeline .node-title { font-weight: 600; font-size: var(--fs-small); }
.pipeline .node-sub { font-size: max(0.8125rem, 12px); color: var(--muted); }
.pipeline .node-hot { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.pipeline .node-hot::before { background: var(--accent); border-color: var(--accent); color: var(--background); }

/* Experience / education rows */
.rows { border-bottom: 1px solid var(--line); }
.row {
  display: grid; gap: 1rem;
  padding-block: 2.5rem; border-top: 1px solid var(--line);
}
.row__date {
  font-size: var(--fs-eyebrow); font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent);
  padding-top: 0.35em;
}
.row__title { font-size: var(--fs-h3); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.row__org { margin-top: 0.5rem; color: var(--muted); }
.row__org a { color: var(--foreground); border-bottom: 1px solid var(--line-strong); transition: color 0.3s, border-color 0.3s; }
.row__org a:hover { color: var(--accent); border-color: var(--accent); }
.row__tags { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1rem; }
.row__detail { display: grid; gap: 1rem; color: var(--muted); align-content: start; }
.row__detail .arrow-link { justify-self: start; color: var(--foreground); }
@media (min-width: 1024px) {
  .row { grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
  .row__date { grid-column: span 3; }
  .row__main { grid-column: span 4; }
  .row__detail { grid-column: 8 / span 5; }
}

/* Publications */
.papers { border-bottom: 1px solid var(--line); }
.paper {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: auto 1fr auto; column-gap: 1.5rem; row-gap: 0.6rem;
  align-items: baseline;
  padding-block: 2rem; border-top: 1px solid var(--line);
}
.paper::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--surface); transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.5s var(--ease-out-expo);
}
.paper__num { font-size: var(--fs-h3); font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.paper__title {
  font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em;
  max-width: 48ch; transition: color 0.34s ease-out, transform 0.5s var(--ease-out-expo);
}
.paper__area {
  grid-column: 2;
  font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted);
}
.paper__arrow {
  grid-column: 3; grid-row: 1;
  font-size: var(--fs-h3); color: var(--muted);
  transition: color 0.3s, transform 0.5s var(--ease-out-expo);
}
.paper:hover::before, .paper:focus-visible::before { transform: scaleY(1); }
.paper:hover .paper__title { color: var(--accent); transform: translateX(0.75rem); }
.paper:hover .paper__arrow { color: var(--accent); transform: translate(4px, -4px); }
@media (max-width: 639px) {
  .paper { column-gap: 1rem; }
  .paper__num, .paper__title, .paper__arrow { font-size: var(--fs-lead); }
}
@media (min-width: 1024px) {
  .paper { grid-template-columns: 6rem 1fr 20rem 3rem; padding-inline: 1rem; }
  .paper__area { grid-column: 3; grid-row: 1; }
  .paper__arrow { grid-column: 4; justify-self: end; }
}

/* ---------- 15 SKILLS ---------- */
.tiers { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .tiers { grid-template-columns: repeat(3, 1fr); gap: var(--gutter); } }
.tier__head { padding-bottom: 1.5rem; border-bottom: 1px solid var(--line-strong); }
.tier__meter { display: flex; gap: 4px; }
.tier__meter i { display: block; width: 1.5rem; height: 3px; background: var(--accent); }
.tier__meter i.off { background: var(--line-strong); }
.tier__title {
  margin-top: 1.25rem;
  font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h2);
  text-transform: uppercase; line-height: 1; letter-spacing: -0.01em;
}
.tier__desc { margin-top: 0.5rem; color: var(--muted); }
.tier__groups div { padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.tier__groups dt {
  font-size: var(--fs-eyebrow); font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted);
}
.tier__groups dd { margin-top: 0.4rem; line-height: 1.55; }

/* ---------- 16 CERTIFICATIONS ---------- */
.certs__grid { display: grid; gap: 4rem; }
@media (min-width: 1024px) {
  .certs__grid { grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
  .certs__list { grid-column: span 4; }
  .certs__hack { grid-column: 6 / span 7; }
}
.certs__list .label-heading, .certs__hack > .label-heading { margin-bottom: 1.5rem; }
.cert-rows { border-bottom: 1px solid var(--line); }
.cert-rows li { display: flex; flex-direction: column; gap: 0.3rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.cert-rows__name { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.cert-rows__issuer { font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); }
.hack-grid { display: grid; gap: 3rem; }
@media (min-width: 640px) { .hack-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem var(--gutter); } }
@media (min-width: 1280px) { .hack-grid { grid-template-columns: repeat(3, 1fr); } }
.hack__thumb img { opacity: 0.8; transition: opacity 0.3s ease-out; }
.hack:hover .hack__thumb img { opacity: 1; }
.hack__name { margin-top: 1.25rem; font-weight: 600; line-height: 1.3; }
.hack__meta { margin-top: 0.4rem; font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.hack .arrow-link { margin-top: 0.75rem; }

/* ---------- 17 IMAGES ---------- */
.hack__thumb {
  position: relative; overflow: hidden; aspect-ratio: 480 / 339; max-width: 100%;
  border-radius: 2px; background: var(--surface);
}
.hack__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 18 CONTACT & FOOTER ---------- */
.contact { padding: var(--section) var(--gutter) 0; border-top: 1px solid var(--line); }
.contact__text { margin-top: 2rem; max-width: 52ch; }
.email-link {
  display: inline-flex; align-items: baseline; gap: 0.75rem;
  margin-top: 3rem; max-width: 100%;
  font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; line-height: 1.1;
  overflow-wrap: anywhere;
}
.email-link__text { transition: color 0.34s ease-out, transform 0.34s ease-out; display: inline-block; }
.email-link__arrow { color: var(--accent); transition: transform 0.45s var(--ease-out-expo); }
.email-link:hover .email-link__text { color: var(--accent); transform: translateX(14px); }
.email-link:hover .email-link__arrow { transform: translate(20px, -6px); }
@media (max-width: 639px) { .email-link { font-size: 6.4vw; overflow-wrap: normal; } }
@media (min-width: 640px) { .email-link { font-size: var(--fs-h1); gap: 1rem; } }

.contact__details {
  display: grid; gap: 1.5rem; margin-top: 4rem;
  padding-top: 2rem; border-top: 1px solid var(--line);
}
.contact__details dt {
  font-size: var(--fs-eyebrow); font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted);
}
.contact__details dd { margin-top: 0.4rem; }
.contact__details a { border-bottom: 1px solid var(--line-strong); transition: color 0.3s, border-color 0.3s; }
.contact__details a:hover { color: var(--accent); border-color: var(--accent); }
@media (min-width: 640px) { .contact__details { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .contact__details { grid-template-columns: repeat(5, auto); justify-content: space-between; } }

.footer-bar {
  display: grid; gap: 2.5rem;
  margin-top: var(--section); padding-block: 3rem;
  border-top: 1px solid var(--line);
}
.footer-bar__sig {
  font-family: var(--font-display); font-size: var(--fs-h2);
  text-transform: uppercase; line-height: 1; letter-spacing: -0.01em;
}
.footer-bar__note, .footer-bar__copy {
  margin-top: 1rem; font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted);
}
.footer-bar__copy { margin-top: 0; }
.footer-bar__social ul { display: grid; gap: 0.6rem; }
.footer-bar__social a {
  display: inline-flex; align-items: center; color: var(--muted); transition: color 0.3s;
}
.footer-bar__social a::before {
  content: ""; display: block; height: 1px; width: 0; margin-right: 0;
  background: var(--accent); transition: width 0.4s var(--ease-out-expo), margin 0.4s var(--ease-out-expo);
}
.footer-bar__social a:hover { color: var(--foreground); }
.footer-bar__social a:hover::before { width: 1.5rem; margin-right: 0.6rem; }
@media (min-width: 1024px) {
  .footer-bar { grid-template-columns: repeat(12, 1fr); }
  .footer-bar__brand { grid-column: span 6; }
  .footer-bar__social { grid-column: span 3; }
  .footer-bar__copy { grid-column: span 3; text-align: right; align-self: end; }
}

/* ---------- 19 FALLBACKS (scripts failed to boot) ---------- */
.js-fail .preloader { display: none !important; }
.js-fail [data-reveal], .js-fail .hero__role, .js-fail .hero__line .ch,
.js-fail .hero-fade, .js-fail .hero__photo, .js-fail .split-inner {
  opacity: 1 !important; transform: none !important;
}

/* ---------- 20 REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .preloader { display: none !important; }
  .marquee__track { animation: none; }
  .js [data-reveal], .js .hero__role, .js .hero__line .ch, .js .hero-fade,
  .js .hero__photo, .js .split-inner, .js .w {
    opacity: 1 !important; transform: none !important;
  }
}
