/* =====================================================
   ABHINAV PAHADE — abhinavpahade.com
   Portfolio CSS — All pages
   ===================================================== */

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* --- CUSTOM PROPERTIES --- */
:root {
  --yellow:     #ffdc48;
  --yellow-dark: #D4A800;
  --navy:       #0B1D45;
  --navy-mid:   #122060;
  --green:      #006032;
  --black:      #111111;
  --white:      #FAFAFA;
  --off-white:  #F4EFE7;
  --gray:       #999999;

  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-sharp:  cubic-bezier(0.76, 0, 0.24, 1);

  --pad-x: clamp(24px, 5vw, 80px);
}

/* --- BASE --- */
html { font-size: 16px; }
body {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--off-white);
  color: var(--black);
  cursor: none;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
ul { list-style: none; }

/* Restore default cursor on mobile */
@media (hover: none) {
  body { cursor: auto; }
  #cur-dot, #cur-ring { display: none; }
}

/* --- CUSTOM CURSOR --- */
#cur-dot {
  position: fixed;
  top: 0; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--black);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: left, top;
  transition: background 0.25s, opacity 0.2s;
}
#cur-ring {
  position: fixed;
  top: 0; left: 0;
  width: 38px; height: 38px;
  border: 1.5px solid var(--black);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  will-change: left, top;
  transition: width 0.45s var(--ease), height 0.45s var(--ease),
              border-color 0.25s, opacity 0.2s;
}
#cur-ring.expanded {
  width: 72px;
  height: 72px;
  background: rgba(17,17,17,0.05);
}
/* Invert on dark backgrounds */
body.bg-dark #cur-dot  { background: var(--white); }
body.bg-dark #cur-ring { border-color: rgba(255,255,255,0.55); }
body.bg-dark #cur-ring.expanded { background: rgba(255,255,255,0.05); }

/* --- PAGE TRANSITION OVERLAY --- */
#overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  pointer-events: none;
  transform: scaleY(1);
  transform-origin: top;
  background: var(--black); /* overridden per page */
}

/* --- SITE NAV --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--pad-x);
  z-index: 400;
  mix-blend-mode: normal;
}
.nav__logo {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.3s;
}
.nav__logo:hover { opacity: 0.5; }
.nav__links { display: flex; gap: 36px; }
.nav__links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.45;
  transition: opacity 0.3s;
  position: relative;
}
.nav__links a:hover,
.nav__links a[aria-current] { opacity: 1; }
/* Active underline dot */
.nav__links a[aria-current]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
}
/* Nav on dark backgrounds */
.nav--light .nav__logo,
.nav--light .nav__links a { color: var(--white); }

/* =======================================================
   LANDING PAGE
   ======================================================= */
body.page-landing {
  background: #F5F5F0; /* fallback before JS runs */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing__hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad-x) 40px;
  padding-top: 120px;
  min-height: 60vh;
}

.landing__name {
  font-size: clamp(64px, 9vw, 134px);
  font-weight: 700;
  line-height: 0.87;
  letter-spacing: -0.03em;
  overflow: hidden;
}
.landing__name span {
  display: block;
  transform: translateY(110%);
  will-change: transform;
}

.landing__tagline {
  margin-top: 22px;
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  will-change: opacity;
}
.landing__tagline .sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  flex-shrink: 0;
}

/* Section links strip */
.landing__sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--tint-border, var(--landing-border, rgba(0,0,0,0.18)));
}

.section-link {
  display: block;
  padding: 32px var(--pad-x) 44px;
  border-right: 1px solid var(--tint-border, var(--landing-border, rgba(0,0,0,0.18)));
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}
.section-link:last-child { border-right: none; }

/* Color flood on hover */
.section-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hover-color, rgba(0,0,0,0.08));
  transform: translateY(101%);
  transition: transform 0.65s var(--ease);
  z-index: 0;
}
.section-link:hover::before,
.section-link.is-touched::before { transform: translateY(0); }
.section-link:hover .section-link__name,
.section-link:hover .section-link__num,
.section-link:hover .section-link__desc,
.section-link.is-touched .section-link__name,
.section-link.is-touched .section-link__num,
.section-link.is-touched .section-link__desc { color: var(--hover-text, var(--black)); }

.section-link > * { position: relative; z-index: 1; transition: color 0.4s; }

.section-link__num {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 14px;
}
.section-link__name {
  display: block;
  font-size: clamp(20px, 2.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 10px;
}
.section-link__desc {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.5;
}
.section-link__arrow {
  display: inline-block;
  margin-left: 6px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.section-link:hover .section-link__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Landing footer bar */
.landing__footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--pad-x);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  will-change: opacity;
}
.landing__footer a {
  opacity: 0.5;
  transition: opacity 0.3s;
  letter-spacing: 0.04em;
  text-transform: none;
}
.landing__footer a:hover { opacity: 1; }

/* =======================================================
   SECTION PAGES — Shared
   ======================================================= */
.section-hero {
  padding: 150px var(--pad-x) 72px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Section eyebrow */
.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(64px, 10vw, 128px);
  font-weight: 700;
  line-height: 0.87;
  letter-spacing: -0.03em;
}

.section-meta {
  text-align: right;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 2;
  opacity: 0.45;
}

/* =======================================================
   BRANDING PAGE
   ======================================================= */
body.page-branding {
  background: var(--navy);
  color: var(--white);
}
body.page-branding .section-hero {
  border-bottom-color: rgba(255,255,255,0.08);
}

/* =======================================================
   CREATIVE PAGE
   ======================================================= */
body.page-creative {
  background: var(--yellow);
  color: var(--black);
}
body.page-creative .section-hero {
  border-bottom-color: rgba(0,0,0,0.12);
}
body.page-creative .nav--light .nav__logo,
body.page-creative .nav--light .nav__links a { color: var(--black); }

/* =======================================================
   JOURNAL PAGE
   ======================================================= */
body.page-journal {
  background: #0F0F0F;
  color: var(--white);
}
body.page-journal .section-hero {
  border-bottom-color: rgba(255,255,255,0.07);
}

/* =======================================================
   PROJECT GRID
   ======================================================= */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  padding: 2px;
}

.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #1a1a1a;
  text-decoration: none;
}
.project-card--tall  { aspect-ratio: 4/5; }
.project-card--wide  { grid-column: span 2; aspect-ratio: 21/9; }
.project-card--square { aspect-ratio: 1/1; }

.project-card__image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.project-card__image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.95s var(--ease);
}
.project-card:hover .project-card__image { transform: scale(1.06); }

/* Hover video — sits above the image, fades in on hover */
.project-card__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none; /* clicks still hit the card link */
}
.project-card:hover .project-card__video { opacity: 1; }

/* Freeze image scale on hover — video + tint handle the visual interest */
.project-card:hover .project-card__image { transform: scale(1.0); }

/* Placeholder (until real images dropped in) */
.project-card__placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
}
.project-card__placeholder .ph-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}
.project-card__placeholder .ph-hint {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.1);
}

/* ── Hover tint layer ────────────────────────────── */
/*    Sits above image/video, below the info panel.  */
/*    Produces the dark overlay on hover.            */
.project-card__hover-layer {
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background 0.45s var(--ease);
  z-index: 2;
  pointer-events: none;
}
.project-card:hover .project-card__hover-layer {
  background: rgba(0,0,0,0.42);
}

/* ── Card info overlay ───────────────────────────── */
.project-card__info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: clamp(16px, 2vw, 28px) clamp(18px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  color: #fff;
  transform: translateY(6px);
  opacity: 0.9;
  transition: transform 0.45s var(--ease), opacity 0.45s;
  z-index: 3; /* above hover-layer */
}
.project-card:hover .project-card__info {
  transform: translateY(0);
  opacity: 1;
}
.project-card__title {
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
}
/* Short intro line — hidden at rest, fades in on hover */
.project-card__tagline {
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1.5;
  color: rgba(255,255,255,0);
  max-width: 420px;
  transition: color 0.35s ease 0.08s;
}
.project-card:hover .project-card__tagline {
  color: rgba(255,255,255,0.72);
}
.project-card__cat {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* Coming soon card */
.project-card--soon {
  cursor: default;
}
.project-card--soon .project-card__placeholder .ph-label {
  color: rgba(255,255,255,0.12);
}

/* =======================================================
   JOURNAL GRID
   ======================================================= */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px;
}

.journal-card {
  position: relative;
  overflow: hidden;
  background: #161616;
}
.journal-card--photo  { aspect-ratio: 3/4; }
.journal-card--wide   { grid-column: span 2; aspect-ratio: 16/9; }
.journal-card--full   { grid-column: span 3; aspect-ratio: 21/9; }
.journal-card--text {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3/4;
  background: #161616;
}

.journal-card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease);
}
.journal-card:hover .journal-card__image { transform: scale(1.04); }

.journal-card__tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.35;
  margin-bottom: 14px;
}
.journal-card__title {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--white);
}
.journal-card__excerpt {
  font-size: 13px;
  line-height: 1.65;
  opacity: 0.45;
  color: var(--white);
}

/* =======================================================
   PROJECT DETAIL PAGE
   ======================================================= */
.project-detail { padding-top: 120px; }

.project-detail__header {
  padding: 72px var(--pad-x) 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.project-detail__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 22px;
}
.project-detail__title {
  font-size: clamp(64px, 9.5vw, 130px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.87;
  margin-bottom: 52px;
}
.project-detail__meta {
  display: flex;
  column-gap: 52px;
  row-gap: 18px;    /* tighter vertical gap when items wrap */
  flex-wrap: wrap;
}
.meta-item { display: flex; flex-direction: column; gap: 6px; }
.meta-item__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
}
.meta-item__value {
  font-size: 14px;
  font-weight: 500;
}

/* Full-width image block */
.project-img-full {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: #1a1a1a;
  margin-bottom: 2px;
}
.project-img-full img {
  width: 100%; height: 100%; object-fit: cover;
}
.project-img-full--tall { aspect-ratio: 21/9; }

/* Split layout: text + image */
.project-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-bottom: 2px;
}
.project-split__text {
  padding: 80px var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #001a55;
}
.project-split__text .brief-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 22px;
}
.project-split__text h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 520px;
}
.project-split__text p {
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 400;
  line-height: 1.75;
  opacity: 0.75;
  max-width: 520px;
}

.project-split__image {
  overflow: hidden;
  position: relative;
  background: #1a1a1a;
  min-height: 400px;
}
.project-split__image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.project-split__image:hover img { transform: scale(1.04); }

/* 2x2 / N-col image grid */
.project-img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-bottom: 2px;
}
.project-img-grid--3 { grid-template-columns: repeat(3, 1fr); }
.project-img-grid__item {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: #1a1a1a;
}
.project-img-grid__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.85s var(--ease);
}
.project-img-grid__item:hover img { transform: scale(1.05); }

/* Project body copy */
.project-body {
  padding: 80px var(--pad-x);
  max-width: 720px;
}
.project-body h3 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.project-body p {
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 400;
  line-height: 1.75;
  opacity: 0.75;
  margin-bottom: 20px;
}

/* =======================================================
   PROJECT CREDITS
   ======================================================= */
.project-credits {
  padding: 64px var(--pad-x);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.project-credits__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.35;
  margin-bottom: 28px;
}
.project-credits__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-credits__item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.project-credits__role {
  opacity: 0.4;
  min-width: 220px;
  flex-shrink: 0;
}
.project-credits__name {
  font-weight: 500;
  opacity: 0.85;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, opacity 0.25s;
}
.project-credits__name:hover {
  opacity: 1;
  border-bottom-color: currentColor;
}
/* Light page override (GM Syntex) */
body.page-gmsyntex .project-credits {
  border-top-color: rgba(22,22,22,0.1);
}
@media (max-width: 768px) {
  .project-credits { padding: 48px var(--pad-x); }
  .project-credits__item { flex-direction: column; gap: 2px; }
  .project-credits__role { min-width: unset; }
}

/* Project footer nav */
.project-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 48px var(--pad-x);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.project-nav-footer a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.45;
  transition: opacity 0.3s;
}
.project-nav-footer a:hover { opacity: 1; }

/* =======================================================
   SCROLL REVEAL
   ======================================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger delays */
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

/* =======================================================
   VIDEO ELEMENTS
   ======================================================= */
video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video inside grid items — fills cell exactly like an image */
.project-img-grid__item video,
.project-split__image video,
.project-img-full video,
.journal-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mixed-ratio 2-col grid (e.g. 4:3 video + 2:3 image side by side)
   The taller item (2:3) sets the row height;
   the shorter item (video) stretches to fill with object-fit cover  */
.project-img-grid--mixed {
  align-items: stretch;
}
.project-img-grid--mixed .project-img-grid__item {
  aspect-ratio: unset;   /* let the sibling's ratio drive height */
  min-height: 200px;
  position: relative;
}
/* First item in a mixed grid (video side) inherits row height */
.project-img-grid--mixed .project-img-grid__item:first-child {
  /* no aspect-ratio — stretches to match the taller sibling */
}

/* =======================================================
   YOUTUBE BACKGROUND AUTOPLAY
   For full-quality streaming video that autoplays muted.
   HTML: place <div class="yt-bg" data-yt-id="VIDEO_ID">
         inside any position:relative container.
   JS auto-builds the iframe + mute/unmute button.
   ======================================================= */
.yt-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
/* Scale iframe slightly to hide any YouTube edge chrome */
.yt-bg iframe {
  position: absolute !important;
  top: -5% !important;
  left: -5% !important;
  width: 110% !important;
  height: 110% !important;
  border: none !important;
  pointer-events: none;
}

/* =======================================================
   CLICK-TO-PLAY EMBED  (Google Drive / YouTube)
   Use for quality-critical or long-form video.
   Does NOT autoplay — shows play button on hover.

   HTML pattern:
     <div class="[section-class] video-embed">
       <img class="video-embed__poster" src="poster.webp" alt="">  ← optional
       <div class="video-embed__play">
         <div class="video-embed__play-btn">…svg…</div>
       </div>
       <iframe class="video-embed__iframe"
               data-src="https://drive.google.com/file/d/ID/preview"
               allow="autoplay; fullscreen" allowfullscreen></iframe>
     </div>
   ======================================================= */
.video-embed { cursor: none; }

/* Poster image (optional — falls back to bg color) */
.video-embed__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease;
}

/* Dark scrim + play button — sits above poster */
.video-embed__play {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.35s ease;
  z-index: 4;
}
.video-embed:hover .video-embed__play {
  background: rgba(0, 0, 0, 0.28);
}

/* The circular play button */
.video-embed__play-btn {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease),
              background 0.2s, border-color 0.2s;
}
.video-embed:hover .video-embed__play-btn {
  opacity: 1;
  transform: scale(1);
}
.video-embed__play-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 1);
}
.video-embed__play-btn svg {
  width: 26px; height: 26px;
  fill: #fff;
  margin-left: 4px; /* optical offset for play triangle */
  pointer-events: none;
}

/* Iframe — hidden until clicked */
.video-embed__iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
  display: none;
  z-index: 5;
}

/* After click: hide poster + play, show iframe */
.video-embed.is-playing .video-embed__poster { opacity: 0; pointer-events: none; }
.video-embed.is-playing .video-embed__play   { display: none; }
.video-embed.is-playing .video-embed__iframe { display: block; }

/* =======================================================
   VIDEO CONTROLS OVERLAY
   Auto-injected by JS on every video[autoplay] container
   ======================================================= */
.video-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 48px 18px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.52) 0%, transparent 100%);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  pointer-events: none;
}
/* Show when hovering the parent container */
*:hover > .video-controls { opacity: 1; pointer-events: all; }

.vc-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
}
.vc-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.95);
}
.vc-btn svg {
  width: 13px; height: 13px;
  fill: #fff;
  pointer-events: none;
  flex-shrink: 0;
}

/* =======================================================
   IMAGE CAPTIONS
   Add <p class="img-caption"> inside any position:relative
   image container. Empty captions are hidden.
   ======================================================= */
.img-caption {
  position: absolute;
  bottom: 16px; left: 20px;
  width: 66%;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.72);
  pointer-events: none;
  z-index: 5;
}
.img-caption:empty { display: none; }

/* =======================================================
   TEAM META  —  linked collaborator names
   ======================================================= */
.meta-item__value a {
  border-bottom: 1px solid currentColor;
  opacity: 0.7;
  transition: opacity 0.25s;
}
.meta-item__value a:hover { opacity: 1; }
/* Separator dots between team members */
.meta-team-sep {
  display: inline-block;
  margin: 0 6px;
  opacity: 0.35;
}

/* =======================================================
   STATUS META  — replaces Year on some projects
   ======================================================= */
.meta-status--released { opacity: 0.85; }
.meta-status--progress { opacity: 0.65; font-style: italic; }

/* =======================================================
   SOUNDTRACK / MUSIC PLAYER  (Fenty & future projects)
   ======================================================= */
.soundtrack-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 2px;
}

/* Copy tile */
.soundtrack-copy {
  padding: 64px var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.soundtrack-copy .note-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 20px;
}
.soundtrack-copy h3 {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.soundtrack-copy p {
  font-size: clamp(13px, 1.15vw, 15px);
  line-height: 1.8;
  opacity: 0.65;
}

/* Music player tile */
.music-player {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 32px;
  position: relative;
}

/* Album art thumbnail — sits above track info */
.music-player__art {
  width: 56px; height: 56px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  position: relative;
}
.music-player__art img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.music-player__track {
  margin-bottom: 24px;
}
.music-player__title {
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 6px;
}
.music-player__artist {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.45;
}
.music-player__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.mp-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: none;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
  padding: 0;
}
.mp-btn:hover {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
}
.mp-btn svg { width: 13px; height: 13px; fill: currentColor; pointer-events: none; }
.mp-btn--play { width: 42px; height: 42px; border-color: rgba(255,255,255,0.6); }
.mp-time {
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.35;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.music-player__progress {
  height: 2px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
}
.mp-progress-fill {
  height: 100%;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  width: 0%;
  pointer-events: none;
  transition: width 0.25s linear;
}

/* Soundtrack image tile — clickable */
.soundtrack-img {
  position: relative;
  overflow: hidden;
  display: block;
}
.soundtrack-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.soundtrack-img:hover img { transform: scale(1.05); }

/* =======================================================
   PLACEHOLDER IMAGE STYLES (remove when adding real images)
   ======================================================= */
.img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
}
.img-ph span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.15);
}
.img-ph--light span { color: rgba(0,0,0,0.15); }

/* =======================================================
   RESPONSIVE
   ======================================================= */
@media (max-width: 1024px) {
  .project-split { grid-template-columns: 1fr; }
  .project-split__image { min-height: 300px; }
}

@media (max-width: 768px) {
  /* ── Landing page ─────────────────────────────── */
  .landing__name {
    font-size: clamp(48px, 12vw, 80px);
  }
  .landing__hero {
    min-height: 50vh;
    padding-bottom: 28px;
  }
  .landing__tagline {
    font-size: 10px;
    gap: 10px;
    margin-top: 16px;
  }
  .landing__sections {
    grid-template-columns: 1fr;
  }
  .section-link {
    border-right: none;
    border-bottom: 1px solid var(--tint-border, var(--landing-border, rgba(0,0,0,0.18)));
    padding: 24px var(--pad-x) 28px;
  }
  .section-link:last-child { border-bottom: none; }
  .section-link__name {
    font-size: clamp(18px, 5.5vw, 28px);
  }

  /* Footer stacks vertically on mobile */
  .landing__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px var(--pad-x) 28px;
  }
  .landing__footer .footer__center {
    position: static;
    transform: none;
  }

  /* ── Section pages ────────────────────────────── */
  .section-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 110px var(--pad-x) 48px;
  }
  .section-title {
    font-size: clamp(44px, 12vw, 72px);
  }
  .section-meta { text-align: left; }

  /* ── Project grids — single column on phone ──── */
  .project-grid { grid-template-columns: 1fr; }
  .project-card--wide { grid-column: span 1; aspect-ratio: 16/10; }
  .project-card__info { opacity: 1; transform: none; }
  .project-card__tagline { color: rgba(255,255,255,0.6); }

  /* ── Project detail — full-width everything ──── */
  .project-detail__title {
    font-size: clamp(40px, 11vw, 64px);
    margin-bottom: 36px;
  }
  .project-detail__meta {
    column-gap: 28px;
    row-gap: 12px;
  }

  /* Split layouts go single column */
  .project-split { grid-template-columns: 1fr; }
  .project-split__text {
    padding: 48px var(--pad-x);
  }
  .project-split__text h2 {
    font-size: clamp(24px, 6vw, 32px);
  }
  .project-split__text p {
    max-width: 100%;
  }
  .project-split__image { min-height: 280px; }

  /* Image grids go single column */
  .project-img-grid { grid-template-columns: 1fr; }
  .project-img-grid--3 { grid-template-columns: 1fr; }
  .project-img-grid__item {
    aspect-ratio: 4/3;
  }

  /* Body copy full width */
  .project-body {
    padding: 48px var(--pad-x);
    max-width: 100%;
  }
  .project-body h3 {
    font-size: clamp(24px, 6vw, 32px);
  }

  /* Soundtrack goes single column */
  .soundtrack-section {
    grid-template-columns: 1fr;
  }
  .soundtrack-copy {
    padding: 36px var(--pad-x);
  }
  .music-player {
    padding: 28px var(--pad-x);
  }

  /* ── Journal ──────────────────────────────────── */
  .journal-grid { grid-template-columns: repeat(2, 1fr); }
  .journal-card--wide { grid-column: span 2; }
  .journal-card--full { grid-column: span 2; aspect-ratio: 16/9; }

  /* ── Touch: show card info by default ─────────── */
  .project-card__hover-layer {
    background: rgba(0,0,0,0.32);
  }
}

@media (max-width: 520px) {
  :root {
    --pad-x: 20px;
  }
  .nav {
    padding: 20px var(--pad-x);
  }
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 10px; letter-spacing: 0.08em; }

  .landing__name {
    font-size: clamp(40px, 14vw, 64px);
  }

  /* Journal full single-column */
  .journal-grid { grid-template-columns: 1fr; }
  .journal-card--wide, .journal-card--full { grid-column: span 1; aspect-ratio: 4/3; }

  /* Mixed grids — single column */
  .project-img-grid--mixed .project-img-grid__item {
    aspect-ratio: 4/3;
    min-height: unset;
  }

  /* Video controls always visible on touch */
  .video-controls {
    opacity: 1;
    pointer-events: all;
  }
}

/* =======================================================
   PHOTO JOURNAL — two-column scatter wall
   ======================================================= */

/* Page header — minimal, intimate */
.journal-header {
  padding: 110px var(--pad-x) 36px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.journal-title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
}
.journal-meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
}

/* Filter bar — sticky below nav */
.journal-filters {
  position: sticky;
  top: 62px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px var(--pad-x);
  background: rgba(14,14,14,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.jf-btn {
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 6px 18px;
  cursor: pointer;
  transition: color 0.22s, border-color 0.22s, background 0.22s;
  line-height: 1;
}
.jf-btn:hover {
  color: rgba(255,255,255,0.65);
  border-color: rgba(255,255,255,0.26);
}
.jf-btn.is-active {
  color: #fff;
  border-color: rgba(255,255,255,0.52);
  background: rgba(255,255,255,0.06);
}

/* ── Wall — two CSS columns ──────────────────────── */
.journal-wall {
  columns: 2;
  column-gap: 80px;           /* was 36px — room between the two columns  */
  padding: 80px var(--pad-x) 220px;
  column-fill: auto;          /* don't compress to balance heights         */
}

/* ── Individual post item ────────────────────────── */
/*   JS sets: --tilt, paddingLeft, paddingRight,      */
/*            marginBottom (varied per item)          */
.ji {
  display: block;
  break-inside: avoid;
  /* Scroll reveal: starts hidden, raised slightly    */
  opacity: 0;
  transform: rotate(var(--tilt, 0deg)) translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
/* Scroll reveal fires .visible (from main.js) */
.ji.visible {
  opacity: 1;
  transform: rotate(var(--tilt, 0deg));
}

/* Full-width items span both columns */
.ji--full-span {
  column-span: all;
  break-inside: avoid;
}

/* Filter dimmed state */
.ji.is-dimmed {
  opacity: 0.06 !important;
  pointer-events: none;
  transform: rotate(var(--tilt, 0deg)) scale(0.97) !important;
}

/* ── Image / collage ─────────────────────────────── */
.ji--image,
.ji--collage {
  overflow: hidden;
  /* No min-height or background — accent colour was bleeding
     around images as a coloured frame. Images stand alone.  */
}
.ji--image img,
.ji--collage img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.75s var(--ease, cubic-bezier(0.4,0,0.2,1));
}
.ji--image:hover img,
.ji--collage:hover img { transform: scale(1.03); }

/* ── Video ───────────────────────────────────────── */
.ji--video {
  position: relative;
  overflow: hidden;
}
.ji--video video {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Quote — large floating type ────────────────── */
.ji--quote { padding: 16px 0; }
.ji__quote-body {
  font-size: clamp(22px, 3vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: rgba(255,255,255,0.88);
  margin-bottom: 16px;
}
.ji__quote-attr {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* ── Note — smaller italic thought ──────────────── */
.ji--note { padding: 10px 0; }
.ji__note-body {
  font-size: clamp(14px, 1.5vw, 19px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.88;
  color: rgba(255,255,255,0.46);
}
.ji__note-date {
  display: block;
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
}

/* ── Music embed ─────────────────────────────────── */
.ji--music iframe {
  display: block;
  width: 100%;
  border: none;
  border-radius: 10px;
  overflow: hidden;
}

/* ── PDF link card ───────────────────────────────── */
.ji--pdf {
  display: block;
  padding: 32px 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.ji--pdf:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
}
.ji__pdf-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 14px;
}
.ji__pdf-title {
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  line-height: 1.2;
  margin-bottom: 20px;
}
.ji__pdf-hint {
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
}

/* ── Journal footer ──────────────────────────────── */
.journal-footer {
  padding: 44px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
}
.journal-footer a {
  color: rgba(255,255,255,0.22);
  text-decoration: none;
  transition: color 0.25s;
}
.journal-footer a:hover { color: rgba(255,255,255,0.8); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .journal-wall {
    columns: 1;
    column-gap: 0;
    padding-top: 44px;
  }
  .ji {
    max-width: 100% !important; /* full width — no scatter on mobile */
    margin-left: 0 !important;
    --tilt: 0deg;
  }
  .ji.visible { transform: none; }
  .ji.is-dimmed { transform: scale(0.97) !important; }
  .journal-filters { top: 56px; }
  .ji__quote-body { font-size: clamp(20px, 6vw, 32px); }
}
