/* ============================================================
   Pamir Shakir — Creative Producer
   Editorial · big-type · single accent of motion
   ============================================================ */

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-60: rgba(10, 10, 10, 0.6);
  --ink-40: rgba(10, 10, 10, 0.4);
  --ink-12: rgba(10, 10, 10, 0.12);
  --ink-07: rgba(10, 10, 10, 0.07);
  --accent: #1f3d2b;            /* muted forest green, used sparingly */
  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 72px);
  --font: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Reusable pill buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0.7em 1.4em;
  border-radius: 999px;
  border: 1px solid var(--ink-12);
  transition: background-color 0.25s ease, color 0.25s ease,
              border-color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.pill--ghost { background: transparent; color: var(--ink); }
.pill--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.pill--solid {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.pill--solid:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.pill--lg { font-size: 0.82rem; padding: 1.05em 2.4em; margin-top: 2.4rem; }

/* ---------- Section heads ---------- */
.section-head { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section-head__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--ink-40);
  margin-bottom: 0.9rem;
}
.section-head__title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px var(--gutter);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--ink-07);
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav__work { justify-self: start; }
.nav__contact { justify-self: end; }
.nav__name {
  justify-self: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 84px var(--gutter) 36px;
  text-align: center;
}
.hero__location {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--ink-40);
  margin-bottom: clamp(8px, 2vh, 28px);
}

.hero__stage {
  position: relative;
  width: 100%;
  max-width: 1180px;
  min-height: clamp(360px, 60vh, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__headline {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.84;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  pointer-events: none;
  user-select: none;
}
.hero__line {
  font-size: clamp(2.8rem, 14.6vw, 13rem);
  display: block;
  width: 100%;
  white-space: nowrap;
}
.hero__line--top { text-align: left; }
.hero__line--bottom { text-align: right; }

/* Figure stands in front of the headline (transparent video), centered
   and bottom-anchored so the type sits behind the torso. */
.hero__figure {
  position: absolute;
  left: 50%;
  bottom: clamp(-46px, -5vh, -14px);
  transform: translateX(-50%);
  width: clamp(300px, 36vw, 480px);
  z-index: 3;
  pointer-events: none;
}
/* soft elliptical contact shadow to ground the cut-out figure */
.hero__figure::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  width: 56%;
  height: 26px;
  background: radial-gradient(ellipse at center, rgba(10,10,10,0.16), rgba(10,10,10,0) 70%);
  z-index: -1;
}
.hero__figure-media {
  width: 100%;
  height: auto;
  display: block;
}

.hero__tagline {
  max-width: 30ch;
  margin: clamp(20px, 4vh, 40px) auto 0;
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
  line-height: 1.45;
  color: var(--ink-60);
}

/* ============================================================
   SHOWREEL
   ============================================================ */
.showreel {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(48px, 7vw, 100px);
}
.showreel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: clamp(14px, 1.6vw, 22px);
}
.showreel__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--ink-40);
}
.showreel__meta {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-40);
}
.showreel__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #0a0a0a;
}
.showreel__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.showreel__sound {
  position: absolute;
  right: clamp(12px, 1.5vw, 22px);
  bottom: clamp(12px, 1.5vw, 22px);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.62em 1.05em;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #fff;
  background: rgba(10, 10, 10, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.showreel__sound:hover { background: rgba(10, 10, 10, 0.7); border-color: #fff; }
.showreel__sound.is-on { background: var(--accent); border-color: var(--accent); }

/* ============================================================
   LOGO MARQUEE
   ============================================================ */
.marquee {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  border-top: 1px solid var(--ink-12);
  border-bottom: 1px solid var(--ink-12);
  padding: clamp(20px, 3vw, 30px) 0;
  overflow: hidden;
}
.marquee__label {
  flex: 0 0 auto;
  padding-left: var(--gutter);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--ink-40);
}
.marquee__viewport {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.marquee__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(28px, 4vw, 64px);
}
.marquee__item img {
  height: 30px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.marquee__item img[alt="European Parliament"],
.marquee__group[aria-hidden] .marquee__item:first-child img { height: 46px; } /* portrait logo runs taller */
.marquee:hover .marquee__item img { opacity: 0.62; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ============================================================
   INTRO STRIP
   ============================================================ */
.intro { padding: clamp(80px, 12vw, 160px) 0; }
.intro__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.intro__copy {
  max-width: 32ch;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--ink-12);
  padding-top: clamp(28px, 3vw, 44px);
}
.stat { display: flex; flex-direction: column; gap: 0.4rem; }
.stat__value {
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat__label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink-40);
  text-transform: uppercase;
}

/* ============================================================
   SELECTED WORK
   ============================================================ */
.work { padding-bottom: clamp(80px, 12vw, 160px); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 44px);
}
.card { display: block; }
.card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-07);
  border-radius: 4px;
}
.card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .card__thumb img { transform: scale(1.05); }
.card__meta {
  margin-top: 1rem;
  opacity: 0.85;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.card:hover .card__meta { opacity: 1; transform: translateY(0); }
.card__title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem;
}
.card__tag {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.card:hover .card__tag { color: var(--accent); }

/* ============================================================
   WHAT I DO
   ============================================================ */
.services {
  padding: clamp(80px, 12vw, 150px) 0;
  border-top: 1px solid var(--ink-12);
}
.services__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3vw, 52px);
}
.service { border-top: 2px solid var(--ink); padding-top: 1.4rem; }
.service__index {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-40);
  margin-bottom: 1.6rem;
}
.service__title {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.9rem;
}
.service__copy {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-60);
  margin: 0;
  max-width: 34ch;
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.quote {
  padding: clamp(90px, 14vw, 180px) var(--gutter);
  border-top: 1px solid var(--ink-12);
}
.quote__carousel {
  max-width: 980px;
  margin: 0 auto;
}
/* slides share one grid cell so the section height stays stable while they cross-fade */
.quote__stack { display: grid; }
.quote__slide {
  grid-area: 1 / 1;
  margin: 0;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease, visibility 0s linear 0.7s;
  pointer-events: none;
}
.quote__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: auto;
}
.quote__text {
  font-size: clamp(1.7rem, 4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 2.2rem;
  text-wrap: balance;
}
.quote__cite { display: flex; flex-direction: column; gap: 0.3rem; }
.quote__name { font-weight: 600; font-size: 1rem; letter-spacing: 0.02em; }
.quote__role {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.quote__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(32px, 4vw, 52px);
}
.quote__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--ink-12);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, width 0.3s ease;
}
.quote__dot:hover { background: var(--ink-40); }
.quote__dot.is-active { background: var(--accent); width: 22px; }

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
.contact {
  background: var(--ink);
  color: #fff;
  padding: clamp(90px, 14vw, 180px) var(--gutter) clamp(40px, 5vw, 64px);
}
.contact__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.contact__headline {
  font-size: clamp(3rem, 11vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.88;
  margin: 0;
}
.contact__location {
  margin: clamp(20px, 3vw, 34px) 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 4vw, 48px);
  margin-top: 2.2rem;
}
.contact__link {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.contact__link:hover { border-color: #fff; }

.contact .pill--solid {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.contact .pill--solid:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.contact__foot {
  margin-top: clamp(56px, 9vw, 110px);
  padding-top: clamp(22px, 3vw, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.contact__mark {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: rgba(255, 255, 255, 0.85);
}
.contact__copy {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* ============================================================
   ENTRANCE ANIMATIONS (fade / slide up)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 5vw, 56px); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}

@media (max-width: 880px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; gap: 24px; }
  .stat { border-top: 1px solid var(--ink-12); padding-top: 18px; }
  .stats { border-top: none; padding-top: 0; }
}

@media (max-width: 620px) {
  .services__grid { grid-template-columns: 1fr; gap: 40px; }
  /* nav collapses to name + single action */
  .nav__work { display: none; }
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__name { justify-self: start; }
  .nav__contact { justify-self: end; }

  /* Mobile hero: stack type above the figure so the headline stays
     fully readable (the behind-the-torso overlap is desktop-only). */
  .hero { padding-top: 110px; justify-content: flex-start; }
  .hero__stage { flex-direction: column; }
  .hero__headline { align-items: center; }
  .hero__line { font-size: 16.5vw; text-align: center; letter-spacing: -0.03em; }
  .hero__figure {
    position: static;
    transform: none;
    width: 64vw;
    margin: 6px auto 0;
  }

  .grid { grid-template-columns: 1fr; }
  .marquee { flex-direction: column; align-items: stretch; gap: 16px; }
  .marquee__label { padding-left: var(--gutter); }
}
