/* ==========================================================
   PROJECTS PAGE EXTRAS — editorial layout, motion-led
   Layered on top of styles.css + project-v2.css + homepage-extras.css
   ========================================================== */

/* ---------- HERO ---------- */
.projects-hero-v2 {
  padding-top: 80px;
  padding-bottom: 56px;
}

.projects-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #555252;
  margin-bottom: 40px;
}

.projects-hero-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.projects-hero-meta .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #0a0a0a;
  display: inline-block;
}

.projects-hero-meta .slash {
  color: #c9c5be;
}

.projects-hero-title {
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin-bottom: 36px;
  max-width: 18ch;
}

.projects-hero-title em {
  font-style: italic;
  font-family: 'Times New Roman', Times, serif;
  font-weight: 400;
  color: #555252;
}

.projects-hero-lede {
  max-width: 720px;
  margin-left: auto;
}

.projects-hero-lede p {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.4;
  color: #3a3a38;
  font-weight: 300;
}

/* ---------- PROJECT DIRECTORY ---------- */
.project-directory {
  padding-top: 80px;
  padding-bottom: 80px;
}

.project-directory-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.project-directory-title {
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.project-directory-title em {
  font-style: italic;
  font-family: 'Times New Roman', Times, serif;
  color: #555252;
}

.directory-table {
  position: relative;
  border-top: 1px solid #ededed;
  border-bottom: 1px solid #ededed;
}

.dir-row {
  display: grid;
  grid-template-columns: 60px 1fr 240px 110px;
  gap: 24px;
  padding: 22px 8px;
  align-items: center;
  border-bottom: 1px solid #ededed;
  cursor: pointer;
  position: relative;
  font-family: 'Switzer', sans-serif;
  color: #0a0a0a;
  text-decoration: none;
  transition: background 0.3s ease, padding-left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.dir-row:last-child { border-bottom: none; }

.dir-row.dir-header {
  cursor: default;
  padding: 14px 8px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a847b;
  border-bottom: 1px solid #ededed;
}

.dir-row.dir-header:hover { background: transparent; padding-left: 8px; }

.dir-row:not(.dir-header):hover {
  background: #fafafa;
  padding-left: 24px;
}

.dir-row .dir-no {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #8a847b;
  font-variant-numeric: tabular-nums;
}

.dir-row .dir-name {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.dir-row .dir-name em {
  font-style: italic;
  font-family: 'Times New Roman', Times, serif;
  color: #8a847b;
  font-weight: 400;
}

.dir-row .dir-role,
.dir-row .dir-year {
  font-size: 13px;
  color: #555252;
}

.dir-row .dir-status {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555252;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dir-row .dir-status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.dir-row .dir-status .dot.success { background: #2a9b6f; }
.dir-row .dir-status .dot.warn { background: #d4a548; }

/* Hover floating thumbnail */
.dir-preview {
  position: absolute;
  pointer-events: none;
  width: 220px;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f1ec;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.25);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
  border: 1px solid #ededed;
}

.dir-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.dir-preview.is-active {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 900px) {
  .dir-row {
    grid-template-columns: 40px 1fr 90px;
    gap: 16px;
    padding: 18px 4px;
  }
  .dir-row .dir-role,
  .dir-row .dir-year { display: none; }
  .dir-row.dir-header { grid-template-columns: 40px 1fr 90px; }
  .dir-row.dir-header .dir-role,
  .dir-row.dir-header .dir-year { display: none; }
  .dir-preview { display: none; }
}

/* ---------- STATS RIBBON ---------- */
.projects-stats {
  background: #0a0a0a;
  color: #fff;
  padding: 64px 100px;
}

.projects-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1440px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.ps-stat {
  padding: 32px 28px 32px 0;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.ps-stat:last-child { border-right: none; }
.ps-stat:nth-child(n+2) { padding-left: 28px; }

.ps-no {
  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.45);
  margin-bottom: 18px;
}

.ps-num {
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}

.ps-num .ps-unit {
  font-size: 0.5em;
  color: rgba(255,255,255,0.65);
  margin-left: 4px;
  font-family: ui-monospace, monospace;
}

.ps-label {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.62);
  max-width: 26ch;
}

@media (max-width: 900px) {
  .projects-stats { padding: 48px 40px; }
  .projects-stats-grid { grid-template-columns: 1fr 1fr; }
  .ps-stat { border-right: none; padding: 24px 0 24px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .ps-stat:nth-child(2n) { padding-left: 24px; border-left: 1px solid rgba(255,255,255,0.12); }
  .ps-stat:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 600px) {
  .projects-stats { padding: 40px 24px; }
  .projects-stats-grid { grid-template-columns: 1fr; }
  .ps-stat { padding: 24px 0 !important; border-left: none !important; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .ps-stat:last-child { border-bottom: none; }
}

/* ---------- FEATURED SPOTLIGHT ---------- */
.featured-spotlight {
  padding-top: 96px;
  padding-bottom: 0;
  background: #faf8f3;
  border-bottom: 1px solid #ededed;
}

.spotlight-inner {
  padding-bottom: 48px;
}

.spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #555252;
  margin-bottom: 28px;
}

.spotlight-meta .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2a9b6f;
  display: inline-block;
  position: relative;
}
.spotlight-meta .dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid #2a9b6f;
  animation: nsPulse 2s ease-out infinite;
}

.spotlight-link {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  text-decoration: none;
  color: #0a0a0a;
  border-top: 1px solid #ededed;
  border-bottom: 1px solid #ededed;
  padding: 40px 0;
  transition: padding 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.spotlight-link:hover { padding: 56px 0; }

.spotlight-title {
  font-size: clamp(36px, 6vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 400;
  max-width: 18ch;
}

.spotlight-title em {
  font-style: italic;
  font-family: 'Times New Roman', Times, serif;
  color: #2a9b6f;
  font-weight: 500;
}

.spotlight-arrow {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
}
.spotlight-link:hover .spotlight-arrow { transform: translateX(16px); }

/* Spotlight media — full bleed video */
.spotlight-media {
  position: relative;
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  background: #111;
}

.spotlight-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.spotlight-corner {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 2;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(0,0,0,0.45);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.spotlight-corner.right { left: auto; right: 24px; }

/* Spotlight stats below the media */
.spotlight-stats {
  padding-top: 48px;
  padding-bottom: 80px;
}

.ss-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid #ededed;
  border-bottom: 1px solid #ededed;
}

.ss-item {
  padding: 32px 20px 32px 0;
  border-right: 1px solid #ededed;
}
.ss-item:last-child { border-right: none; }
.ss-item:nth-child(n+2) { padding-left: 20px; }

.ss-num {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.ss-num .ss-unit {
  font-size: 0.5em;
  margin-left: 3px;
  color: #555252;
  font-family: ui-monospace, monospace;
}

.ss-label {
  font-size: 12px;
  line-height: 1.4;
  color: #555252;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: ui-monospace, monospace;
}

@media (max-width: 900px) {
  .ss-grid { grid-template-columns: 1fr 1fr; }
  .ss-item { border-right: none; padding: 20px 20px; border-bottom: 1px solid #ededed; }
  .ss-item:nth-child(2n) { padding-left: 20px; border-left: 1px solid #ededed; }
}

/* ---------- MORE WORKS ---------- */
.more-works {
  padding-top: 96px;
  padding-bottom: 64px;
}

.more-works-head {
  margin-bottom: 32px;
}

.more-works-head h3 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-top: 12px;
}

.more-works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .more-works-grid { grid-template-columns: 1fr; }
}

.more-works-grid .project-card-clean-text .card-sub {
  display: block;
  margin-top: 6px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #8a847b;
}

/* ---------- D&AD IMPACT ---------- */
.dad-impact {
  padding-top: 96px;
  padding-bottom: 96px;
  border-top: 1px solid #ededed;
}

.dad-impact-heading {
  margin-bottom: 48px;
}

.dad-impact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.dad-impact-text h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 20px;
}

.dad-impact-text h2 em {
  font-style: italic;
  font-family: 'Times New Roman', Times, serif;
  color: #d4a548;
  font-weight: 500;
}

.dad-impact-sub {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.35;
  color: #0a0a0a;
  margin-bottom: 24px;
  font-weight: 300;
}

.dad-impact-text p {
  font-size: 15px;
  line-height: 1.55;
  color: #ffffff;
  margin-bottom: 16px;
}

.dad-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 18px;
  border: 1px solid #0a0a0a;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #0a0a0a;
  transition: background 0.3s ease, color 0.3s ease;
}
.dad-link:hover { background: #0a0a0a; color: #fff; }
.dad-link .arr { transition: transform 0.3s ease; }
.dad-link:hover .arr { transform: translate(3px, -3px); }

.dad-impact-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dad-medal {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 18px;
  overflow: hidden;
  background: #faf8f3;
  border: 1px solid #ededed;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.dad-medal:hover { transform: translateY(-4px); }

.dad-medal img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.dad-medal .dad-year {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #ffffff;
  background: rgba(0,0,0,0.5);
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}



@media (max-width: 900px) {
  .dad-impact-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- FREELANCE / VELVET FEATURE ---------- */
.freelance-feature {
  background: #1a1416;
  color: #f6e9dc;
  padding-top: 80px;
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
}

.freelance-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 100%, rgba(212, 167, 106, 0.16), transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(122, 59, 63, 0.20), transparent 55%);
  pointer-events: none;
}

.freelance-meta-strip {
  border-bottom: 1px solid rgba(243, 238, 229, 0.14);
  padding-bottom: 16px;
  margin-bottom: 56px;
}

.freelance-meta-strip .p2-eyebrow {
  color: #d4a76a;
  margin-bottom: 0;
}
.freelance-meta-strip .p2-eyebrow .num {
  border-color: rgba(212, 167, 106, 0.5);
  color: #d4a76a;
}

.freelance-velvet {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.freelance-velvet-text h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 24px;
  color: #f6e9dc;
}

.freelance-velvet-text h2 em {
  font-style: italic;
  font-family: 'Cormorant Garamond', 'Times New Roman', Times, serif;
  color: #d4a76a;
  font-weight: 500;
}

.velvet-feature-sub {
  font-size: 17px;
  line-height: 1.45;
  color: rgba(243, 238, 229, 0.85);
  margin-bottom: 32px;
  max-width: 50ch;
}

.velvet-feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 32px;
}

.velvet-feature-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(243, 238, 229, 0.14);
  font-size: 14px;
  color: rgba(243, 238, 229, 0.78);
}
.velvet-feature-list li:last-child { border-bottom: 1px solid rgba(243, 238, 229, 0.14); }

.velvet-feature-list .vf-no {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #d4a76a;
}

.velvet-feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #d4a76a;
  color: #1a1416;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.3s ease;
}
.velvet-feature-cta:hover { background: #f6e9dc; transform: translateY(-1px); }
.velvet-feature-cta .arr { transition: transform 0.3s ease; }
.velvet-feature-cta:hover .arr { transform: translateX(4px); }

.freelance-velvet-media {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #2a1a1c;
}

.freelance-velvet-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.freelance-velvet-media:hover img { transform: scale(1.04); }

.freelance-velvet-media .vf-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(0,0,0,0.45);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

@media (max-width: 900px) {
  .freelance-velvet { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- TOUCHDESIGNER ---------- */
.td-section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.td-head {
  margin-bottom: 48px;
  max-width: 800px;
}

.td-head h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 12px 0 16px;
}

.td-head h2 em {
  font-style: italic;
  font-family: 'Times New Roman', Times, serif;
  color: #555252;
}

.td-blurb {
  font-size: 16px;
  line-height: 1.5;
  color: #555252;
  max-width: 56ch;
}

.td-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .td-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .td-grid { grid-template-columns: 1fr; }
}

.td-tile {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  margin: 0;
  background: #111;
  cursor: zoom-in;
}

.td-tile video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.td-tile:hover video { transform: scale(1.04); }

.td-tile::after {
  content: attr(data-cap);
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(0,0,0,0.5);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.td-tile:hover::after { opacity: 1; transform: translateY(0); }

/* ---------- PHOTOGRAPHY · FILM STRIP ---------- */
.photo-section {
  padding-top: 96px;
  padding-bottom: 96px;
  border-top: 1px solid #ededed;
}

.photo-head {
  margin-bottom: 48px;
  max-width: 800px;
}

.photo-head h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 12px 0 16px;
}

.photo-head h2 em {
  font-style: italic;
  font-family: 'Times New Roman', Times, serif;
  color: #555252;
}

.photo-blurb {
  font-size: 16px;
  line-height: 1.5;
  color: #555252;
  max-width: 56ch;
}

.film-strip {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  user-select: none;
  cursor: grab;
  padding: 0 100px;
}
.film-strip::-webkit-scrollbar { display: none; }
.film-strip.is-dragging { cursor: grabbing; }

.film-strip-track {
  display: inline-flex;
  gap: 14px;
  padding: 8px 0 8px 0;
  align-items: stretch;
}

.film-strip-track figure {
  flex-shrink: 0;
  margin: 0;
  width: clamp(220px, 24vw, 320px);
  aspect-ratio: 3/4;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #f4f1ec;
}

.film-strip-track figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.film-strip-track figcaption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(0,0,0,0.5);
  padding: 5px 9px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

@media (max-width: 1100px) {
  .film-strip { padding: 0 40px; }
  
}
@media (max-width: 700px) {

  .film-strip {
    padding: 0 24px;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  .film-strip-track figure {
    width: 200px;
  }

}

/* Hide legacy bits that no longer apply */
.side-projects { display: none !important; }
.side-project { display: none !important; }

/* Override the older .projects-hero hero rules from styles.css —
   we use .projects-hero-v2 now. */
main .projects-hero { display: none; }
