/* ============================================================
   SHELLY ANAND — ADVOCATE · CINEMATIC SCROLL PORTFOLIO
   Palette: ink #060807 · panel #0B0F0D · emerald #17C97F
            emerald-deep #0F7A52 · cream #EFE7D6 · muted #8B9189
   Type:    Anton (display) · Fraunces italic (editorial)
            IBM Plex Mono (court captions) · Inter (body)
   ============================================================ */

:root {
  --ink: #060807;
  --panel: #0b0f0d;
  --emerald: #17c97f;
  --emerald-deep: #0f7a52;
  --cream: #efe7d6;
  --muted: #8b9189;
  --display: "Anton", sans-serif;
  --editorial: "Fraunces", serif;
  --mono: "IBM Plex Mono", monospace;
  --body: "Inter", sans-serif;
}

* { 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-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 4px;
}

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

/* ---------- film grain ---------- */
.grain {
  position: fixed;
  inset: -100%;
  z-index: 60;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, 1%); }
}

/* ---------- header ---------- */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  padding: 1.4rem 2rem;
  mix-blend-mode: difference;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-portrait {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: min(46vw, 62vh);
  aspect-ratio: 3 / 4;
  background-image: url("../assets/photos/hero.png");
  background-size: cover;
  background-position: 50% 12%;
  background-repeat: no-repeat;
  filter: grayscale(0.85) contrast(1.15) brightness(0.62) sepia(0.25) hue-rotate(105deg) saturate(1.25);
  -webkit-mask-image: radial-gradient(ellipse 58% 55% at 50% 40%, black 35%, transparent 72%);
  mask-image: radial-gradient(ellipse 58% 55% at 50% 40%, black 35%, transparent 72%);
  opacity: 0.9;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, transparent 40%, rgba(6, 8, 7, 0.85) 100%),
    linear-gradient(to bottom, rgba(6,8,7,0.5), transparent 25%, transparent 70%, var(--ink) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  pointer-events: none;
}

.hero-eyebrow { margin-bottom: 1.2rem; color: var(--emerald); }

.hero-title {
  font-family: var(--display);
  font-size: clamp(4rem, 16vw, 15rem);
  line-height: 0.88;
  letter-spacing: 0.01em;
  font-weight: 400;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .char { display: inline-block; will-change: transform; }
.hero-title .accent .char { color: var(--emerald); }

.hero-sub {
  margin-top: 1.6rem;
  font-family: var(--editorial);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--cream);
  opacity: 0.85;
}

.hero-scroll {
  position: absolute;
  bottom: 7.5rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

.hero-stats {
  position: absolute;
  z-index: 3;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(239, 231, 214, 0.12);
  background: linear-gradient(to top, rgba(6,8,7,0.9), transparent);
}
.stat {
  padding: 1.2rem 1rem 1.4rem;
  text-align: center;
  border-left: 1px solid rgba(239, 231, 214, 0.08);
}
.stat:first-child { border-left: none; }
.stat-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: var(--cream);
  line-height: 1.1;
}
.stat-label { display: block; margin-top: 0.3rem; font-size: 0.58rem; }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(239, 231, 214, 0.1);
  border-bottom: 1px solid rgba(239, 231, 214, 0.1);
  background: var(--panel);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track span {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(239, 231, 214, 0.4);
  white-space: nowrap;
  padding-right: 1rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- acts (pinned trio) ---------- */
.acts { position: relative; }
.acts-stage {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.act {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4vw;
  padding: 0 6vw;
  visibility: hidden;
}
.act.is-active { visibility: visible; }

.act-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(239, 231, 214, 0.14);
}
.act-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.act-media-fill {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 90% at 30% 20%, rgba(23, 201, 127, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 70% at 80% 90%, rgba(15, 122, 82, 0.22), transparent 65%),
    rgba(11, 15, 13, 0.35);
}
/* cinematic grade over the advocate photos — until the Seedance clips land */
.act-media-photo {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  filter: grayscale(0.45) contrast(1.08) brightness(0.82) saturate(0.9);
}
.act-media-tag {
  position: absolute;
  bottom: 0.9rem;
  left: 1rem;
  color: var(--emerald);
}

.act-eyebrow { color: var(--emerald); margin-bottom: 1.4rem; }
.act-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.9;
  margin-bottom: 1.6rem;
}
.act-copy {
  max-width: 44ch;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- kinetic strips ---------- */
.kinetic {
  padding: 10rem 0 6rem;
  overflow: hidden;
}
.kinetic-line {
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 11rem);
  line-height: 0.95;
  white-space: nowrap;
  will-change: transform;
}
.kinetic-line.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(23, 201, 127, 0.5);
}

/* ---------- work ---------- */
.work { padding: 2rem 6vw 10rem; }
.work-head { margin-bottom: 4rem; }
.work-eyebrow { color: var(--emerald); margin-bottom: 1rem; }
.work-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.9;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.card {
  position: relative;
  display: block;
  padding: 2rem 1.8rem 3.4rem;
  background: var(--panel);
  border: 1px solid rgba(239, 231, 214, 0.1);
  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:hover {
  transform: translateY(-10px);
  border-color: rgba(23, 201, 127, 0.55);
  background: #0d1310;
}
.card-cite { color: var(--emerald); margin-bottom: 1.1rem; font-size: 0.62rem; }
.card-title {
  font-family: var(--editorial);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.9rem;
}
.card-copy { color: var(--muted); font-size: 0.92rem; }
.card-arrow {
  position: absolute;
  right: 1.6rem;
  bottom: 1.3rem;
  color: var(--emerald);
  font-size: 1.3rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* ---------- cta ---------- */
.cta {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 6vw;
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(15, 122, 82, 0.16), transparent 70%),
    var(--ink);
}
.cta-eyebrow { color: var(--emerald); margin-bottom: 1.6rem; }
.cta-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.4rem, 12vw, 11rem);
  line-height: 0.9;
}
.cta-title .line { display: inline-block; overflow: hidden; vertical-align: bottom; }
.cta-title .char { display: inline-block; }
.cta-title .accent .char { color: var(--emerald); }
.cta-sub {
  margin: 1.8rem 0 2.6rem;
  font-family: var(--editorial);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--muted);
}
.cta-buttons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-block;
  padding: 1rem 2.4rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--emerald);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-solid { background: var(--emerald); color: var(--ink); font-weight: 500; }
.btn-solid:hover { background: var(--cream); border-color: var(--cream); }
.btn-ghost { color: var(--cream); }
.btn-ghost:hover { background: rgba(23, 201, 127, 0.12); }

/* ---------- footer ---------- */
.site-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 2rem;
  border-top: 1px solid rgba(239, 231, 214, 0.1);
}
.foot-links { display: flex; gap: 1.6rem; font-size: 0.85rem; color: var(--muted); }
.foot-links a:hover { color: var(--emerald); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .act { grid-template-columns: 1fr; gap: 1.6rem; align-content: center; }
  .act-media { max-height: 34vh; aspect-ratio: 16 / 9; }
  .work-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; border-top: 1px solid rgba(239,231,214,0.08); }
  .stat:nth-child(4) { border-top: 1px solid rgba(239,231,214,0.08); }
  .hero-scroll { bottom: 10.5rem; }
  .site-foot { flex-direction: column; text-align: center; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .marquee-track, .hero-scroll { animation: none; }
  * { scroll-behavior: auto; }
}
