/* ==========================================================
   HOMEPAGE & PROJECTS PAGE EXTRAS
   Subtle motion, slideshow banner, card hover treatments
   Layered on top of styles.css
   ========================================================== */

/* ---------- MARQUEE STRIP ---------- */
.home-marquee {
  overflow: hidden;
  border-top: 1px solid #ededed;
  border-bottom: 1px solid #ededed;
  padding: 18px 0;
  background: #ffffff;
  margin-bottom: 48px;
}

.home-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: homeMarqueeScroll 42s linear infinite;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #555252;
  will-change: transform;
}

.home-marquee-track span { display: inline-flex; align-items: center; }
.home-marquee-track .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #c9c5be;
}
.home-marquee-track strong { font-weight: 600; color: #0a0a0a; }

@keyframes homeMarqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .home-marquee-track { animation: none; }
}

/* ---------- PROJECT CARD ENHANCEMENT ---------- */
.p2-card {
  display: block;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.p2-card .project-card-clean-image {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  isolation: isolate;
}

.p2-card .project-card-clean-image::before {
  content: attr(data-tag);
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.p2-card::before {
  content: attr(data-num);
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Use data-tag from the inner image div for the left chip */
.p2-card[data-tag] .project-card-clean-image::before {
  content: attr(data-tag);
}
.p2-card .project-card-clean-image::before {
  content: attr(data-tag);
}
/* fallback so tag pulls from card itself */
.p2-card[data-tag] {
  --tag: attr(data-tag);
}

.p2-card:hover::before,
.p2-card:hover .project-card-clean-image::before {
  opacity: 1;
  transform: translateY(0);
}

.p2-card .project-card-clean-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.p2-card .card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.p2-card:hover .card-video {
  opacity: 1;
}

.p2-card:hover .project-card-clean-image img {
  transform: scale(1.04);
}

/* CTA pill that slides up on hover */
.p2-card .card-cta {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.p2-card .card-cta .arr {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.p2-card:hover .card-cta {
  opacity: 1;
  transform: translateY(0);
}

.p2-card:hover .card-cta .arr {
  transform: translateX(4px);
}

.p2-card .project-card-clean-text p {
  transition: color 0.3s ease;
}

.p2-card:hover .project-card-clean-text p {
  color: #0a0a0a;
}

/* ---------- FILM PHOTO SLIDESHOW ---------- */
.photo-slideshow {
  position: relative;
  width: 100%;
  height: 530px;
  overflow: hidden;
  background: #1a1a18;
}

.photo-slideshow .photo-stack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.photo-slideshow .photo-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.5s ease, transform 7s ease-out;
}

.photo-slideshow .photo-stack img.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Dim overlay so the overlay text reads well */
.photo-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.08) 38%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 1;
}

.photo-slideshow .contact-overlay {
  z-index: 2;
}

/* Top-right mono tag */
.photo-slideshow .photo-stack-tag {
  position: absolute;
  top: 27px;
  right: 100px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.photo-slideshow .photo-stack-tag .ps-mono::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #f6e9dc;
  margin-right: 8px;
  vertical-align: 1px;
  border-radius: 50%;
  animation: psPulse 2.2s ease-in-out infinite;
}

.photo-slideshow .photo-stack-tag .ps-idx {
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

@keyframes psPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

@media (max-width: 1100px) {
  .photo-slideshow .photo-stack-tag { right: 40px; }
}
@media (max-width: 700px) {
  .photo-slideshow .photo-stack-tag {
    right: 20px;
    top: 18px;
    font-size: 10px;
    gap: 10px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .photo-slideshow .photo-stack img {
    transition: opacity 0.6s ease;
    transform: none;
  }
}

/* ---------- HERO POLISH ---------- */
.hero-title h1 {
  letter-spacing: -0.02em;
}

/* Slight type refresh — keeps overall layout */
.hero-copy-inner p:first-child {
  font-weight: 400;
}

/* ---------- SECTION LABELS w/ small underline tic for rhythm ---------- */
.section-label {
  position: relative;
}

/* ---------- NOW SHIPPING WORD CYCLER ---------- */
/* Replaces the morphing canvas. Single editorial line with
   a quiet vertical-slide animation between rotating words. */

.now-shipping {
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid #ededed;
  border-bottom: 1px solid #ededed;
  background: #ffffff;
}

.now-shipping-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1240px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.ns-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #555252;
  flex-shrink: 0;
}

.ns-eyebrow .ns-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0a0a0a;
  position: relative;
}
.ns-eyebrow .ns-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid #0a0a0a;
  animation: nsPulse 2s ease-out infinite;
}
@keyframes nsPulse {
  from { transform: scale(0.6); opacity: 1; }
  to   { transform: scale(2.2); opacity: 0; }
}

.ns-stage {
  flex: 1;
  position: relative;
  height: 1.2em;
  overflow: hidden;
  font-family: 'Switzer', sans-serif;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: #0a0a0a;
  text-align: center;
  min-width: 0;
}

.ns-words {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 1.2em;
}

.ns-words li {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(60%);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  font-style: italic;
  font-family: 'Times New Roman', Times, serif;
  font-weight: 400;
  white-space: nowrap;
}

.ns-words li.is-active {
  opacity: 1;
  transform: translateY(0);
}

.ns-words li.is-leaving {
  opacity: 0;
  transform: translateY(-60%);
}

.ns-counter {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #8a847b;
  padding: 4px 10px;
  border: 1px solid #ededed;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .now-shipping { padding: 40px 0; }
  .now-shipping-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .ns-stage { text-align: left; }
  .ns-words li { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .ns-words li,
  .ns-eyebrow .ns-dot::after { animation: none; transition: opacity 0.3s ease; }
}

/* Legacy: hide the old canvas if any remains */
.shape-canvas-section { display: none !important; }

/* ---------- DIVIDER & SECTION SUBTLE LIFT ---------- */
.selected-work,
.experience,
.expertise,
.process-section,
.testimonials {
  position: relative;
}

/* ---------- EXPERIENCE LOGO MASKS ----------
   Replaces hundreds of lines of inline SVG with a single
   mask-image swatch per logo. The mask defines the shape;
   background-color paints it dark by default, white on hover.
*/
.experience-logo .logo-mask {
  width: clamp(110px, 16vw, 140px);
  height: 32px;
  background-color: #051c2c;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-size: contain;
  transition: background-color 0.25s ease;
}

.logo-mask-telegraph {
  -webkit-mask-image: url('images/logos/telegraph.svg');
          mask-image: url('images/logos/telegraph.svg');
  width: clamp(140px, 18vw, 200px);
  height: 24px;
}

.logo-mask-apple-news {
  -webkit-mask-image: url('images/logos/apple-news.svg');
          mask-image: url('images/logos/apple-news.svg');
  width: clamp(95px, 12vw, 120px);
  height: 30px;
}

.logo-mask-dailymotion {
  -webkit-mask-image: url('images/logos/dailymotion.svg');
          mask-image: url('images/logos/dailymotion.svg');
  width: clamp(125px, 16vw, 160px);
  height: 22px;
}

.logo-mask-mckinsey {
  -webkit-mask-image: url('images/logos/mckinsey.svg');
          mask-image: url('images/logos/mckinsey.svg');
  width: clamp(135px, 17vw, 170px);
  height: 36px;
}

.experience-card:hover .logo-mask {
  background-color: #ffffff;
}

/* Hide the original .logo-dark / .logo-light containers if any remain */
.experience-card .logo-dark,
.experience-card .logo-light {
  display: none !important;
}

@media (max-width: 700px) {
  .now-shipping-inner {
    align-items: center;
    text-align: center;
    gap: 18px;
  }

    .now-shipping {
    border-bottom: none;
    padding-top: 40px;
  padding-bottom: 12px;
  }

  .ns-stage {
    display: block;
    width: 100%;
    min-height: 44px;
    text-align: center;
    overflow: visible;
  }

  .ns-words li {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}



