/* ============================================================
   ABHINAV THUKRAL — CINEMATIC SCROLL PORTFOLIO
   Ink black · rose accent · cream type · Anton / Archivo
   ============================================================ */

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/anton-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
}

:root {
  --ink: #0a0708;
  --ink-2: #110b0d;
  --cream: #f4ede6;
  --cream-dim: rgba(244, 237, 230, 0.55);
  --rose: #ff7a96;
  --rose-deep: #5c1f30;
  --line: rgba(244, 237, 230, 0.14);
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --body: 'Archivo', 'Helvetica Neue', sans-serif;
  --mono: 'SF Mono', ui-monospace, 'Menlo', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--rose); color: var(--ink); }

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- grain ---------- */
.grain {
  position: fixed;
  inset: -100px;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  animation: grainShift 0.9s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-40px, 30px); }
  50% { transform: translate(30px, -45px); }
  75% { transform: translate(-25px, -20px); }
  100% { transform: translate(0, 0); }
}

/* ---------- loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark {
  font-family: var(--display);
  font-size: 3.4rem;
  color: var(--cream);
  letter-spacing: 0.04em;
}
.loader__mark::after { content: '.'; color: var(--rose); }
.loader__bar {
  width: min(320px, 60vw);
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.loader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--rose);
  transition: width 0.2s ease;
}
.loader__label { color: var(--cream-dim); }

/* ---------- topbar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem clamp(1.2rem, 4vw, 3rem);
  mix-blend-mode: difference;
}
.topbar a { color: var(--cream); text-decoration: none; }
.topbar__nav { display: flex; gap: clamp(1rem, 3vw, 2.4rem); }
.topbar__nav a { position: relative; padding-bottom: 2px; }
.topbar__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}
.topbar__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- hero / orbit ---------- */
.hero { position: relative; }
.hero__stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 45%, transparent 40%, rgba(10, 7, 8, 0.85) 100%),
    linear-gradient(to bottom, rgba(10, 7, 8, 0.55) 0%, transparent 25%, transparent 70%, var(--ink) 100%);
  pointer-events: none;
}
.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 clamp(1.2rem, 5vw, 4.5rem) clamp(4rem, 9vh, 7rem);
  pointer-events: none;
}
.hero__eyebrow { color: var(--rose); margin-bottom: 1.2rem; }
.hero__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4rem, 15.5vw, 15rem);
  line-height: 0.88;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--cream);
}
.hero__line { display: block; overflow: hidden; }
.hero__line--accent { color: var(--rose); }
.hero__line .ch { display: inline-block; will-change: transform, opacity; }
.hero__sub {
  margin-top: 1.6rem;
  max-width: 34ch;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 500;
  color: var(--cream-dim);
}
.hero__scrollcue {
  position: absolute;
  right: clamp(1.2rem, 4vw, 3rem);
  bottom: clamp(4rem, 9vh, 7rem);
  color: var(--cream-dim);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}
.hero__scrollcue-line {
  width: 1px;
  height: 54px;
  background: linear-gradient(var(--rose), transparent);
  animation: cueDrop 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- stats ---------- */
.stats {
  position: relative;
  z-index: 2;
  background: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(3.5rem, 9vh, 7rem) clamp(1.2rem, 5vw, 4.5rem);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat { border-left: 1px solid var(--line); padding-left: 1.4rem; }
.stat__num {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  line-height: 1;
  color: var(--cream);
}
.stat__suffix { color: var(--rose); }
.stat__suffix .stat__value { color: var(--rose); }
.stat__label { margin-top: 0.9rem; color: var(--cream-dim); }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  background: var(--ink);
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}
.marquee__track span {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 237, 230, 0.35);
}

/* ---------- pillars ---------- */
.pillars { position: relative; }
.pillars__stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.pillars__video,
.work__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pillars__veil,
.work__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 7, 8, 0.92) 30%, rgba(10, 7, 8, 0.55) 70%, rgba(10, 7, 8, 0.8) 100%);
}
.pillars__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  padding: 5rem clamp(1.2rem, 5vw, 4.5rem) 2.5rem;
  overflow: hidden;
}
.section-eyebrow { color: var(--rose); margin-bottom: 2.2rem; }
.pillars__list { list-style: none; display: flex; flex-direction: column; gap: clamp(1.4rem, 4vh, 2.8rem); }
.pillar {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0 1.5rem;
  align-items: baseline;
  opacity: 0.18;
  transform: translateX(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.pillar.is-active { opacity: 1; transform: translateX(clamp(0.5rem, 1.5vw, 1.4rem)); }
.pillar__index { color: var(--cream-dim); }
.pillar.is-active .pillar__index { color: var(--rose); }
.pillar__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--cream);
}
.pillar.is-active .pillar__title { color: var(--rose); }
.pillar__desc {
  grid-column: 2;
  margin-top: 0.8rem;
  max-width: 46ch;
  color: var(--cream-dim);
  font-size: clamp(0.92rem, 1.3vw, 1.1rem);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
}
.pillar.is-active .pillar__desc { max-height: 6rem; }
@media (max-height: 840px) {
  .pillars__content .section-eyebrow { margin-bottom: 1.1rem; }
  .pillars__list { gap: 1rem; }
  .pillar .pillar__title { font-size: clamp(1.8rem, 4.2vw, 3.2rem); }
  .pillar .pillar__desc { font-size: 0.88rem; }
  .pillar.is-active .pillar__desc { max-height: 6rem; }
}

/* ---------- work ---------- */
.work {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 12vh, 9rem) clamp(1.2rem, 5vw, 4.5rem);
}
.work__veil {
  background: linear-gradient(to bottom, var(--ink) 0%, rgba(10, 7, 8, 0.82) 30%, rgba(10, 7, 8, 0.82) 70%, var(--ink) 100%);
}
.work__inner { position: relative; z-index: 2; }
.work__heading {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: clamp(2.5rem, 7vh, 5rem);
}
.work__heading em { font-style: normal; color: var(--rose); }
.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.card {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(10, 7, 8, 0.6);
  backdrop-filter: blur(6px);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  min-height: 15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s ease, background 0.45s ease;
  will-change: transform;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover, .card:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(255, 122, 150, 0.55);
  background: rgba(92, 31, 48, 0.18);
  outline: none;
}
.card:hover::before, .card:focus-visible::before { transform: scaleX(1); }
.card__index { color: var(--rose); }
.card__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  line-height: 1;
  text-transform: uppercase;
}
.card__pitch { color: var(--cream-dim); max-width: 44ch; font-size: 0.98rem; }
.card__meta { color: rgba(255, 122, 150, 0.75); font-size: 0.62rem; }
.card__arrow {
  margin-top: auto;
  align-self: flex-end;
  font-size: 1.5rem;
  color: var(--rose);
  transform: translateX(-10px);
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.45s ease;
}
.card:hover .card__arrow, .card:focus-visible .card__arrow { transform: translateX(0); opacity: 1; }

/* ---------- method ---------- */
.method {
  position: relative;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: clamp(5rem, 12vh, 9rem) clamp(1.2rem, 5vw, 4.5rem);
}
.method__heading {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 8rem);
  line-height: 0.9;
  text-transform: uppercase;
}
.method__heading em { font-style: normal; color: var(--rose); }
.method__lede {
  max-width: 52ch;
  margin-top: 1.8rem;
  color: var(--cream-dim);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}
.method__steps {
  list-style: none;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  border-top: 1px solid var(--line);
}
.method-step {
  display: grid;
  grid-template-columns: clamp(5rem, 12vw, 12rem) 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: clamp(1.6rem, 4vh, 2.8rem) 0;
  border-bottom: 1px solid var(--line);
}
.method-step__num {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 122, 150, 0.6);
}
.method-step__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.method-step__desc { color: var(--cream-dim); max-width: 62ch; }

/* ---------- arc / about ---------- */
.arc {
  position: relative;
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: clamp(5rem, 12vh, 9rem) clamp(1.2rem, 5vw, 4.5rem);
}
.arc__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.arc__left { position: sticky; top: 14vh; }
.arc__heading {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6.5vw, 6.5rem);
  line-height: 0.92;
  text-transform: uppercase;
}
.arc__heading em { font-style: normal; color: var(--rose); }
.arc__lede {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 500;
  color: var(--cream);
  max-width: 56ch;
}
.arc__body {
  margin-top: 1.4rem;
  color: var(--cream-dim);
  max-width: 60ch;
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
}
.arc__proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 2rem;
  margin: 2.2rem 0 0;
  color: var(--rose);
}
.xp { list-style: none; margin-top: clamp(2.5rem, 6vh, 4rem); border-top: 1px solid var(--line); }
.xp__item {
  display: grid;
  grid-template-columns: clamp(7rem, 14vw, 10rem) 1fr;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3.5vh, 2.2rem) 0;
  border-bottom: 1px solid var(--line);
}
.xp__years { color: var(--rose); padding-top: 0.35rem; }
.xp__role {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}
.xp__desc { color: var(--cream-dim); max-width: 62ch; font-size: 0.96rem; }
.creds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: clamp(2rem, 5vh, 3rem);
}
.creds__item {
  border: 1px solid var(--line);
  padding: 0.55rem 0.9rem;
  color: var(--cream-dim);
  font-size: 0.6rem;
  white-space: nowrap;
}

/* ---------- finale ---------- */
.finale {
  position: relative;
  background: var(--ink);
  border-top: 1px solid var(--line);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(6rem, 16vh, 11rem) clamp(1.2rem, 5vw, 4.5rem) 0;
}
.finale__heading {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.2rem, 11.5vw, 11rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--cream);
}
.finale__line { display: block; overflow: hidden; }
.finale__line .ch { display: inline-block; will-change: transform; }
.finale__line--accent { color: var(--rose); }
.finale__sub {
  margin-top: 1.8rem;
  max-width: 52ch;
  color: var(--cream-dim);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}
.finale__actions {
  display: flex;
  gap: 1.2rem;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  flex-wrap: wrap;
}
.btn {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.1rem 2.6rem;
  border: 1px solid var(--rose);
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}
.btn--solid { background: var(--rose); color: var(--ink); }
.btn--solid:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(255, 122, 150, 0.35); }
.btn--ghost { color: var(--cream); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--rose); color: var(--rose); transform: translateY(-4px); }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: clamp(4rem, 10vh, 7rem);
  padding: 1.6rem 0 2rem;
}
.footer__mark { color: var(--cream-dim); }
.footer__social { display: flex; gap: 1.8rem; }
.footer__social a { color: var(--cream); text-decoration: none; position: relative; padding-bottom: 2px; }
.footer__social a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}
.footer__social a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  .work__grid { grid-template-columns: 1fr; }
  .topbar__nav a:not(.topbar__cta) { display: none; }
  .arc__inner { grid-template-columns: 1fr; }
  .arc__left { position: static; margin-bottom: 2rem; }
  .xp__item, .method-step { grid-template-columns: 1fr; gap: 0.5rem; }
  .creds__item { white-space: normal; }
}
@media (max-width: 700px) {
  .hero__scrollcue { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scrollcue-line { animation: none; }
  .card, .btn, .pillar { transition: none; }
  html { scroll-behavior: auto; }
}
