/* style.css */

/* Reset */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

/* LOCK THE VIEWPORT */
body {
  overflow: hidden;
  background: #ffffff;
}

/* optional cursor affordance for anything clickable */
.sfx-click { cursor: pointer; }

/* Page layout (never moves) */
.page {
  height: 100vh;
  display: grid;
  justify-items: center;
  align-content: start;
  padding-top: 120px;
}

/* Two-column system */
.blocks {
  display: grid;
  grid-template-columns: auto auto;
  gap: 12px;

  will-change: transform;
  transform: translate3d(0,0,0);
}

/* Stack used to place link below video while keeping 2-col layout */
.video-stack {
  display: grid;
  justify-items: start; /* aligns to the video block's left edge */
}

/* Blocks */
.block-wrapper { position: relative; will-change: transform; }

.block {
  width: 400px;
  height: 380px;
  aspect-ratio: 16 / 9;

  background: #b88686;
  color: #fff;

  display: grid;
  place-items: center;
}

/* Hover scale */
.block-wrapper .block {
  transition: transform 180ms ease;
  transform: translateZ(0);
}
.block-wrapper:hover .block { transform: scale(1.04); }
.block-wrapper:hover { z-index: 10; }

/* Decorative bars */
.slim-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 14px;
  background: #000;
}
.slim-bar--top { top: -22px; }
.slim-bar--bottom { bottom: -22px; }

/* TOP slimbar text */
.slim-bar--text {
  height: auto;
  min-height: 14px;
  background: #fff;

  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 12px;
  gap: 2px;

  top: -64px;
}

.slimbar-line {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.25;

  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.slimbar-line--meta {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
}

/* Bottom caption */
.slim-bar--caption {
  height: auto;
  min-height: 14px;
  background: #fff;

  display: flex;
  align-items: center;
  padding: 6px 12px;

  bottom: -2px;
}

.figure-caption {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: #000;
  max-width: 100%;
}
.figure-label { font-weight: 700; }

/* IMAGE TILE */
.block--image {
  position: relative;
  overflow: hidden;
  background: #000;
}
.block--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Color dodge on hover (image tile only) */
.block--image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.35);
  mix-blend-mode: color-dodge;
  opacity: 0;
  transition: opacity 180ms ease;
}
.block-wrapper:hover .block--image::after { opacity: 1; }
.block-wrapper:hover .block--image img {
  filter: contrast(1.08) saturate(1.08) brightness(1.03);
  transition: filter 180ms ease;
}

/* VIDEO TILE */
.block--video {
  position: relative;
  overflow: hidden;
  background: #000;
  transform-style: preserve-3d;
}

/* ✅ Deep blackout gradient for UI legibility */
.block--video::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 60%;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.985) 0%,
    rgba(0, 0, 0, 0.95) 22%,
    rgba(0, 0, 0, 0.85) 40%,
    rgba(0, 0, 0, 0.55) 60%,
    rgba(0, 0, 0, 0.0) 100%
  );

  pointer-events: none;
  z-index: 3;
}

.video-player {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Fill the square */
.video-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* Transparent so decode gaps don't paint black */
  background: transparent;
}

/* Video overlay UI */
.video-ui {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;

  z-index: 5;
  pointer-events: none;
}

.video-ui__left {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.65);
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(6px);
}

.channel-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.65);
  background: rgba(255,255,255,0.9);
}
.channel-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.channel-meta { display: flex; flex-direction: column; line-height: 1.1; }

.channel-title {
  font-family: Inter, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.channel-desc {
  font-family: Inter, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

/* ✅ Mute toggle — minimal icon only */
.mute-toggle {
  pointer-events: auto;

  background: none;
  border: none;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  user-select: none;
}

.mute-toggle__icon {
  font-size: 14px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0,0,0,0.85);
  transition: transform 140ms ease, opacity 140ms ease;
}

.mute-toggle:hover .mute-toggle__icon {
  opacity: 1;
  transform: scale(1.05);
}

.mute-toggle:active .mute-toggle__icon {
  transform: scale(0.95);
}

/* Hide the text visually (keep for accessibility) */
.mute-toggle__text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ✅ Full collection link (below video) */
.video-collection-link {
  margin-top: 10px;
  margin-bottom: 10px;
  width: 400px;           /* matches the video block width */
  text-align: center;

  font-family: Inter, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  color: rgba(0, 0, 0, 0.65);
  text-decoration: none;
  user-select: none;

  transition: color 160ms ease, transform 160ms ease;
}
.video-collection-link:hover {
  color: #000;
  transform: translateY(-1px);
}
.video-collection-link:active {
  transform: translateY(0);
}

/* ✅ Tagline below collection link */
.video-tagline {
  margin-top: 6px;
  width: 400px;          /* matches video width */
  text-align: center;

  font-family: Inter, Helvetica Neue, Helvetica, Arial, sans-serif;
  user-select: none;
}

.video-tagline__name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #000;
}

.video-tagline__role {
  display: block;
  margin-top: 1px;

  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  color: rgba(0, 0, 0, 0.6);
}
/* Footer links */
.footer-links {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: right;
  gap: 16px;
  padding-right: 20px;
}

.footer-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  opacity: 0.75;
  transition: opacity 140ms ease, transform 140ms ease;
}

.footer-icon svg {
  width: 100%;
  height: 100%;
  fill: #ffffff;
}

.footer-icon:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-icon:active {
  transform: translateY(0);
}

/* Page indicator (top-right) */
.corner-square{
  position: fixed;
  top: 24px;
  right: 24px;

  width: 64px;
  aspect-ratio: 1 / 1;

  background: #fff;
  border: 1.5px solid #000;
  border-radius: 8px;
  color: #000;

  display: grid;
  place-items: center;
  z-index: 40;

  perspective: 900px;
}
.corner-square .page-num{
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;

  font-family: Inter, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;

  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

/* Footer */
.site-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 28px;
  background: #000;
  z-index: 30;
}

/* Blue panel */
.blue-panel {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 75vh;
  background: #0037fd;
  z-index: 20;
  will-change: transform;
}

/* ===========================
   PINK PANEL CONTENT
=========================== */

.pink-panel-content {
  padding: 56px 60px;
  color: #ffffff;
  stroke: #000;
  stroke-width: 2px;
  font-family: Inter, Helvetica Neue, Helvetica, Arial, sans-serif;
}

/* Section spacing */
.panel-section {
  margin-bottom: 40px;
}

/* Section titles */
.panel-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0.95;
}

/* ===========================
   TEXT-ONLY CLIENT GRID
=========================== */

.text-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 36px;
}

/* keep your existing text look */
.text-grid span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
  white-space: nowrap;
}

/* logo placeholders (120 x 100) inline with text */
.text-grid .client-logo {
  width: 100px;
  height: 60px;
  object-fit: contain;
  display: inline-block;

  background: rgba(255, 255, 255, 0);
  border-radius: 6px;
  padding: 8px;

  filter: grayscale(100%) contrast(1.05);
  opacity: 0.9;

  transition: opacity 160ms ease, transform 160ms ease;
}

.text-grid .client-logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* ===========================
   LOGO GRID (PLACEHOLDERS)
=========================== */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px 36px;
  align-items: center;
}

.logo-grid img {
  width: 80px;
  height: 50px;
  object-fit: contain;

  background: rgba(255, 255, 255, 0.15); /* subtle placeholder frame */
  border-radius: 6px;
  padding: 8px;

  filter: grayscale(100%) contrast(1.05);
  opacity: 0.9;

  transition: opacity 160ms ease, transform 160ms ease;
}

.logo-grid img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.text-grid span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
  white-space: nowrap;
}

/* ===========================
   SPEC GRID
=========================== */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.spec-col h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.spec-col p,
.spec-col li {
  font-size: 11px;
  line-height: 1.65;
  opacity: 0.9;
}

.spec-col ul {
  padding-left: 14px;
  margin: 8px 0 18px;
}

.spec-col li {
  list-style-type: square;
}

.spec-note {
  opacity: 0.65;
  margin-top: 10px;
}

/* ===========================
   RESPONSIVE SAFETY
=========================== */

@media (max-width: 1100px) {
  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .pink-panel-content {
    padding: 40px 24px;
  }
}
/* ===========================
   RESET + BASE
=========================== */

* { box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #ffffff;
  font-family: Inter, Helvetica Neue, Helvetica, Arial, sans-serif;
}

.sfx-click { cursor: pointer; }

/* ==========================================================
   COLLECTION PAGE OVERRIDES (SAFE)
   Paste at the very bottom of style.css
========================================================== */

body.collection-page .collection-wrap {
  width: 100vw;
  height: 100vh;
  display: block;
  overflow: hidden;
}

body.collection-page .collection-inner {
  width: 100vw;
  height: 100vh;
  display: block;
}

/* Remove header spacing impact if header still exists */
body.collection-page .collection-header {
  display: none !important;
}

/* Full viewport strip */
body.collection-page .collection-strip {
  width: 100vw;
  height: 100vh;
  display: flex;
  gap: 0;
  overflow: hidden;
  position: relative;
  background-color: #000;
}

/* Ensure tiles are full height and cover */
body.collection-page .collection-tile {
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: width, transform, opacity;
  background-color: #000;
}

/* Top + bottom gradient vignette for readability */
/* Stronger top + bottom vignette for text contrast */
body.collection-page .collection-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.78) 18%,
      rgba(0, 0, 0, 0.45) 38%,
      rgba(0, 0, 0, 0.0) 60%
    ),
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.78) 18%,
      rgba(0, 0, 0, 0.45) 38%,
      rgba(0, 0, 0, 0.0) 60%
    );
}


/* Keep your active dim overlay above vignette */
body.collection-page .collection-tile::after {
  z-index: 2;
}

/* Title above both overlays */
body.collection-page .collection-title {
  z-index: 3;
}


/* ===========================
   DETAIL VIEW (FULLSCREEN)
=========================== */

.collection-detail {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 999;

  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.collection-detail.is-open {
  pointer-events: auto;
}

.detail-exit {
  position: absolute;
  top: 22px;
  left: 22px;

  background: rgba(0,0,0,0.88);
  color: #fff;
  border: 0;
  padding: 10px 12px;
  border-radius: 10px;

  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 11px;
  cursor: pointer;
  z-index: 1002;
}

.detail-inner {
  width: min(980px, 88vw);
  height: 100vh;
  margin: 0 auto;

  display: grid;
  grid-template-rows: auto auto 1fr;
  row-gap: 18px;

  padding: clamp(26px, 5vh, 56px) 0;
}

.detail-heading {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #111;
}

.detail-video {
  width: 100%;
  height: min(48vh, 420px);
  border-radius: 14px;
  overflow: hidden;
}

.detail-video-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.18em;
  font-size: 12px;
}

.detail-writeup {
  border-radius: 14px;
  background: #f3f3f3;
  padding: 16px;
  overflow: auto;
  color: #111;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

/* ===========================
   RESPONSIVE SAFETY
=========================== */

@media (max-width: 900px) {
  .collection-strip {
    height: 50vh;
  }
}
/* ==========================================================
   COLLECTION COVER IMAGES
========================================================== */

body.collection-page .collection-tile.t1 {
  background-image: url("/assets/thumbs/20250318_Blockworks_DAS25_185-scaled.png");
}

body.collection-page .collection-tile.t2 {
  background-image: url("/assets/thumbs/MamaBear_Thumb.png");
}

body.collection-page .collection-tile.t3 {
  background-image: url("/assets/thumbs/simu-liu-power-of-the-possible-hero.jpg");
}

body.collection-page .collection-tile.t4 {
  background-image: url("/assets/thumbs/Western_BasketBall.png");
}
/* ==========================================================
   COLLECTION COVER TITLES — CENTERED & ENHANCED
========================================================== */

body.collection-page .collection-title {
  /* Center dead-middle */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  /* Typography */
  color: #ffffff;
  font-size: 14px; /* +10px from previous ~13px */
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;

  /* Visibility */
  opacity: 0;
  transition: opacity 280ms ease, transform 280ms ease;
  z-index: 3;
}

/* Active tile shows title */
body.collection-page .collection-tile.is-active .collection-title {
  opacity: 1;
  transform: translate(-50%, -50%);
}
/* ==========================================================
   VERTICAL CENTERING FOR TALL SCREENS (>=700px height)
========================================================== */

@media (min-height: 700px) {
  .page {
    align-content: center;   /* vertical center */
    padding-top: 0;          /* remove top bias */
  }
}
/* ==========================
   VIDEO TAGLINE — RED ZONE
   Mirrors image slim-bar
========================== */

.video-tagline {
  font-family: Inter, Helvetica Neue, Helvetica, Arial, sans-serif;
  user-select: none;
}

.video-tagline__name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #000;
}

.video-tagline__role {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
}

/* === POSITIONING === */
.video-tagline--top {
  position: absolute;
  top: -64px;            /* EXACT slim-bar plane */
  right: 0;

  width: 100%;
  padding: 6px 12px;

  text-align: right;
  z-index: 12;
  pointer-events: none;
}
.video-tagline--top {
  position: absolute;
  top: -64px;         /* matches image slim-bar plane */
  right: 0;

  width: 100%;
  padding: 6px 12px;

  text-align: right;
  z-index: 12;
  pointer-events: none;
}
/* ==========================
   VIDEO TAGLINE — RED ZONE
========================== */

.video-tagline {
  font-family: Inter, Helvetica Neue, Helvetica, Arial, sans-serif;
  user-select: none;
}

.video-tagline__name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #000;
}

.video-tagline__role {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
}

.video-tagline--top {
  position: absolute;
  top: -64px;          /* same plane as image slim-bar */
  right: 0;

  width: 100%;
  padding: 6px 12px;

  text-align: right;
  z-index: 12;
  pointer-events: none;
}

/* ==========================
   VIDEO LINKS — BELOW TILE
========================== */

.video-links {
  margin-top: 10px;
  width: 400px;       /* exact video width */

  display: flex;
  flex-direction: column;
  gap: 6px;

  font-family: Inter, Helvetica Neue, Helvetica, Arial, sans-serif;
}

.video-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;

  color: rgba(0, 0, 0, 0.55);
  text-decoration: underline;

  transition: color 160ms ease, transform 160ms ease;
}

.video-link:hover {
  color: #000;
  transform: translateX(2px);
}

.video-link:active {
  transform: translateX(0);
}
/* ==========================================================
   GLOBAL FONT SYSTEM — IBM PLEX
   Paste at very bottom of style.css
========================================================== */

/* Base text */
html, body {
  font-family: "IBM Plex Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

/* UI + editorial text */
.slimbar-line,
.slimbar-line--meta,
.figure-caption,
.channel-title,
.channel-desc,
.video-tagline,
.video-tagline__name,
.video-tagline__role,
.video-link,
.text-grid span,
.spec-col p,
.spec-col li,
.detail-writeup {
  font-family: "IBM Plex Sans", sans-serif;
}

/* Precision / technical accents */
.page-num,
.figure-label,
.panel-title,
.spec-col h3,
.detail-exit {
  font-family: "IBM Plex Mono", monospace;
}

/* Weight normalization for Plex */
.slimbar-line,
.video-link,
.text-grid span {
  font-weight: 500;
}

/* Uppercase UI spacing tuned for IBM Plex */
.panel-title,
.spec-col h3,
.video-tagline__role,
.text-grid span {
  letter-spacing: 0.14em;
}
/* ==================================================
   VIEWPORT LOCK — ONLY BELOW 1080px
================================================== */

/* Default: completely disabled */
.viewport-lock {
  display: none;
}

/* Activate ONLY under 1080px */
@media (max-width: 1079px) {
  .viewport-lock {
    position: fixed;
    inset: 0;
    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 999999;
  }

  .viewport-lock__text {
    font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: #000;
    text-align: center;
  }

  /* Hide EVERYTHING else */
  body > *:not(.viewport-lock) {
    display: none !important;
  }
}
