/* ============================================
   BASE V2 — shared page surface for every v2 page.
   Neutral light grey, no texture. The home page adds a
   faint dot grid back in home-v2.css.
   ============================================ */
:root {
  --bg: #F7F7F7;
}

body {
  background-color: var(--bg);
  background-image: none;
}

.nav {
  background: var(--bg);
}

/* .section resets horizontal padding; keep the container gutter on every v2 page */
.section.container {
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ---------- Lightbox (js/lightbox-v2.js) ---------- */
.lb-zoomable { cursor: zoom-in; }
[data-video] { cursor: pointer; }
.lb-lock, .lb-lock body { overflow: hidden; }

.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 32px 32px;
  background: rgba(10, 10, 10, 0.86);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lb-overlay[hidden] { display: none; }
.lb-overlay.is-open { opacity: 1; }
.lb-overlay[data-kind="image"] { cursor: zoom-out; }

.lb-stage {
  max-width: min(1600px, 100%);
  max-height: 100%;
  display: flex;
}

.lb-stage img,
.lb-stage video {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 88px);
  width: auto;
  height: auto;
  border: var(--border-width) solid #2B2B2B;
  border-radius: 12px;
  background: #fff;
  box-shadow: 6px 6px 0 #2B2B2B;
}
.lb-stage video { background: #2B2B2B; width: min(1200px, 100%); }

.lb-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #2B2B2B;
  border: var(--border-width) solid #2B2B2B;
  border-radius: 8px;
  box-shadow: 3px 3px 0 #2B2B2B;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) { .lb-overlay { transition: none; } }

/* Lightbox gallery: several images with prev/next arrows (Playground cards) */
.lb-overlay[data-kind="gallery"] .lb-stage { max-width: 100%; }
.lb-gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 64px;
}
.lb-gallery img { max-height: calc(100vh - 120px); }
.lb-nav {
  position: absolute;
  top: calc(50% - 22px);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #2B2B2B;
  font: 600 20px/1 var(--font-body);
  border: var(--border-width) solid #2B2B2B;
  border-radius: 999px;
  box-shadow: 3px 3px 0 #2B2B2B;
  cursor: pointer;
}
.lb-nav:hover { box-shadow: 4px 4px 0 #2B2B2B; }
.lb-nav:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #2B2B2B; }
.lb-nav--prev { left: 0; }
.lb-nav--next { right: 0; }
.lb-count {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #fff;
}
@media (max-width: 640px) {
  .lb-gallery { padding: 0 0 56px; }
  .lb-nav { top: auto; bottom: 0; }
  .lb-nav--prev { left: calc(50% - 60px); }
  .lb-nav--next { right: calc(50% - 60px); }
  .lb-count { position: absolute; bottom: 14px; }
}

/* Intro bubble: black instead of blue, to match the site's #2B2B2B accents */
.intro-bubble {
  background: #2B2B2B;
  color: #FFFFFF;
  border-color: #2B2B2B;
}

/* Yellow = the logo's golden yellow. Large highlights under big text use the lighter tint. */
:root {
  --label-yellow: #F7BC00;
  --highlight-yellow: color-mix(in srgb, #F7BC00 40%, #fff);
}
.sticky-label--yellow { background: var(--label-yellow); }

/* ============================================
   TYPE SYSTEM (2026-11-17): two typefaces only.
   - Archivo Black: display — page titles, hero, section titles, card titles, name.
   - DM Sans: everything else, including small labels (bold, uppercase, tracked).
   Space Mono and Caveat are retired; their variables now point at DM Sans so
   every existing label picks this up without per-rule edits.
   Archivo Black has a single weight: font-weight 400 + no synthesis, so the
   browser never fakes a bold.
   ============================================ */
:root {
  --font-display: 'Archivo Black', 'DM Sans', sans-serif;
  --font-mono: 'DM Sans', sans-serif;
  --font-hand: 'DM Sans', sans-serif;
}
.t-page-title,
.hero-statement-text,
.works-title,
.cta-heading,
.about-block-title,
.folder-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: -0.01em;
}
.hero-statement-text,
.t-page-title { text-wrap: balance; }

/* ============================================
   MOTION KIT (2026-11-17) — playful, but every piece respects reduced motion.
   1) wiggle: cards rock and lift on hover
   2) fade in / out: .fade-in content fades up on enter and back out on leave (js/main.js)
   3) spin: a slowly rotating badge
   ============================================ */
@keyframes mk-wiggle {
  0%   { transform: translateY(-4px) rotate(0deg); }
  25%  { transform: translateY(-4px) rotate(-1.6deg); }
  50%  { transform: translateY(-4px) rotate(1.2deg); }
  75%  { transform: translateY(-4px) rotate(-0.6deg); }
  100% { transform: translateY(-4px) rotate(0deg); }
}
@keyframes mk-idle-wiggle {
  0%, 86%, 100% { transform: rotate(-4deg); }
  89% { transform: rotate(3deg); }
  92% { transform: rotate(-6deg); }
  95% { transform: rotate(1deg); }
}
@keyframes mk-spin { to { transform: rotate(360deg); } }

.pg-card,
.more-card { transition: box-shadow 0.2s ease; }
.pg-card:hover,
.more-card:hover {
  animation: mk-wiggle 0.55s ease-out both;
  box-shadow: 7px 7px 0 #2B2B2B;
}

.fade-in {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fade-in.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .pg-card:hover, .more-card:hover { animation: none; }
  .fade-in, .fade-in.visible { opacity: 1; transform: none; transition: none; }
}

/* "YOU" cursor in the site palette: logo gold, ink outline, hard shadow (overrides the blue in style.css and the inline SVG fill) */
.figma-cursor .figma-cursor-arrow { filter: drop-shadow(2px 2px 0 #2B2B2B); }
.figma-cursor .figma-cursor-arrow path { fill: #F7BC00; stroke: #2B2B2B; stroke-width: 1.5px; stroke-linejoin: round; }
.figma-cursor .figma-cursor-chip {
  background: #F7BC00; color: #2B2B2B;
  border: 1.5px solid #2B2B2B; box-shadow: 2px 2px 0 #2B2B2B;
  font-family: var(--font-body); font-weight: 700; border-radius: 999px; padding: 4px 10px;
}

/* Mixed galleries: images and videos share one stage */
.lb-gallery [hidden] { display: none !important; }
.lb-gallery video { max-height: calc(100vh - 120px); width: min(1200px, 100%); }

/* Gallery captions: one or two sentences under each slide */
.lb-gallery img, .lb-gallery video { max-height: calc(100vh - 220px); }
.lb-caption {
  max-width: min(760px, 100%);
  margin: 6px 0 0;
  padding: 12px 18px;
  background: #fff;
  color: #2B2B2B;
  border: var(--border-width) solid #2B2B2B;
  border-radius: 12px;
  box-shadow: 4px 4px 0 #2B2B2B;
  font: 400 15px/1.5 var(--font-body);
  text-align: left;
}
@media (max-width: 640px) { .lb-caption { font-size: 14px; } .lb-gallery img, .lb-gallery video { max-height: calc(100vh - 300px); } }
@media (max-width: 640px) {
  .lb-nav--prev { left: calc(50% - 84px); }
  .lb-nav--next { right: calc(50% - 84px); }
}
