/* ============================================================
   INV PORTFOLIO — original stylesheet
   Dark, type-driven, motion-first.
   ============================================================ */

:root {
  --bg: #0e0e0e;
  --bg-soft: #161616;
  --ink: #f4f1ea;
  --ink-dim: #8a8781;
  --accent: #ff4d1c;
  --line: rgba(244, 241, 234, 0.14);
  --font-display: "Archivo", sans-serif;
  --font-body: "Karla", sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --maxw: 2160px; /* content cap between nav & footer — drop to 1080px for extra crispness */
}

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

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, background .25s ease, opacity .25s ease;
  mix-blend-mode: difference;
}
.cursor.is-hover { width: 56px; height: 56px; background: var(--ink); }

/* Hide the native cursor sitewide on pointer devices — only the
   dot shows. Touch devices (no hover) keep their normal cursor
   and never render the dot. */
@media (hover: hover) and (pointer: fine) {
  html, body, a, button, input, textarea, select, label, .card, .worklist__item, .video__frame { cursor: none; }
}
@media (hover: none) { .cursor { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  color: #fff;              /* pure-white base so the negative inverts cleanly */
  mix-blend-mode: difference; /* nav + logo read white on dark, invert to dark over light — like a photo negative */
}
.nav__links a { color: #fff; }
.nav__logo {
  font-family: var(--font-display);
  font-weight: 900; font-size: 1.4rem; letter-spacing: -0.02em;
  display: flex; align-items: center;
}
.nav__logo img { height: 34px; width: auto; display: block; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-size: .85rem; text-transform: uppercase; letter-spacing: .12em;
  position: relative; padding: .2rem 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.6, 0, .2, 1);
}
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__burger { display: none; flex-direction: column; gap: 6px; padding: .5rem; }
.nav__burger span { display: block; width: 26px; height: 2px; background: #fff; transition: transform .3s ease, opacity .3s ease; }

@media (max-width: 820px) {
  .nav__links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
    background: var(--bg);
    opacity: 0; pointer-events: none; transition: opacity .35s ease;
  }
  .nav__links a { font-size: 1.6rem; font-family: var(--font-display); font-weight: 800; text-transform: none; letter-spacing: -0.02em; }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav.is-open { mix-blend-mode: normal; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad) clamp(2rem, 6vh, 5rem);
  position: relative;
}
/* cycling video background */
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); }
.hero__bg:empty { display: none; } /* inner pages with no footage yet → plain hero */
.hero__bg video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
  filter: grayscale(40%) contrast(1.05) brightness(.9);
}
.hero__bg video.is-active { opacity: 1; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top,
    rgba(14,14,14,.94) 0%, rgba(14,14,14,.62) 42%, rgba(14,14,14,.42) 100%);
}
/* keep hero text above the video layer */
.hero__kicker, .hero__title, .hero__meta { position: relative; z-index: 1; }
.hero__kicker {
  font-size: .85rem; text-transform: uppercase; letter-spacing: .25em;
  color: var(--ink-dim); margin-bottom: 1.2rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.2rem, 13vw, 12rem);
  line-height: .92; letter-spacing: -0.04em;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 2.5rem; gap: 2rem; flex-wrap: wrap;
  color: var(--ink-dim); font-size: .9rem;
}
.hero__scroll { display: inline-flex; align-items: center; gap: .6rem; }
.hero__scroll .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.8); opacity: .4; } }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 1.1rem 0; white-space: nowrap;
}
.marquee__track { display: flex; align-items: center; will-change: transform; animation: marquee 22s linear infinite; }
/* one repeated copy — gap spaces every item evenly, and padding-right
   equals the gap so the loop seam is indistinguishable from an inner gap */
/* fixed sizes — the marquee reads the SAME on every screen, never scaling */
.marquee__set {
  flex: none; display: flex; align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem; /* = gap → seamless loop seam */
}
.marquee__word {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 1.5rem; letter-spacing: .02em; white-space: nowrap;
}
.marquee__dot {
  flex: none; color: var(--accent); line-height: 1;
  font-size: .6rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- generic section ---------- */
.section { padding: clamp(4rem, 10vh, 8rem) var(--pad); }
.section--tight { padding-top: clamp(2rem, 5vh, 4rem); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.section__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  letter-spacing: -0.03em; text-transform: uppercase; line-height: 1;
}
.section__count { color: var(--ink-dim); font-size: .9rem; letter-spacing: .15em; }

.reveal { opacity: 0; transform: translateY(40px); }

/* ---------- work list (home) ---------- */
.worklist { border-top: 1px solid var(--line); }
.worklist__item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem;
  padding: 2rem 0; border-bottom: 1px solid var(--line);
  transition: padding .35s ease;
  position: relative;
}
.worklist__item:hover { padding-left: 1.5rem; }
.worklist__num { color: var(--ink-dim); font-size: .85rem; }
.worklist__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 4.5vw, 3.2rem); letter-spacing: -0.02em; line-height: 1;
  transition: color .3s ease;
}
.worklist__item:hover .worklist__name { color: var(--accent); }
.worklist__tag { color: var(--ink-dim); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }

/* ---------- cards grid ---------- */
.grid { display: grid; gap: 2.5rem var(--pad); grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }

.card { position: relative; }
.card__media {
  overflow: hidden; border-radius: 4px; background: var(--bg-soft);
  aspect-ratio: 4 / 3;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05);
  transition: transform .8s cubic-bezier(.2, .8, .2, 1), filter .5s ease;
  filter: grayscale(30%);
}
.card:hover .card__media img { transform: scale(1); filter: grayscale(0%); }
.card__media video { width: 100%; height: 100%; object-fit: cover; transition: filter .5s ease; }

/* fully desaturated variant (design page) — color returns on hover */
.grid--mono .card__media img,
.grid--mono .card__media video { filter: grayscale(100%); }
.grid--mono .card:hover .card__media img,
.grid--mono .card:hover .card__media video { filter: grayscale(0%); }
.card__body { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1rem; gap: 1rem; }
.card__title { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.card__meta { color: var(--ink-dim); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; text-align: right; }

/* photography = masonry-ish, taller ratio */
.grid--photo { grid-template-columns: repeat(3, 1fr); }
.grid--photo .card__media { aspect-ratio: 3 / 4; }
.grid--photo .card:nth-child(3n+2) { transform: translateY(3rem); }
@media (max-width: 900px) {
  .grid--photo { grid-template-columns: repeat(2, 1fr); }
  .grid--photo .card:nth-child(3n+2) { transform: none; }
  .grid--photo .card:nth-child(2n) { transform: translateY(2.5rem); }
}
@media (max-width: 560px) {
  .grid--photo { grid-template-columns: 1fr; }
  .grid--photo .card { transform: none !important; }
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stats__cell { padding: 2.5rem 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__n { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 5vw, 4rem); color: var(--accent); line-height: 1; }
.stats__label { color: var(--ink-dim); margin-top: .6rem; font-size: .9rem; }

/* ---------- video grid ---------- */
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem var(--pad); }
@media (max-width: 720px) { .videos { grid-template-columns: 1fr; } }
.video { position: relative; }
.video__frame { aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: var(--bg-soft); position: relative; }
.video__frame iframe { width: 100%; height: 100%; border: 0; }
.video__thumb { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: transform .6s ease, opacity .4s ease; }
.video__frame:hover .video__thumb { transform: scale(1.03); }
.video__play {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px;
  border-radius: 50%; background: var(--accent); color: var(--bg);
  display: grid; place-items: center; font-size: 1.3rem;
  pointer-events: none; transition: transform .3s ease;
}
.video__frame:hover .video__play { transform: scale(1.12); }
.video__title { padding-top: 1rem; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.videos__status { grid-column: 1 / -1; color: var(--ink-dim); }

/* ---------- dj profile ---------- */
.dj-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: end; margin-bottom: 4rem; }
@media (max-width: 820px) { .dj-intro { grid-template-columns: 1fr; } }
.dj-intro__bio { font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.5; color: var(--ink); }
.genres { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.genres li {
  border: 1px solid var(--line); border-radius: 99px;
  padding: .45rem 1.1rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.genres li:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.gallery { columns: 3 260px; column-gap: 1.2rem; }
.gallery img {
  width: 100%; margin-bottom: 1.2rem; border-radius: 4px;
  filter: grayscale(35%); transition: filter .5s ease, transform .5s ease;
}
.gallery img:hover { filter: grayscale(0%); transform: scale(1.015); }

/* ---------- briefing / forms ---------- */
.brief-tabs { display: flex; gap: .8rem; margin-bottom: 3rem; flex-wrap: wrap; }
.brief-tabs button {
  border: 1px solid var(--line); border-radius: 99px;
  padding: .7rem 1.6rem; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.brief-tabs button.is-active,
.brief-tabs button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.brief-form { display: none; max-width: 760px; }
.brief-form.is-visible { display: block; }

.field { margin-bottom: 2.2rem; }
.field label {
  display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .15em;
  color: var(--ink-dim); margin-bottom: .6rem;
}
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font: inherit; font-size: 1.15rem; padding: .6rem 0;
  border-radius: 0; outline: none; transition: border-color .3s ease;
}
.field select { appearance: none; }
.field select option { background: var(--bg-soft); color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }

.checks { display: flex; flex-wrap: wrap; gap: .6rem; }
.checks label {
  border: 1px solid var(--line); border-radius: 99px; cursor: pointer;
  padding: .5rem 1.2rem; font-size: .85rem;
  display: inline-flex; align-items: center;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
  margin-bottom: 0; text-transform: none; letter-spacing: .02em; color: var(--ink);
}
.checks input { display: none; }
.checks label:has(input:checked) { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: .8rem;
  background: var(--accent); color: var(--bg);
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  padding: 1.1rem 2.4rem; border-radius: 99px;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), background .3s ease;
}
.btn:hover { transform: scale(1.05); background: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- big CTA ---------- */
.cta { text-align: center; padding: clamp(6rem, 16vh, 10rem) var(--pad); }
.cta__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 8rem); letter-spacing: -0.04em; text-transform: uppercase; line-height: .95;
  margin-bottom: 2.5rem;
}
.cta__title em { font-style: normal; color: var(--accent); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 3rem var(--pad); }
.footer__grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: center; }
.footer__socials { display: flex; gap: 1.6rem; }
.footer__socials a { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-dim); transition: color .3s ease; }
.footer__socials a:hover { color: var(--accent); }
.footer small { color: var(--ink-dim); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(9rem, 20vh, 13rem) var(--pad) clamp(2rem, 5vh, 4rem); position: relative; }
.page-hero.has-video { min-height: 62vh; display: flex; flex-direction: column; justify-content: flex-end; }
.page-hero__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(3rem, 10vw, 9rem); letter-spacing: -0.04em; text-transform: uppercase; line-height: .95;
  position: relative; z-index: 1;
}
.page-hero__sub { color: var(--ink-dim); margin-top: 1.4rem; max-width: 46ch; font-size: 1.05rem; position: relative; z-index: 1; }

/* client-grouped work blocks (Design page) */
.work-group { margin-bottom: clamp(3rem, 7vh, 6rem); }
.work-group__head {
  display: flex; align-items: baseline; gap: 1rem;
  padding-bottom: 1.1rem; margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.work-group__client {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.8rem); letter-spacing: -0.02em; text-transform: uppercase; line-height: 1;
}
.work-group__count { color: var(--accent); font-size: .9rem; letter-spacing: .12em; }

/* ---------- project cover cards (click to open) ---------- */
.project { cursor: pointer; }
.project .card__media::after {
  content: "View project"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; font-size: 1rem; color: var(--ink);
  background: rgba(14,14,14,.55); opacity: 0;
  transition: opacity .35s ease; z-index: 2;
}
.project:hover .card__media::after { opacity: 1; }
.project__count { color: var(--accent); }

/* ---------- lightbox (project overlay) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 9997;
  background: rgba(10,10,10,.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  overflow-y: auto; opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__inner {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(4.5rem, 12vh, 8rem) var(--pad) 5rem;
  transform: translateY(24px); transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.lightbox.is-open .lightbox__inner { transform: none; }
.lightbox__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.lightbox__title {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 4rem); letter-spacing: -0.03em; line-height: 1;
}
.lightbox__count { color: var(--ink-dim); font-size: .9rem; letter-spacing: .15em; }
.lightbox__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 640px) { .lightbox__grid { grid-template-columns: 1fr; } }
.lightbox__grid img, .lightbox__grid video {
  width: 100%; border-radius: 4px; display: block; background: var(--bg-soft);
}
.lightbox__grid .full { grid-column: 1 / -1; } /* wide/landscape items span both cols */
.lightbox__close {
  position: fixed; top: 1.4rem; right: 1.6rem; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  font-size: 1.6rem; line-height: 1; display: grid; place-items: center;
  transition: transform .3s ease, background .3s ease;
}
.lightbox__close:hover { transform: rotate(90deg); background: var(--accent); }
body.lightbox-open { overflow: hidden; }

/* ---------- page-wipe transition ---------- */
.page-wipe {
  position: fixed; inset: 0; z-index: 9998;
  background: var(--accent);
  transform: scale(0);
  transform-origin: left center;
  pointer-events: none;
  will-change: transform;
}

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translate(-50%, 150%);
  background: var(--ink); color: var(--bg); padding: 1rem 2rem; border-radius: 99px;
  font-weight: 600; z-index: 999; transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.toast.is-visible { transform: translate(-50%, 0); }

/* ============================================================
   Content width cap — keeps sections full-bleed (backgrounds,
   hero video edge-to-edge) while the inner CONTENT centres and
   never grows past --maxw, so thumbnails never upscale/pixelate
   on ultra-wide screens. Declared last so it wins the cascade.
   ============================================================ */
/* NOTE: .marquee is intentionally excluded — it stays full-bleed
   edge-to-edge on every screen (see the marquee block above). */
.hero, .page-hero, .section, .cta, .footer {
  padding-inline: max(var(--pad), calc((100% - var(--maxw)) / 2));
}

/* ---- Home landing = fully monotone ----
   The home hero video goes full greyscale so the landing reads as
   one calm monochrome statement; colour is reserved for the actual
   work on the portfolio pages. (Inner-page heroes keep their tint.) */
.hero .hero__bg video { filter: grayscale(100%) contrast(1.03) brightness(.85); }
