/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  --bg:        #161616;
  --bg-tile:   #161616;
  --text:      #ffffff;
  --dim:       rgba(255, 255, 255, 0.5);
  --border:    rgba(255, 255, 255, 0.1);
  --gap:       1px;
  --px:        clamp(1.25rem, 4vw, 3rem);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "avenir-next-lt-pro", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--px);
  height: 60px;
  background: rgba(22, 22, 22, 0.35);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
          backdrop-filter: blur(20px) saturate(140%);
}
.nav__logo img {
  height: 31px;
  width: auto;
}
.nav__contact {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}
.nav__contact:hover { opacity: 0.7; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 8vw, 8rem) var(--px);
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
}
.hero__content {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.75));
}
.hero__title {
  display: block;
  position: relative;
  font-family: "avenir-next-lt-pro", sans-serif;
  font-size: clamp(2.5rem, 4.6vw, 5rem);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 40%, #c8c8c8 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.hero__tags {
  margin-top: 1.5rem;
  max-width: 55ch;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-shadow: 0 6px 14px rgba(0, 0, 0, 0.75);
}
.hero__cta {
  display: inline-block;
  margin-top: 1.75rem;
  background: rgb(255, 211, 0);
  color: rgb(22, 22, 22);
  font-family: "avenir-next-lt-pro", sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1.5625rem;
  border-radius: 9999px;
  transition: opacity 0.2s;
}
.hero__cta:hover { opacity: 0.85; }

/* ── Work Grid ───────────────────────────────────────────────── */
.work {
  position: relative;
  z-index: 2;
  margin-top: clamp(-4rem, -4vw, -2rem);
}
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 18px;
  padding: 0 var(--px);
}
.work__item {
  background: var(--bg-tile);
  padding-bottom: 0;
  display: block;
  color: inherit;
}
.work__item-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 0 0 rgba(255, 255, 255, 0);
  transition: box-shadow 0.3s ease;
}
.work__item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.work__item:hover .work__item-img img {
  transform: scale(1.04);
}
.work__item:hover .work__item-img {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.85),
    0 0 28px rgba(255, 255, 255, 0.22);
}
.work__item-title {
  font-family: "avenir-next-lt-pro", sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text);
  text-align: right;
  line-height: 1.2;
  padding: 0.6rem 0.75rem 0.1rem;
}
.work__item-client {
  font-family: "avenir-next-lt-pro", sans-serif;
  font-size: 0.625rem;
  font-weight: 400;
  text-transform: uppercase;
  color: rgb(153, 153, 153);
  text-align: right;
  padding: 0 0.75rem;
}

/* ── Services ────────────────────────────────────────────────── */
.services {
  scroll-margin-top: 60px;
}
.services__header {
  padding: clamp(3rem, 5vw, 5rem) var(--px) clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
}
.services__heading {
  font-family: "avenir-next-lt-pro", sans-serif;
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: normal;
  text-transform: uppercase;
}
.services__heading u {
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.08em;
}
.services__intro {
  margin: 1.25rem auto 0;
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--text);
  max-width: 70rem;
  line-height: 1.45;
}
.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f4f4f4;
  color: rgb(22, 22, 22);
  padding: 1.5rem clamp(2rem, 12vw, 11rem);
}
.services__item {
  padding: 1.75rem 2.25rem 1.75rem 0;
}
.services__item:nth-child(even) {
  padding-left: 2.25rem;
  padding-right: 0;
}
.services__item-title {
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  line-height: 1.15;
}
.services__item-desc {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(22, 22, 22, 0.65);
  line-height: 1.45;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: rgb(22, 22, 22);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 0;
  padding: 1.25rem clamp(2rem, 6vw, 6rem) clamp(3rem, 6vw, 5rem);
  flex-wrap: wrap;
}
.footer__cta {
  display: inline-block;
  background: rgb(255, 211, 0);
  color: rgb(22, 22, 22);
  font-family: "avenir-next-lt-pro", sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 3.25rem;
  border-radius: 9999px;
  transition: opacity 0.2s;
}
.footer__cta:hover { opacity: 0.85; }
.footer__location-name {
  font-size: 1.125rem;
  font-weight: 400;
  text-transform: uppercase;
}
.footer__location-country {
  margin-top: 0.2rem;
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--dim);
}

/* ── Project Page ────────────────────────────────────────────── */
.project {
  padding-top: 60px; /* offset for fixed nav */
}
.project__hero {
  padding: clamp(3rem, 6vw, 6rem) var(--px) clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}
.project__title {
  font-family: "avenir-next-lt-pro", sans-serif;
  font-size: clamp(2.25rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.project__client {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.project__hero-img {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.project__meta {
  max-width: 70rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--px) clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}
.project__category {
  font-family: "avenir-next-lt-pro", sans-serif;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.project__services {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.6;
}
.project__description {
  margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
  max-width: 58rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
}
.project__gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  padding: clamp(2rem, 4vw, 3rem) var(--px) clamp(3rem, 6vw, 5rem);
  max-width: 1600px;
  margin: 0 auto;
}
.project__gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  grid-column: span 12;
  aspect-ratio: 16 / 9;
}
/* Pattern: full / half + half / full / half + half ... (cycle of 3) */
.project__gallery img:nth-child(3n+2),
.project__gallery img:nth-child(3n+3) {
  grid-column: span 6;
}
@media (max-width: 720px) {
  .project__gallery { grid-template-columns: 1fr; }
  .project__gallery img,
  .project__gallery img:nth-child(3n+2),
  .project__gallery img:nth-child(3n+3) {
    grid-column: span 1;
  }
}
.project__back {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.2s;
}
.project__back:hover { color: var(--text); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: 1fr; }
  .services__item:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }
  .services__item:nth-child(2) {
    border-top: 1px solid rgba(22, 22, 22, 0.12);
  }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 460px) {
  .work__grid { grid-template-columns: 1fr; }
}

/* ── Reduced Motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav__contact,
  .work__item-img img { transition: none; }
}
