/* =================================================================
   RITESH KUMAR — Digital CV
   Dark · Editorial · Gallery-like silence
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg:        #08080a;
  --bg-2:      #0d0d10;
  --bg-elev:   #111116;
  --text:      #ECE7E1;   /* warm ivory */
  --text-dim:  #8f8a84;
  --text-faint:#5a5650;
  --line:      rgba(236, 231, 225, 0.12);
  --line-soft: rgba(236, 231, 225, 0.06);
  --accent:    #D8A657;   /* muted bronze — used sparingly */
  --accent-2:  #b8843a;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --pad: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1400px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: clip;
  cursor: none;
}

@media (max-width: 900px) { body { cursor: auto; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: italic; }

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

/* ---------- Smooth scroll (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Custom cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot {
  position: fixed; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), opacity .3s;
}
.cursor__ring {
  position: fixed; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  transform: translate(-50%, -50%);
  transition: width .4s var(--ease), height .4s var(--ease), border-color .4s, background .4s;
}
.cursor.is-hover .cursor__ring { width: 56px; height: 56px; border-color: rgba(255,255,255,0.9); }
.cursor.is-hover .cursor__dot { opacity: 0; }
.cursor.is-view .cursor__ring {
  width: 92px; height: 92px; background: rgba(255,255,255,0.95); border-color: transparent;
}
.cursor.is-view .cursor__dot { opacity: 0; }
.cursor__label {
  position: fixed; transform: translate(-50%,-50%);
  font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  color: #0a0a0a; opacity: 0; transition: opacity .3s; mix-blend-mode: normal;
}
.cursor.is-view .cursor__label { opacity: 1; }
@media (max-width: 900px) { .cursor { display: none; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 9997;
  background: transparent;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .1s linear;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 10000;
  background: var(--text); color: #000; padding: .6rem 1rem; border-radius: 4px;
  font-family: var(--mono); font-size: .8rem;
}
.skip-link:focus { top: 1rem; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--pad);
  transition: transform .5s var(--ease), background .5s, padding .5s, border-color .5s;
  border-bottom: 1px solid transparent;
  mix-blend-mode: difference;
}
.nav.is-scrolled {
  background: rgba(8,8,10,0.72);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  padding-top: 1rem; padding-bottom: 1rem;
  border-color: var(--line-soft);
  mix-blend-mode: normal;
}
.nav.is-hidden { transform: translateY(-110%); }

.nav__brand { display: flex; align-items: center; gap: .7rem; }
.nav__mark {
  font-family: var(--serif); font-weight: 500; font-size: 1.15rem; letter-spacing: .02em;
  border: 1px solid var(--line); border-radius: 50%;
  width: 38px; height: 38px; display: grid; place-items: center;
  transition: border-color .4s, color .4s;
}
.nav__brand:hover .nav__mark { border-color: var(--accent); color: var(--accent); }
.nav__name { font-size: .82rem; letter-spacing: .04em; font-weight: 500; }

.nav__links { display: flex; gap: 2.2rem; }
.nav__links a {
  font-size: .8rem; letter-spacing: .03em; position: relative;
  display: inline-flex; align-items: baseline; gap: .45rem;
  color: var(--text-dim); transition: color .35s;
}
.nav__links a .idx { font-family: var(--mono); font-size: .6rem; color: var(--text-faint); transition: color .35s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--accent); transition: width .4s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover .idx { color: var(--accent); }
.nav__links a:hover::after { width: 100%; }

.nav__meta { display: flex; align-items: center; gap: .6rem; font-family: var(--mono); font-size: .68rem; color: var(--text-dim); letter-spacing: .05em; }
.nav__status { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(216,166,87,.6); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(216,166,87,.5); }
  70% { box-shadow: 0 0 0 7px rgba(216,166,87,0); }
  100% { box-shadow: 0 0 0 0 rgba(216,166,87,0); }
}
.nav__place { color: var(--text-faint); }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 34px; height: 34px; position: relative; }
.nav__toggle span { position: absolute; left: 6px; right: 6px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), opacity .3s; }
.nav__toggle span:nth-child(1) { top: 13px; }
.nav__toggle span:nth-child(2) { top: 20px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 850;
  background: var(--bg); padding: 6rem var(--pad) 2rem;
  display: flex; flex-direction: column; justify-content: center;
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease);
  pointer-events: none;
}
.menu.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu__inner { display: flex; flex-direction: column; gap: .4rem; }
.menu__inner a {
  font-family: var(--serif); font-size: clamp(2.4rem, 11vw, 4rem); line-height: 1.1;
  display: flex; align-items: baseline; gap: 1rem; padding: .3rem 0;
}
.menu__inner a .idx { font-family: var(--mono); font-size: .8rem; color: var(--text-faint); }
.menu__foot { margin-top: 3rem; display: flex; flex-direction: column; gap: .5rem; font-family: var(--mono); font-size: .85rem; color: var(--text-dim); }

/* =================================================================
   HERO
   ================================================================= */
.hero {
  min-height: 100svh;
  padding: 9rem var(--pad) 3rem;
  display: flex; flex-direction: column; justify-content: center;
  max-width: var(--maxw); margin: 0 auto; position: relative;
}
.hero__label {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .08em;
  color: var(--text-dim); text-transform: uppercase; margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.hero__label .tick { color: var(--accent); }
.hero__label-sep { color: var(--text-faint); }

.hero__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.9rem, 11.5vw, 10rem);
  line-height: 0.95; letter-spacing: -0.02em;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; transform: translateY(105%); }
.hero__title em { color: var(--accent); font-weight: 300; }

.hero__foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem); flex-wrap: wrap;
}
.hero__intro { max-width: 36ch; font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--text-dim); line-height: 1.55; }
.hero__intro strong { color: var(--text); font-weight: 500; }
.hero__intro strong.accent { color: var(--accent); }

.hero__cue {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text); white-space: nowrap;
}
.hero__cue svg { animation: bob 2.2s var(--ease-io) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(4px);} }

.hero__now {
  position: absolute; bottom: 2.2rem; left: var(--pad);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; color: var(--text-faint);
  display: flex; align-items: center; gap: .55rem;
}
.hero__now-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

/* =================================================================
   MARQUEE
   ================================================================= */
.marquee {
  position: relative;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: clamp(1.9rem, 3.5vw, 3rem) 0; overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 2.5rem;
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 300;
  color: var(--text-dim); will-change: transform;
  animation: marquee 20s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track .dot { color: var(--accent); font-size: .7em; }
@keyframes marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* =================================================================
   STATS
   ================================================================= */
.stats {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.stat { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.stat__num {
  font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 300;
  line-height: 1; letter-spacing: -0.02em; display: flex; align-items: baseline;
}
.stat__num i { font-style: normal; color: var(--accent); font-size: .5em; margin-left: .1em; }
.stat__num--word { color: var(--text); }
.stat__label { margin-top: .8rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--text-dim); text-transform: uppercase; }

/* =================================================================
   SECTION HEADINGS
   ================================================================= */
.section-head { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section-head__idx {
  display: block; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.4rem;
}
.section-head__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.9rem, 5vw, 4.2rem); line-height: 1.05; letter-spacing: -0.02em;
  max-width: 18ch;
}
.section-head__title em { color: var(--text-dim); }

/* =================================================================
   WORK / CASES
   ================================================================= */
.work { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 9vw, 8rem); }
.cases {
  max-width: var(--maxw); margin: clamp(3rem, 7vw, 6rem) auto 0; padding: 0 var(--pad);
  display: flex; flex-direction: column;
}
.case { border-top: 1px solid var(--line); }
.case:last-child { border-bottom: 1px solid var(--line); }
.case__link {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center; padding: clamp(2rem, 4vw, 3.4rem) 0;
  transition: padding .5s var(--ease);
}
.case__link:hover { padding-left: clamp(0.5rem, 2vw, 1.6rem); }

.case__media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; }
.plate {
  position: relative; width: 100%; height: 100%;
  background: var(--bg-elev); overflow: hidden;
  display: grid; place-items: center;
  transition: transform .7s var(--ease), filter .7s var(--ease);
  filter: saturate(0.8);
}
.case__link:hover .plate { transform: scale(1.03); filter: saturate(1.1); }
.plate__idx {
  position: absolute; top: 1rem; left: 1.2rem; z-index: 3;
  font-family: var(--mono); font-size: .72rem; color: var(--text-dim); letter-spacing: .1em;
}
.plate__tag {
  position: absolute; bottom: 1rem; left: 1.2rem; z-index: 3;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text); padding: .35rem .7rem; border: 1px solid var(--line);
  border-radius: 100px; background: rgba(8,8,10,0.4); backdrop-filter: blur(4px);
}

/* Plate visual themes */
.case__media--edge .plate { background: radial-gradient(120% 120% at 20% 20%, #16324f 0%, #0b1522 45%, #08080a 100%); }
.case__media--auth .plate { background: radial-gradient(120% 120% at 80% 30%, #3a2a12 0%, #1a140a 50%, #08080a 100%); }
.case__media--search .plate { background: radial-gradient(120% 120% at 30% 70%, #2a1840 0%, #140d20 50%, #08080a 100%); }
.case__media--auto .plate { background: linear-gradient(160deg, #1a1c22 0%, #0c0d10 60%, #08080a 100%); }

.plate__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
}
.plate__glow {
  position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(120,180,255,.4), transparent 70%);
  filter: blur(30px); animation: float 9s var(--ease-io) infinite;
}
@keyframes float { 0%,100% { transform: translate(-10%, -10%);} 50% { transform: translate(12%, 10%);} }

.plate__rings { position: absolute; width: 60%; aspect-ratio: 1; }
.plate__rings::before, .plate__rings::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(216,166,87,.35);
  animation: expand 4.5s var(--ease-io) infinite;
}
.plate__rings::after { animation-delay: 2.25s; }
@keyframes expand { 0% { transform: scale(.3); opacity: 0; } 30% { opacity: .8; } 100% { transform: scale(1.15); opacity: 0; } }

.plate__bars { position: absolute; inset: auto 0 30% 0; height: 40%; display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding: 0 2rem; }
.plate__bars::before, .plate__bars::after { content: ""; width: 14%; background: rgba(180,140,255,.4); border-radius: 3px 3px 0 0; animation: eq 1.8s var(--ease-io) infinite; }
.plate__bars::after { animation-delay: .6s; }
@keyframes eq { 0%,100% { height: 30%; } 50% { height: 90%; } }

.plate__road { position: absolute; inset: 0; }
.plate__road::before {
  content: ""; position: absolute; left: 50%; top: 20%; bottom: -10%; width: 40%;
  transform: translateX(-50%) perspective(300px) rotateX(50deg);
  background-image: repeating-linear-gradient(to bottom, rgba(216,166,87,.5) 0 18px, transparent 18px 46px);
  mask-image: linear-gradient(to top, #000, transparent);
  animation: road 1.4s linear infinite;
}
@keyframes road { to { background-position-y: 64px; } }

.case__meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--text-dim);
  text-transform: uppercase; margin-bottom: 1.2rem;
}
.case__meta span:last-child { color: var(--text-faint); }
.case__title {
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1.08; letter-spacing: -0.01em; margin-bottom: 1rem; transition: color .4s;
}
.case__link:hover .case__title { color: var(--accent); }
.case__desc { color: var(--text-dim); font-size: clamp(.95rem, 1.1vw, 1.05rem); line-height: 1.6; max-width: 52ch; }
.case__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.case__tags span {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .03em; color: var(--text-dim);
  padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 100px;
}

/* =================================================================
   ABOUT
   ================================================================= */
.about { padding: clamp(4rem, 10vw, 9rem) 0; }
.about__grid {
  max-width: var(--maxw); margin: 2rem auto 0; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.about__lead {
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.15; letter-spacing: -0.015em;
}
.about__lead em { color: var(--accent); }
.about__col { padding-top: .6rem; }
.about__col p { color: var(--text-dim); font-size: clamp(1rem, 1.15vw, 1.1rem); line-height: 1.7; margin-bottom: 1.3rem; }
.about__sign { color: var(--text-faint) !important; font-style: italic; }

/* Capabilities */
.caps { max-width: var(--maxw); margin: clamp(3rem, 8vw, 7rem) auto 0; padding: 0 var(--pad); }
.caps__label { display: block; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 2rem; }
.caps__list { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); }
.caps__list li {
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.1rem, 2.4vw, 2rem);
  color: var(--text-dim); padding: 1rem 1.6rem 1rem 0; position: relative;
  transition: color .4s, transform .4s var(--ease);
}
.caps__list li:hover { color: var(--text); transform: translateX(6px); }
.caps__list li:not(:last-child)::after { content: "\00B7"; position: absolute; right: .55rem; color: var(--text-faint); }

/* =================================================================
   PATH / TIMELINE
   ================================================================= */
.path { padding: clamp(4rem, 10vw, 9rem) 0; }
.timeline { max-width: var(--maxw); margin: clamp(3rem, 7vw, 6rem) auto 0; padding: 0 var(--pad); }
.tl {
  display: grid; grid-template-columns: 0.4fr 1.6fr; gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.8rem, 3vw, 2.6rem) 0; border-top: 1px solid var(--line);
  transition: background .5s;
}
.tl:last-child { border-bottom: 1px solid var(--line); }
.tl:hover { background: linear-gradient(90deg, var(--line-soft), transparent 60%); }
.tl__year { font-family: var(--mono); font-size: .82rem; letter-spacing: .04em; color: var(--accent); padding-top: .4rem; }
.tl__main h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.1; margin-bottom: .5rem; }
.tl__org { display: block; font-family: var(--mono); font-size: .74rem; letter-spacing: .03em; color: var(--text-dim); text-transform: uppercase; margin-bottom: 1rem; }
.tl__main p { color: var(--text-dim); font-size: clamp(.95rem, 1.1vw, 1.05rem); line-height: 1.6; max-width: 60ch; }

/* Recognition + Education */
.extra {
  max-width: var(--maxw); margin: clamp(4rem, 8vw, 7rem) auto 0; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem);
}
.extra__label { display: block; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.4rem; }
.awards li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1rem 0; border-top: 1px solid var(--line-soft);
}
.awards li span { font-size: clamp(.95rem, 1.3vw, 1.15rem); }
.awards li i { font-family: var(--mono); font-style: normal; font-size: .72rem; color: var(--text-faint); white-space: nowrap; }
.awards__spacer { border: 0 !important; padding: .4rem 0 !important; }

/* =================================================================
   CONTACT
   ================================================================= */
.contact {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(5rem, 12vw, 11rem) var(--pad) clamp(4rem, 9vw, 7rem);
  text-align: center;
}
.contact .section-head__idx { text-align: center; }
.contact__mail {
  display: inline-block; font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.6rem, 11vw, 9rem); line-height: 0.98; letter-spacing: -0.02em;
  margin: 1rem 0; transition: color .4s;
}
.contact__mail-line { display: block; overflow: hidden; }
.contact__mail-line > span { display: block; }
.contact__mail em { color: var(--accent); transition: color .4s; }
.contact__mail:hover { color: var(--text-dim); }
.contact__mail:hover em { color: var(--text); }

.contact__row { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.contact__pill {
  font-family: var(--mono); font-size: .82rem; letter-spacing: .03em; color: var(--text-dim);
  padding: .85rem 1.5rem; border: 1px solid var(--line); border-radius: 100px;
  transition: color .4s, border-color .4s, background .4s;
}
.contact__pill:hover { color: var(--text); border-color: var(--accent); background: var(--line-soft); }

/* =================================================================
   FOOTER
   ================================================================= */
.footer { border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 5rem) var(--pad) 2rem; max-width: var(--maxw); margin: 0 auto; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; padding-bottom: clamp(3rem, 7vw, 6rem); }
.footer__big { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 8vw, 6rem); line-height: 1; letter-spacing: -0.02em; }
.footer__links { display: flex; flex-direction: column; gap: .6rem; text-align: right; }
.footer__links a { font-family: var(--mono); font-size: .82rem; color: var(--text-dim); transition: color .35s; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; color: var(--text-faint); }
.footer__back { transition: color .35s; }
.footer__back:hover { color: var(--text); }

/* =================================================================
   REVEAL ANIMATIONS
   ================================================================= */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: translateY(0); }

/* Hero line stagger handled by JS class */
.hero__title .line.is-in > span { transform: translateY(0); transition: transform 1s var(--ease); }
.hero__title .line > span { transition: transform 1s var(--ease); }

.contact__mail-line > span { transform: translateY(105%); transition: transform 1s var(--ease); }
.contact__mail-line.is-in > span { transform: translateY(0); }

/* Staggered children */
.is-in > [data-reveal] { transition-delay: calc(var(--i, 0) * 60ms); }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
  .about__grid { grid-template-columns: 1fr; }
  .case__link { grid-template-columns: 1fr; gap: 1.4rem; }
  .case__media { aspect-ratio: 16 / 8; }
}

@media (max-width: 720px) {
  .nav__links, .nav__meta { display: none; }
  .nav__toggle { display: block; }
  .extra { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; gap: .4rem; }
  .tl__year { padding-top: 0; }
  .footer__links { text-align: left; }
  .footer__top { align-items: flex-start; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .stats { gap: 2rem 1.4rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: 6.5rem; padding-bottom: 3rem; }
  .hero__now { position: static; margin-top: 2rem; }
}

/* =================================================================
   LITE MODE - software rendering / no GPU (Cloud PC / DevBox)
   Trims GPU-heavy effects for smoother FPS. No effect on real GPUs.
   ================================================================= */
html.lite body { cursor: auto; }
html.lite .cursor { display: none; }
html.lite .nav { mix-blend-mode: normal; }
html.lite .nav.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(8, 8, 10, 0.94); }
html.lite .plate__tag { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(8, 8, 10, 0.55); }
html.lite .plate__glow,
html.lite .plate__rings::before,
html.lite .plate__rings::after,
html.lite .plate__bars::before,
html.lite .plate__bars::after,
html.lite .plate__road::before,
html.lite .nav__status,
html.lite .hero__cue svg { animation: none; }
