/* =========================================================
   V3 — SILENT GRID — One-page · video-forward
   ========================================================= */

.v3 {
  --v3-bg: #ffffff;
  --v3-ink: #0a0a0a;
  --v3-ink-dim: rgba(10,10,10,0.55);
  --v3-line: rgba(10,10,10,0.14);
  --v3-accent: #1a46ff;
  --v3-grot: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --v3-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --v3-col: 12;
  --v3-g: 16px;

  background: var(--v3-bg);
  color: var(--v3-ink);
  font-family: var(--v3-grot);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

.v3-shell {
  display: grid;
  grid-template-columns: repeat(var(--v3-col), minmax(0, 1fr));
  gap: var(--v3-g);
  padding: 16px 24px 0;
  max-width: 1800px;
  margin: 0 auto;
}

/* Top nav */
.v3-top {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(var(--v3-col), minmax(0, 1fr));
  gap: var(--v3-g);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--v3-ink);
  font-family: var(--v3-mono); font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase;
  align-items: baseline;
}
.v3-top .logo { grid-column: 1 / span 4; font-family: var(--v3-grot); font-size: 14px; font-weight: 600; letter-spacing: -0.02em; text-transform: none; }
.v3-top .logo::before { content: "▣ "; color: var(--v3-accent); }
.v3-top .nav { grid-column: 6 / span 4; display: flex; gap: 18px; }
.v3-top .nav a { transition: color 180ms; cursor: pointer; }
.v3-top .nav a:hover { color: var(--v3-accent); }
.v3-top .status { grid-column: 11 / span 2; text-align: right; color: var(--v3-ink-dim); }
.v3-top .status .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--v3-accent); margin-right: 6px; transform: translateY(-1px); }

/* Hero */
.v3-hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(var(--v3-col), minmax(0, 1fr));
  gap: var(--v3-g);
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--v3-line);
}
.v3-hero .kicker {
  grid-column: 1 / span 3;
  font-family: var(--v3-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--v3-ink-dim);
  display: flex; flex-direction: column; gap: 4px;
}
.v3-hero .kicker b { color: var(--v3-ink); font-weight: 500; }
.v3-hero h1 {
  grid-column: 4 / -1;
  margin: 0;
  font-size: clamp(48px, 7.2vw, 124px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 500;
  text-wrap: balance;
}
.v3-hero h1 .accent { color: var(--v3-accent); }
.v3-hero h1 .slash { color: var(--v3-accent); display: inline-block; transform: translateY(-0.08em); font-weight: 300; margin: 0 0.12em; }

/* Meta row */
.v3-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(var(--v3-col), minmax(0, 1fr));
  gap: var(--v3-g);
  padding: 18px 0 28px;
  border-bottom: 1px solid var(--v3-line);
  font-size: 13px;
  color: var(--v3-ink-dim);
}
.v3-meta .b { display: flex; flex-direction: column; gap: 4px; }
.v3-meta .b h5 { margin: 0 0 6px; font-family: var(--v3-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--v3-ink); font-weight: 500; }
.v3-meta .b.c1 { grid-column: 1 / span 3; }
.v3-meta .b.c2 { grid-column: 4 / span 3; }
.v3-meta .b.c3 { grid-column: 7 / span 3; }
.v3-meta .b.c4 { grid-column: 10 / span 3; }

/* Section header */
.v3-section-head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(var(--v3-col), minmax(0, 1fr));
  gap: var(--v3-g);
  padding: 40px 0 18px;
  border-top: 1px solid var(--v3-ink);
  align-items: baseline;
}
.v3-section-head h2 {
  grid-column: 1 / span 8;
  margin: 0;
  font-size: clamp(32px, 4.6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}
.v3-section-head h2 em { font-style: normal; color: var(--v3-accent); }
.v3-section-head .num {
  grid-column: 10 / span 3;
  text-align: right;
  font-family: var(--v3-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--v3-ink-dim);
}

/* Showreel hero (top film) */
.v3-showreel {
  grid-column: 1 / -1;
  position: relative;
  margin: 20px 0 28px;
}
.v3-showreel .strip {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 0 10px;
  font-family: var(--v3-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--v3-ink-dim);
}
.v3-showreel .strip .rec { color: var(--v3-accent); display: flex; align-items: center; gap: 8px; }
.v3-showreel .strip .rec::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--v3-accent);
  animation: v3-rec 1.2s ease-in-out infinite;
}
@keyframes v3-rec { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }

.v3-showreel .frame {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: #0a0a0a;
  cursor: pointer;
}
.v3-showreel .frame .poster,
.v3-showreel .frame iframe {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  display: block; border: 0;
  background: #0a0a0a;
}
.v3-showreel .frame .poster {
  object-fit: cover;
  transition: transform 900ms cubic-bezier(.2,.7,.2,1), filter 500ms;
  filter: brightness(0.8) saturate(0.95);
}
.v3-showreel .frame:hover .poster { transform: scale(1.03); filter: brightness(0.92); }
.v3-showreel .frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, transparent 25%, transparent 55%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
}

.v3-showreel .tick {
  position: absolute; top: 14px; left: 14px; z-index: 4;
  font-family: var(--v3-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; display: flex; gap: 16px;
}
.v3-showreel .tick .rec { color: var(--v3-accent); display: flex; align-items: center; gap: 6px; }
.v3-showreel .tick .rec::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--v3-accent);
  animation: v3-rec 1.2s ease-in-out infinite;
}

.v3-showreel .play-big {
  position: absolute; top: 50%; left: 50%; z-index: 4;
  transform: translate(-50%,-50%);
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--v3-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform 420ms cubic-bezier(.2,.7,.2,1), box-shadow 420ms;
  box-shadow: 0 20px 60px rgba(10,10,10,0.3);
}
.v3-showreel .play-big .tri {
  width: 0; height: 0;
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  border-left: 32px solid #fff;
  transform: translateX(4px);
}
.v3-showreel .play-big .ring {
  position: absolute; inset: -18px;
  border: 1px solid var(--v3-accent);
  border-radius: 50%;
  animation: v3-ring 2.4s ease-out infinite;
  opacity: 0.6;
}
@keyframes v3-ring {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 0; }
}
.v3-showreel .frame:hover .play-big { transform: translate(-50%,-50%) scale(1.06); }

.v3-showreel .meta-btm {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 4;
  display: flex; justify-content: space-between; align-items: flex-end;
  color: #fff;
  font-family: var(--v3-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.v3-showreel .meta-btm .big {
  font-family: var(--v3-grot);
  font-size: clamp(24px, 3.2vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1;
}
.v3-showreel .meta-btm .big em { color: var(--v3-accent); font-style: normal; }
.v3-showreel .meta-btm .right { text-align: right; display: flex; flex-direction: column; gap: 4px; }

/* Films grid — EVEN spans (3 films in a 12-col row = 4/4/4 or a full 12). */
.v3-films {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(var(--v3-col), minmax(0, 1fr));
  gap: var(--v3-g);
  padding: 10px 0 10px;
}
.v3-film {
  grid-column: span 4;
  position: relative;
  cursor: pointer;
  transition: transform 420ms cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column;
}
.v3-film:hover { transform: translateY(-3px); }
.v3-film .frame {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0a0a0a;
}
.v3-film .frame img, .v3-film .frame iframe {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  object-fit: cover; border: 0;
  background: #0a0a0a;
}
.v3-film .frame img {
  transition: transform 900ms cubic-bezier(.2,.7,.2,1), filter 500ms;
  filter: brightness(0.88) saturate(0.92);
}
.v3-film:hover .frame img { transform: scale(1.04); filter: brightness(1); }
.v3-film .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 30%, transparent 55%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}
.v3-film .play {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  transform: translate(-50%,-50%) scale(0.9);
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--v3-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 260ms ease, transform 460ms cubic-bezier(.2,.7,.2,1);
}
.v3-film:hover .play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.v3-film .play .tri {
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 14px solid #fff;
  transform: translateX(2px);
}
.v3-film .tag-top {
  position: absolute; top: 10px; left: 12px; right: 12px; z-index: 2;
  display: flex; justify-content: space-between;
  font-family: var(--v3-mono); font-size: 10px;
  color: #fff; letter-spacing: 0.1em; text-transform: uppercase;
}
.v3-film .tag-top .n::before { content: "● "; color: var(--v3-accent); }
.v3-film .caption {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 10px 0 0;
  font-family: var(--v3-mono);
  font-size: 11px;
}
.v3-film .caption .t1 {
  grid-column: 1;
  font-family: var(--v3-grot);
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--v3-ink);
  font-weight: 500;
}
.v3-film .caption .t2 {
  grid-column: 1 / -1;
  margin-top: 2px;
  color: var(--v3-ink-dim);
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 10px;
}
.v3-film .caption .yr { grid-column: 2; color: var(--v3-ink-dim); font-variant-numeric: tabular-nums; }

/* Projects (photo) — uniform 3-column grid */
.v3-projects {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(var(--v3-col), minmax(0, 1fr));
  gap: var(--v3-g);
  padding: 10px 0 40px;
}
.v3-proj {
  grid-column: span 4;
  position: relative;
  cursor: pointer;
  transition: transform 420ms cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column;
}
.v3-proj:hover { transform: translateY(-2px); }
.v3-proj .img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f0f0ee;
}
.v3-proj .img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(.2,.7,.2,1), filter 600ms;
  filter: saturate(0.96);
}
.v3-proj:hover .img img { transform: scale(1.03); }
.v3-proj .corner {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--v3-mono); font-size: 10px;
  color: #fff; mix-blend-mode: difference;
  letter-spacing: 0.08em;
}
.v3-proj .type {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-family: var(--v3-mono); font-size: 10px;
  color: #fff; mix-blend-mode: difference;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.v3-proj .caption {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 10px 0 0;
  font-family: var(--v3-mono);
  font-size: 11px;
}
.v3-proj .caption .t1 {
  grid-column: 1;
  font-family: var(--v3-grot);
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--v3-ink);
  font-weight: 500;
}
.v3-proj .caption .t2 {
  grid-column: 1 / -1;
  margin-top: 2px;
  color: var(--v3-ink-dim);
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 10px;
}
.v3-proj .caption .yr { grid-column: 2; color: var(--v3-ink-dim); font-variant-numeric: tabular-nums; }

/* Marquee services */
.v3-services {
  grid-column: 1 / -1;
  margin: 30px -24px;
  border-top: 1px solid var(--v3-ink);
  border-bottom: 1px solid var(--v3-ink);
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
}
.v3-services-track {
  display: inline-flex; gap: 40px;
  animation: v3-marq 40s linear infinite;
  padding-right: 40px;
  font-size: clamp(32px, 4.8vw, 72px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.v3-services .plus { color: var(--v3-accent); font-weight: 300; }
@keyframes v3-marq { to { transform: translateX(-50%); } }

/* Stats */
.v3-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--v3-g);
  padding: 40px 0;
  border-top: 1px solid var(--v3-line);
  border-bottom: 1px solid var(--v3-line);
}
.v3-stat .n {
  font-size: clamp(48px, 6vw, 96px);
  letter-spacing: -0.04em;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.v3-stat .n em { color: var(--v3-accent); font-style: normal; }
.v3-stat .l {
  margin-top: 10px;
  font-family: var(--v3-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--v3-ink-dim);
}

/* Contact */
.v3-contact {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(var(--v3-col), minmax(0, 1fr));
  gap: var(--v3-g);
  padding: 60px 0 40px;
}
.v3-contact h2 {
  grid-column: 1 / span 8;
  margin: 0;
  font-size: clamp(44px, 6.6vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.v3-contact h2 .accent { color: var(--v3-accent); }
.v3-contact .links {
  grid-column: 9 / span 4;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--v3-mono); font-size: 11px;
  align-self: end;
}
.v3-contact .links a {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--v3-line);
  transition: color 200ms, padding 320ms cubic-bezier(.2,.7,.2,1);
  letter-spacing: 0.04em;
}
.v3-contact .links a:first-child { border-top: 1px solid var(--v3-line); }
.v3-contact .links a:hover { padding-left: 10px; color: var(--v3-accent); }
.v3-contact .links a .k { text-transform: uppercase; letter-spacing: 0.12em; color: var(--v3-ink-dim); }

/* Footer */
.v3-foot {
  grid-column: 1 / -1;
  padding: 18px 0 28px;
  border-top: 1px solid var(--v3-ink);
  display: grid;
  grid-template-columns: repeat(var(--v3-col), minmax(0, 1fr));
  gap: var(--v3-g);
  font-family: var(--v3-mono);
  font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--v3-ink-dim);
}
.v3-foot .a { grid-column: 1 / span 4; }
.v3-foot .b { grid-column: 5 / span 4; text-align: center; color: var(--v3-ink); }
.v3-foot .c { grid-column: 9 / span 4; text-align: right; }

/* Lightbox video modal */
.v3-lightbox {
  position: fixed; inset: 0; z-index: 9996;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; pointer-events: none;
  transition: opacity 300ms ease;
}
.v3-lightbox.on { opacity: 1; pointer-events: auto; }
.v3-lightbox .box {
  position: relative;
  width: 100%; max-width: 1400px;
  aspect-ratio: 16/9;
  background: #000;
  transform: scale(0.98);
  transition: transform 360ms cubic-bezier(.2,.7,.2,1);
}
.v3-lightbox.on .box { transform: scale(1); }
.v3-lightbox iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.v3-lightbox .close {
  position: absolute; top: -40px; right: 0;
  color: #fff;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.v3-lightbox .close::after { content: "×"; font-size: 22px; line-height: 1; }
.v3-lightbox .meta {
  position: absolute; top: -40px; left: 0;
  color: rgba(255,255,255,0.6);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}
.v3-lightbox .meta em { color: var(--v3-accent); font-style: normal; }

/* Responsive */
@media (max-width: 900px) {
  .v3-shell { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .v3-top .logo { grid-column: 1 / span 3; }
  .v3-top .nav { grid-column: 4 / span 3; justify-content: flex-end; }
  .v3-top .status { display: none; }
  .v3-hero h1, .v3-hero .kicker { grid-column: 1 / -1; }
  .v3-projects > *, .v3-films > * { grid-column: span 6 !important; }
  .v3-meta .b { grid-column: 1 / -1 !important; }
  .v3-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-contact h2, .v3-contact .links, .v3-section-head h2, .v3-section-head .num { grid-column: 1 / -1; }
  .v3-showreel .play-big { width: 110px; height: 110px; }
  .v3-showreel .play-big .tri { border-top-width: 15px; border-bottom-width: 15px; border-left-width: 22px; }
}


/* Smooth scroll + nav anchor offset */
html { scroll-behavior: smooth; }
.v3 [id] { scroll-margin-top: 80px; }

/* Shorts (9:16) section — always 4 per row, even on mobile */
.v3-shorts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--v3-g);
  padding: 10px 0 10px;
}
.v3-short {
  position: relative;
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform 420ms cubic-bezier(.2,.7,.2,1);
}
.v3-short:hover { transform: translateY(-3px); }
.v3-short .frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #0a0a0a;
}
.v3-short .frame img {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  object-fit: cover;
  background: #0a0a0a;
  transition: transform 900ms cubic-bezier(.2,.7,.2,1), filter 500ms;
  filter: brightness(0.9) saturate(0.95);
}
.v3-short:hover .frame img { transform: scale(1.04); filter: brightness(1); }
.v3-short .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}
.v3-short .play {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  transform: translate(-50%,-50%) scale(0.9);
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--v3-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 260ms ease, transform 460ms cubic-bezier(.2,.7,.2,1);
}
.v3-short:hover .play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.v3-short .play .tri {
  width: 0; height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 13px solid #fff;
  transform: translateX(2px);
}
.v3-short .tag-top {
  position: absolute; top: 10px; left: 12px; right: 12px; z-index: 2;
  display: flex; justify-content: space-between;
  font-family: var(--v3-mono); font-size: 10px;
  color: #fff; letter-spacing: 0.1em; text-transform: uppercase;
}
.v3-short .tag-top .n::before { content: "● "; color: var(--v3-accent); }
.v3-short .tag-top .nine { background: rgba(255,255,255,0.18); padding: 2px 6px; backdrop-filter: blur(8px); border-radius: 2px; }
.v3-short .caption {
  display: grid; grid-template-columns: 1fr auto;
  padding: 10px 0 0;
  font-family: var(--v3-mono); font-size: 11px;
}
.v3-short .caption .t1 {
  font-family: var(--v3-grot); font-size: 15px;
  letter-spacing: -0.01em; color: var(--v3-ink); font-weight: 500;
}
.v3-short .caption .t2 {
  grid-column: 1 / -1; margin-top: 2px;
  color: var(--v3-ink-dim);
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 10px;
}
.v3-short .caption .yr { color: var(--v3-ink-dim); font-variant-numeric: tabular-nums; }

/* Archive CTA card under Photo */
.v3-archive-cta {
  grid-column: 1 / -1;
  margin: 30px 0 10px;
  display: grid;
  grid-template-columns: repeat(var(--v3-col), minmax(0, 1fr));
  gap: var(--v3-g);
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--v3-line);
  border-bottom: 1px solid var(--v3-line);
  cursor: pointer;
  transition: padding-left 360ms cubic-bezier(.2,.7,.2,1), color 360ms ease;
}
.v3-archive-cta:hover { padding-left: 14px; color: var(--v3-accent); }
.v3-archive-cta h3 {
  grid-column: 1 / span 8;
  margin: 0;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.03em;
  font-weight: 500;
  line-height: 1;
}
.v3-archive-cta h3 em { font-style: normal; color: var(--v3-accent); }
.v3-archive-cta:hover h3 em { color: inherit; }
.v3-archive-cta .arrow {
  grid-column: 11 / span 2;
  text-align: right;
  font-family: var(--v3-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.v3-archive-cta .arrow span { display: inline-block; transition: transform 360ms cubic-bezier(.2,.7,.2,1); }
.v3-archive-cta:hover .arrow span { transform: translateX(8px); }

/* ============== ARCHIVE OVERLAY (full page) ============== */
.v3-arch {
  position: fixed; inset: 0; z-index: 9990;
  background: var(--v3-bg);
  color: var(--v3-ink);
  font-family: var(--v3-grot);
  overflow-y: auto;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 540ms cubic-bezier(.2,.7,.2,1), opacity 360ms ease;
}
.v3-arch.on {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.v3-arch-shell {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--v3-g);
  padding: 16px 24px 80px;
  max-width: 1800px;
  margin: 0 auto;
}
.v3-arch-top {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--v3-g);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--v3-ink);
  font-family: var(--v3-mono); font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase;
  align-items: baseline;
}
.v3-arch-top .crumb { grid-column: 1 / span 6; font-family: var(--v3-grot); font-size: 14px; letter-spacing: -0.02em; text-transform: none; font-weight: 600; }
.v3-arch-top .crumb b { color: var(--v3-accent); font-weight: 500; }
.v3-arch-top .close { grid-column: 11 / span 2; text-align: right; cursor: pointer; transition: color 200ms; }
.v3-arch-top .close:hover { color: var(--v3-accent); }
.v3-arch-top .close::after { content: " ×"; font-size: 14px; }

.v3-arch-hero {
  grid-column: 1 / -1;
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--v3-line);
}
.v3-arch-hero h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 120px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.94;
}
.v3-arch-hero h1 em { font-style: normal; color: var(--v3-accent); }
.v3-arch-hero .sub {
  margin-top: 18px;
  display: flex; gap: 24px;
  font-family: var(--v3-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--v3-ink-dim);
}
.v3-arch-hero .sub b { color: var(--v3-ink); font-weight: 500; }

/* Archive filter chips */
.v3-arch-filters {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 22px 0 14px;
  font-family: var(--v3-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.v3-arch-filters .chip {
  padding: 8px 14px;
  border: 1px solid var(--v3-line);
  border-radius: 999px;
  cursor: pointer;
  color: var(--v3-ink-dim);
  transition: all 200ms ease;
}
.v3-arch-filters .chip:hover { color: var(--v3-ink); border-color: var(--v3-ink); }
.v3-arch-filters .chip.on {
  background: var(--v3-ink); color: var(--v3-bg); border-color: var(--v3-ink);
}

/* Folder grid */
.v3-arch-folders {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--v3-g);
  padding: 16px 0 60px;
}
.v3-folder {
  grid-column: span 4;
  position: relative;
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform 420ms cubic-bezier(.2,.7,.2,1);
}
.v3-folder:hover { transform: translateY(-3px); }

/* Folder cover — stack of 3 sheets that fan on hover */
.v3-folder .stack {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #0e0e0e;
}
.v3-folder .stack .sheet img {
  background: #0e0e0e;
}
.v3-folder .stack .sheet {
  position: absolute; inset: 0;
  background: #f0f0ee;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 18px 30px -22px rgba(0,0,0,0.18);
  transition: transform 540ms cubic-bezier(.2,.7,.2,1), opacity 360ms ease;
}
.v3-folder .stack .sheet img {
  width: 100% !important; height: 100% !important;
  object-fit: cover;
  filter: saturate(0.96);
}
.v3-folder .stack .sheet.s2 { transform: translate(8px, 8px) rotate(0.4deg); z-index: 1; }
.v3-folder .stack .sheet.s1 { transform: translate(4px, 4px) rotate(-0.3deg); z-index: 2; }
.v3-folder .stack .sheet.s0 { z-index: 3; }
.v3-folder:hover .stack .sheet.s2 { transform: translate(22px, 14px) rotate(2deg); }
.v3-folder:hover .stack .sheet.s1 { transform: translate(12px, 8px) rotate(-1.2deg); }
.v3-folder:hover .stack .sheet.s0 { transform: translate(-2px, -4px) rotate(-0.4deg); }

.v3-folder .stack .corner {
  position: absolute; top: 10px; left: 10px; z-index: 4;
  font-family: var(--v3-mono); font-size: 10px;
  color: #fff; mix-blend-mode: difference;
  letter-spacing: 0.08em;
}
.v3-folder .stack .count {
  position: absolute; bottom: 10px; right: 10px; z-index: 4;
  font-family: var(--v3-mono); font-size: 10px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 8px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.v3-folder .caption {
  display: grid; grid-template-columns: 1fr auto;
  padding: 14px 0 0;
  font-family: var(--v3-mono); font-size: 11px;
}
.v3-folder .caption .t1 {
  font-family: var(--v3-grot); font-size: 18px;
  letter-spacing: -0.01em; color: var(--v3-ink); font-weight: 500;
}
.v3-folder .caption .t2 {
  grid-column: 1 / -1; margin-top: 2px;
  color: var(--v3-ink-dim);
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 10px;
}
.v3-folder .caption .yr { color: var(--v3-ink-dim); font-variant-numeric: tabular-nums; }

/* Coverflow gallery overlay */
.v3-cover {
  position: fixed; inset: 0; z-index: 9995;
  background: rgba(10,10,10,0.96);
  color: #fff;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity 360ms ease;
}
.v3-cover.on { opacity: 1; pointer-events: auto; }

.v3-cover-top {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 22px 28px;
  font-family: var(--v3-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.v3-cover-top .title {
  font-family: var(--v3-grot);
  font-size: 22px; font-weight: 500; letter-spacing: -0.02em;
  color: #fff; text-transform: none;
}
.v3-cover-top .title em { color: var(--v3-accent); font-style: normal; }
.v3-cover-top .close { cursor: pointer; transition: color 200ms; }
.v3-cover-top .close:hover { color: var(--v3-accent); }
.v3-cover-top .close::after { content: " ×"; font-size: 16px; }

/* Stage with 3D coverflow */
.v3-cover-stage {
  flex: 1;
  position: relative;
  perspective: 1800px;
  overflow: hidden;
}
.v3-cover-track {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transform-style: preserve-3d;
}
.v3-cover-card {
  position: absolute;
  width: clamp(280px, 36vw, 620px);
  height: clamp(360px, 60vh, 780px);
  transition: transform 720ms cubic-bezier(.22,.7,.22,1), opacity 720ms ease, filter 720ms ease;
  cursor: pointer;
  background: transparent;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
}
.v3-cover-card img {
  width: 100% !important; height: 100% !important;
  object-fit: contain;
  background: transparent;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.v3-cover-card::after { display: none; }
/* reflection via duplicate img */
.v3-cover-card .refl {
  position: absolute; left: 0; right: 0;
  top: 100%; height: 50%;
  overflow: hidden;
  transform: scaleY(-1);
  opacity: 0.28;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 75%);
}
.v3-cover-card .refl img { width: 100%; height: 100%; object-fit: contain; background: transparent; }

/* Bottom controls */
.v3-cover-ctrls {
  padding: 18px 28px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  font-family: var(--v3-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.v3-cover-ctrls .l { text-align: left; }
.v3-cover-ctrls .r { text-align: right; }
.v3-cover-ctrls .nav {
  display: flex; gap: 10px;
  justify-content: center;
}
.v3-cover-ctrls .nav button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
  font-size: 16px;
}
.v3-cover-ctrls .nav button:hover {
  background: var(--v3-accent);
  border-color: var(--v3-accent);
  color: #fff;
}
.v3-cover-ctrls .count em { color: #fff; font-style: normal; font-variant-numeric: tabular-nums; }

/* Thumbnail strip */
.v3-cover-thumbs {
  display: flex; gap: 4px; justify-content: center;
  padding: 0 28px 18px;
  flex-wrap: wrap;
}
.v3-cover-thumbs .thumb {
  width: 56px; height: 56px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  opacity: 0.4;
  transition: opacity 200ms ease, transform 320ms cubic-bezier(.2,.7,.2,1);
}
.v3-cover-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.v3-cover-thumbs .thumb:hover { opacity: 0.8; }
.v3-cover-thumbs .thumb.on { opacity: 1; transform: translateY(-3px); }
.v3-cover-thumbs .thumb.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--v3-accent);
}

/* Responsive overrides for new sections */
@media (max-width: 900px) {
  /* Shorts stay 4 per row on mobile — tighten labels & play btn */
  .v3-shorts { gap: 8px; }
  .v3-short .caption { padding: 6px 0 0; font-size: 9px; }
  .v3-short .caption .t1 { font-size: 11px; }
  .v3-short .caption .t2 { font-size: 8px; }
  .v3-short .tag-top { top: 6px; left: 6px; right: 6px; font-size: 8px; }
  .v3-short .play { width: 32px; height: 32px; }
  .v3-short .play .tri { border-top-width: 6px; border-bottom-width: 6px; border-left-width: 9px; }
  .v3-archive-cta h3 { grid-column: 1 / -1; }
  .v3-archive-cta .arrow { grid-column: 1 / -1; text-align: left; margin-top: 14px; }
  .v3-arch-shell { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .v3-arch-folders { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .v3-folder { grid-column: span 6; }
  .v3-cover-card { width: 75vw; height: 56vh; }
}


/* Uniform folder grid override — films also 4/5 */
.v3-folder .stack[style] { aspect-ratio: 4 / 5 !important; height: auto !important; }

/* Folder cover image: cover but with neutral letterbox bg if portrait/landscape mix */
.v3-folder .stack .sheet.s0 img {
  object-position: center;
}

/* Section dividers in archive folders grid */
.v3-arch-section-head {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 30px 0 14px;
  border-bottom: 1px solid var(--v3-line);
  margin-top: 20px;
}
.v3-arch-section-head h3 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 500; letter-spacing: -0.02em;
}
.v3-arch-section-head h3 em { font-style: normal; color: var(--v3-accent); font-family: var(--v3-mono); font-size: 0.5em; letter-spacing: 0.12em; text-transform: uppercase; margin-right: 12px; vertical-align: middle; }
.v3-arch-section-head .num {
  font-family: var(--v3-mono); font-size: 11px;
  color: var(--v3-ink-dim); letter-spacing: 0.12em; text-transform: uppercase;
}


/* Film folders — landscape 16/9, distinct from photo folders */
.v3-folder.is-film .stack {
  aspect-ratio: 16 / 9 !important;
}
.v3-folder.is-film .stack .sheet img {
  object-fit: cover;
}

/* Short folders in archive — vertical 9:16 */
.v3-folder.is-short .stack {
  aspect-ratio: 9 / 16 !important;
}
.v3-folder.is-short .stack .sheet img {
  object-fit: cover;
}
/* Shorts grid in archive: tighter, 6 per row on desktop, 3 on mobile */
.v3-arch-folders.is-shorts {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 18px !important;
}
.v3-arch-folders.is-shorts .v3-folder { grid-column: span 1 !important; }
@media (max-width: 900px) {
  .v3-arch-folders.is-shorts {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}
