/* =========================================================
   JVISUAL STUDIO — Fashion Advertising Video Production
   Dark & moody editorial system
   ========================================================= */

/* ----- RESET ----- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
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: clip; }
body {
  background: #0a0a0a;
  color: #ededed;
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .3s ease, color .3s ease; }
a:hover { opacity: .65; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: #ededed; color: #0a0a0a; }

/* ----- TYPOGRAPHY ----- */
.display {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a8a8a;
  font-weight: 400;
}
.mono {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ----- LAYOUT ----- */
.container {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 32px;
}
section { position: relative; }

/* ----- NAV ----- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 90;
}
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
  color: #fff;
}
.nav__logo {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.nav__logo span { font-style: italic; }
.nav__links {
  display: flex;
  gap: 40px;
  list-style: none;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.nav__links a { position: relative; }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .35s ease;
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after,
.nav__links a.is-active::after { width: 100%; }
.nav__cta {
  font-size: 13px;
  padding: 10px 20px;
  border: 1px solid currentColor;
  border-radius: 100px;
  letter-spacing: 0.02em;
}
.nav__toggle { display: none; }

/* ----- HERO ----- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 32px 48px;
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(120, 80, 60, .35) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(40, 30, 50, .6) 0%, transparent 60%),
    linear-gradient(180deg, #0a0a0a 0%, #111 100%);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .6;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(10,10,10,.35) 0%, rgba(10,10,10,.55) 55%, rgba(10,10,10,.85) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(40,30,50,.35) 0%, transparent 60%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 3;
  max-width: 1680px;
  margin: 0 auto;
  width: 100%;
}
.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 32px;
}
.hero__tag {
  max-width: 320px;
  color: #b8b8b8;
  font-size: 14px;
  line-height: 1.5;
}
.hero__headline {
  font-size: clamp(56px, 11vw, 180px);
}
.hero__headline em {
  font-style: italic;
  font-weight: 300;
  color: #c9a27a;
}
.hero__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 64px;
  flex-wrap: wrap;
  gap: 24px;
}
.hero__location { color: #8a8a8a; }
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #8a8a8a;
}
.hero__scroll::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: #8a8a8a;
}

/* ----- MARQUEE ----- */
.marquee {
  padding: 32px 0;
  border-top: 1px solid #1e1e1e;
  border-bottom: 1px solid #1e1e1e;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  gap: 64px;
  animation: marquee 40s linear infinite;
  padding-right: 64px;
}
.marquee__item {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 56px);
  color: #ededed;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.marquee__item::after {
  content: '✦';
  color: #c9a27a;
  font-size: 0.6em;
}
.marquee__item em { font-style: italic; color: #c9a27a; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----- SECTIONS ----- */
.section {
  padding: 120px 32px;
}
.section__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  max-width: 1680px;
  margin: 0 auto 80px;
  align-items: end;
}
.section__head .eyebrow { padding-top: 8px; }
.section__title {
  font-size: clamp(40px, 5.5vw, 88px);
}
.section__title em { font-style: italic; color: #c9a27a; }

/* ----- INTRO ----- */
.intro { padding: 140px 32px; border-top: 1px solid #1e1e1e; }
.intro__grid {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}
.intro__copy p {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 2.6vw, 42px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #ededed;
}
.intro__copy p + p { margin-top: 24px; color: #8a8a8a; }

.intro__aside {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.intro__media {
  position: relative;
  margin: 0;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #151515;
}
.intro__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.05) brightness(0.82);
  transition: transform 1.4s cubic-bezier(.2,.8,.2,1), filter .6s ease;
}
.intro__media:hover .intro__img {
  transform: scale(1.04);
  filter: grayscale(0%) contrast(1.05) brightness(0.95);
}
.intro__media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.04);
  pointer-events: none;
}
.intro__cap {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ededed;
  mix-blend-mode: difference;
  z-index: 1;
}
.intro__cap .mono { color: #c9a27a; margin-right: 6px; }

/* ----- SERVICES ----- */
.services__list {
  max-width: 1680px;
  margin: 0 auto;
  border-top: 1px solid #1e1e1e;
}
.service {
  display: grid;
  grid-template-columns: 80px 1fr 2fr auto;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid #1e1e1e;
  align-items: start;
  transition: padding .4s ease, background .4s ease;
}
.service:hover { padding-left: 16px; padding-right: 16px; }
.service__num { color: #8a8a8a; font-size: 13px; padding-top: 8px; }
.service__name {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 300;
  letter-spacing: -0.01em;
}
.service__name em { font-style: italic; color: #c9a27a; }
.service__desc {
  color: #b8b8b8;
  font-size: 15px;
  line-height: 1.6;
  max-width: 560px;
}
.service__arrow {
  font-size: 24px;
  color: #8a8a8a;
  padding-top: 4px;
  transition: transform .4s ease, color .4s ease;
}
.service:hover .service__arrow {
  transform: translate(4px, -4px);
  color: #c9a27a;
}

/* ----- WORK GRID ----- */
.work {
  padding: 120px 32px;
  border-top: 1px solid #1e1e1e;
}
.work__grid {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  row-gap: 80px;
}
.work__item { position: relative; }
.work__item--lg  { grid-column: span 8; }
.work__item--md  { grid-column: span 6; }
.work__item--sm  { grid-column: span 4; }
.work__item--offset { margin-top: 120px; }

.work__media {
  position: relative;
  overflow: hidden;
  background: #151515;
  aspect-ratio: 4 / 5;
  margin-bottom: 20px;
}
.work__item--lg .work__media { aspect-ratio: 16 / 10; }
.work__item--md .work__media { aspect-ratio: 3 / 4; }
.work__media__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3a3a3a;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background:
    linear-gradient(135deg, rgba(201, 162, 122, .08) 0%, transparent 60%),
    linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}
.work__item:hover .work__media__placeholder { transform: scale(1.04); }
.work__media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.04);
  pointer-events: none;
}
.work__media iframe,
.project__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.work__media--short { aspect-ratio: 9 / 16; }
.work__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1), filter .4s ease;
  filter: grayscale(20%) contrast(1.02);
}
.work__item:hover .work__thumb {
  transform: scale(1.04);
  filter: grayscale(0%) contrast(1.05);
}
.work__play {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 10, 10, .7);
  color: #c9a27a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 162, 122, .4);
  transition: background .3s ease, transform .3s ease;
  pointer-events: none;
}
.work__item:hover .work__play {
  background: rgba(201, 162, 122, .95);
  color: #0a0a0a;
  transform: scale(1.08);
}
.work__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.work__title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.01em;
}
.work__title em { font-style: italic; }
.work__cat {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8a8a8a;
}

/* ----- FEATURE STRIP ----- */
.feature {
  padding: 160px 32px;
  border-top: 1px solid #1e1e1e;
  text-align: center;
}
.feature__content {
  max-width: 1200px;
  margin: 0 auto;
}
.feature__title {
  font-size: clamp(40px, 6vw, 104px);
}
.feature__title em { font-style: italic; color: #c9a27a; }
.feature__sub {
  margin-top: 32px;
  color: #8a8a8a;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ----- PROCESS / ON SET ----- */
.process {
  padding: 140px 32px;
  border-top: 1px solid #1e1e1e;
}
.process .section__head { margin-bottom: 64px; }
.process__grid {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}
.process__item {
  grid-column: span 4;
  margin: 0;
}
.process__item--tall    { grid-column: span 5; }
.process__item--tall + .process__item { grid-column: span 4; }
.process__item:last-child { grid-column: span 3; }
.process__item--offset { margin-top: 120px; }

.process__media {
  position: relative;
  overflow: hidden;
  background: #151515;
  aspect-ratio: 3 / 4;
  margin-bottom: 16px;
}
.process__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(10%) contrast(1.02);
  transition: transform 1.4s cubic-bezier(.2,.8,.2,1), filter .5s ease;
}
.process__item:hover .process__img {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1.05);
}
.process__media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.04);
  pointer-events: none;
}
.process__cap {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #8a8a8a;
}
.process__cap .mono { color: #c9a27a; margin-right: 6px; }

.process__note {
  max-width: 560px;
  margin: 80px auto 0;
  text-align: center;
  font-family: 'Fraunces', serif;
  font-size: 18px;
  line-height: 1.55;
  color: #b8b8b8;
  letter-spacing: -0.005em;
}
.process__note em { color: #c9a27a; font-style: italic; }

/* Contact — muted secondary line */
.contact__muted { color: #5a5a5a !important; font-size: 12px !important; letter-spacing: 0.08em; }

/* ----- CLIENT LOGOS ----- */
.clients {
  padding: 100px 32px;
  border-top: 1px solid #1e1e1e;
}
.clients__grid {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid #1e1e1e;
  border-left: 1px solid #1e1e1e;
}
.client {
  padding: 48px 24px;
  border-right: 1px solid #1e1e1e;
  border-bottom: 1px solid #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #8a8a8a;
  transition: color .3s ease;
  min-height: 140px;
  position: relative;
}
.client:hover { color: #ededed; }
.client em { font-style: italic; }
.client__logo {
  max-height: 44px;
  max-width: 70%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Normalizes any-color logo files into a clean white mark on dark */
  filter: brightness(0) invert(1);
  opacity: .55;
  transition: opacity .3s ease;
}
.client:hover .client__logo { opacity: 1; }
/* Text fallback hidden unless the img onerror reveals it */
.client__name { display: none; }

/* ----- CONTACT / FOOTER ----- */
.contact {
  padding: 160px 32px 64px;
  border-top: 1px solid #1e1e1e;
}
.contact__inner { max-width: 1680px; margin: 0 auto; }
.contact__headline {
  font-size: clamp(56px, 9vw, 160px);
  margin-bottom: 80px;
}
.contact__headline em { font-style: italic; color: #c9a27a; }
.contact__headline a {
  display: inline-block;
  border-bottom: 2px solid #1e1e1e;
  transition: border-color .3s ease;
}
.contact__headline a:hover { border-color: #c9a27a; opacity: 1; }

.contact__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid #1e1e1e;
}
.contact__col h4 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a8a8a;
  font-weight: 400;
  margin-bottom: 20px;
}
.contact__col p, .contact__col a { font-size: 14px; color: #ededed; display: block; }
.contact__col p + p, .contact__col a + a { margin-top: 8px; }

.footer__vision {
  max-width: 1680px;
  margin: 96px auto 0;
  padding-top: 48px;
  border-top: 1px solid #1e1e1e;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.footer__vision .eyebrow { padding-top: 8px; }
.footer__vision p {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #b8b8b8;
  max-width: 760px;
}
.footer__vision em { font-style: italic; color: #c9a27a; }
@media (max-width: 1024px) {
  .footer__vision { grid-template-columns: 1fr; gap: 24px; }
}

.footer {
  max-width: 1680px;
  margin: 80px auto 0;
  padding-top: 32px;
  border-top: 1px solid #1e1e1e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #5a5a5a;
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__credit a {
  color: #8a8a8a;
  border-bottom: 1px solid #2a2a2a;
  transition: color .3s ease, border-color .3s ease;
}
.footer__credit a:hover {
  color: #c9a27a;
  border-color: #c9a27a;
  opacity: 1;
}

/* ----- WORK PAGE SPECIFIC ----- */
.page-header {
  padding: 200px 32px 80px;
}
.page-header__inner {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: end;
}
.page-header__title {
  font-size: clamp(64px, 12vw, 200px);
}
.page-header__title em { font-style: italic; color: #c9a27a; }
.page-header__lead {
  color: #b8b8b8;
  font-size: 16px;
  max-width: 420px;
  line-height: 1.6;
}

.filters {
  padding: 32px;
  border-top: 1px solid #1e1e1e;
  border-bottom: 1px solid #1e1e1e;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(12px);
}
.filters__inner {
  max-width: 1680px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.filters__list {
  display: flex;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
}
.filter-chip {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid #1e1e1e;
  border-radius: 100px;
  color: #8a8a8a;
  transition: all .3s ease;
}
.filter-chip:hover, .filter-chip.is-active {
  border-color: #c9a27a;
  color: #c9a27a;
}
.filters__count { color: #5a5a5a; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

.projects {
  padding: 64px 32px 120px;
}
.projects__grid {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  row-gap: 80px;
}
.project { position: relative; }
.project--col-6 { grid-column: span 6; }
.project--col-4 { grid-column: span 4; }
.project--col-8 { grid-column: span 8; }
.project--col-12 { grid-column: span 12; }
.project--offset-top { margin-top: 80px; }

.project__media {
  aspect-ratio: 3 / 4;
  background: #151515;
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
}
.project--col-8 .project__media, .project--col-12 .project__media { aspect-ratio: 16 / 9; }
.project--col-4 .project__media { aspect-ratio: 4 / 5; }

/* Aspect-ratio overrides (drive from content, not column) */
.project--v16x9 .project__media { aspect-ratio: 16 / 9; }
.project--v9x16 .project__media { aspect-ratio: 9 / 16; }
.project--v1x1  .project__media { aspect-ratio: 1 / 1; }

.project__placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: #3a3a3a;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background:
    linear-gradient(135deg, rgba(201, 162, 122, .06) 0%, transparent 60%),
    linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}
.project:hover .project__placeholder { transform: scale(1.03); }

.project__info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.project__title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 300;
}
.project__title em { font-style: italic; }
.project__year {
  color: #5a5a5a;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.project__meta {
  margin-top: 6px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.45;
  color: #b8b8b8;
}
.project__client {
  font-style: normal;
  color: #ededed;
  letter-spacing: -0.005em;
}
.project__tags {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8a8a8a;
}

/* Filter — hidden state + transition */
.project { transition: opacity .4s ease, transform .5s ease; }
.project.is-hidden {
  display: none !important;
}

/* Empty state */
.projects__empty {
  max-width: 1680px;
  margin: 0 auto;
  padding: 64px 0;
  text-align: center;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 18px;
  color: #5a5a5a;
}

/* ----- REVEAL ANIMATION ----- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Cinematic clip-path reveal on media wrappers inside .reveal items */
.reveal.intro__media,
.reveal .work__media,
.reveal .project__media,
.reveal .process__media {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s cubic-bezier(.77, 0, .175, 1);
  will-change: clip-path;
}
.reveal.intro__media.is-visible,
.reveal.is-visible .work__media,
.reveal.is-visible .project__media,
.reveal.is-visible .process__media {
  clip-path: inset(0 0 0 0);
}

/* Hover video preview inside work tiles */
.work__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease;
  z-index: 2;
}
.work__preview.is-visible { opacity: 1; }
.work__item.is-previewing .work__thumb { filter: grayscale(0%) contrast(1.05); }
.work__item.is-previewing .work__play { opacity: 0; }

/* Reduced motion — turn off non-essential animation */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1 !important; transform: none !important; transition: none !important; }
  .reveal.intro__media,
  .reveal .work__media,
  .reveal .project__media,
  .reveal .process__media {
    clip-path: none !important; transition: none !important;
  }
  .marquee__track { animation: none !important; }
  .work__preview { display: none !important; }
}

/* ----- RESPONSIVE ----- */
@media (max-width: 1024px) {
  .section__head, .intro__grid, .page-header__inner { grid-template-columns: 1fr; gap: 24px; }
  .service { grid-template-columns: 60px 1fr auto; }
  .service__desc { grid-column: 2 / 4; padding-top: 8px; }
  .work__item--lg, .work__item--md, .work__item--sm { grid-column: span 6; }
  .work__item--offset { margin-top: 0; }
  .project--col-4, .project--col-6, .project--col-8, .project--col-12 { grid-column: span 6; }
  .project--offset-top { margin-top: 0; }
  .process__item, .process__item--tall, .process__item--tall + .process__item, .process__item:last-child { grid-column: span 6; }
  .process__item--offset { margin-top: 0; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .clients__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container, .nav, .hero, .intro, .work, .feature, .contact, .clients, .page-header, .projects, .filters { padding-left: 20px; padding-right: 20px; }
  .nav__links { display: none; }
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .nav__cta { display: none; }
  .hero { padding-top: 100px; }
  .section { padding: 80px 20px; }
  .intro, .work, .clients, .contact, .feature { padding-top: 80px; padding-bottom: 80px; }
  .service { grid-template-columns: 40px 1fr auto; gap: 16px; padding: 24px 0; }
  .service__name { font-size: 22px; }
  .work__item--lg, .work__item--md, .work__item--sm,
  .project--col-4, .project--col-6, .project--col-8, .project--col-12,
  .process__item, .process__item--tall, .process__item--tall + .process__item, .process__item:last-child { grid-column: span 12; }
  .contact__grid { grid-template-columns: 1fr; }
  .clients__grid { grid-template-columns: repeat(2, 1fr); }
  .footer { flex-direction: column; align-items: flex-start; }
  .page-header { padding-top: 140px; }
}
