/* ========================================
   George Fletcher Portfolio
   ======================================== */

@font-face {
  font-family: 'Waldenburg';
  src: url('../fonts/Waldenburg-Fett.woff2') format('woff2'),
       url('../fonts/Waldenburg-Fett.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---- Image/video blur-to-sharp loading ---- */
img {
  filter: blur(20px);
  transition: filter 0.6s ease;
}
img.is-loaded {
  filter: blur(0);
}
.project-grid-item--video video,
.project-card video {
  filter: blur(20px);
  transition: filter 0.8s ease;
}
.project-grid-item--video video.is-loaded,
.project-card video.is-loaded {
  filter: blur(0);
}
/* Exclude animation clones and carousel from blur */
.flip-image img,
.flip-image video,
.img-carousel-item img,
.img-carousel-item video {
  filter: none !important;
  transition: filter 0s !important;
}
/* Prevent blur from bleeding outside rounded containers */
.project-card,
.project-grid-item,
.next-project-thumb,
.thumbstrip-card-img {
  isolation: isolate;
}

@property --show-case {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

@property --view-t {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

/* ---- Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --show-case: 0;
  --view-t: 0;
  --carousel-height: 34vh;
  --mini-height: 92px;
  transition: --show-case 1s cubic-bezier(0.76, 0, 0.24, 1);
}

body {
  font-family: 'Waldenburg', 'Arial Black', sans-serif;
  background-color: #F5F5F7;
  color: #1D1D1D;
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 800;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ---- Navigation ---- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: opacity 0.5s ease;
}
.nav.is-hidden {
  pointer-events: none;
  opacity: 0;
  opacity: 0;
}

.nav-left, .nav-center, .nav-right { display: flex; align-items: center; gap: 6px; }
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Nav pill — frosted glass style */
.nav-pill, .nav-name {
  font-size: 12px;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  color: rgba(30, 30, 30, 0.6);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  padding: 0 10px;
  height: 30px;
  display: flex;
  align-items: center;
  border-radius: 7px;
  border: none;
  box-shadow: 0 3px 30px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}
.nav-pill:hover, .nav-name:hover { background: rgba(255, 255, 255, 0.5); }

/* Center toggle — single pill with dimmed/active text */
/* Favicon dot */
.nav-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  flex-shrink: 0;
  overflow: hidden;
}
.nav-dot img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Time pill */
.nav-time {
  font-size: 12px;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  color: rgba(30, 30, 30, 0.6);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  padding: 0 10px;
  height: 30px;
  display: flex;
  align-items: center;
  border-radius: 7px;
  border: none;
  box-shadow: 0 3px 30px rgba(0,0,0,0.08);
}

/* ============================================
   HERO LAYER
   ============================================ */
.hero-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  padding: 58px 0 15px;
}

.hero {
  display: none;
}

/* ---- Projects Carousel ---- */
.projects-section {
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  pointer-events: auto;
  /* padding-top removed — view-t always 1 */
}

/* ---- Bottom Bar ---- */
.home-bottom {
  pointer-events: auto;
  position: relative;
  z-index: 5;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}
.home-bottom.is-hiding {
  opacity: 0;
  transform: translateY(8px);
}
.home-bottom-inner {
  width: 71vw;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 0;
}
.home-bottom-left {
  flex: 1;
  min-width: 0;
}
.home-project-name-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.home-project-name {
  font-size: 13px;
  color: #757576;
  letter-spacing: -0.02em;
  line-height: 1.09;
}
.home-project-tags {
  display: flex;
  gap: 4px;
  align-items: baseline;
}
.home-project-tag {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  color: #ABABAB;
  background: #EAEAEA;
  border: none;
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
  position: relative;
  top: -1px;
}
.home-project-desc {
  font-size: 13px;
  color: rgba(30, 30, 30, 0.4);
  letter-spacing: -0.02em;
  line-height: 1.09;
}
.home-view-btn {
  font-size: 12px;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #FFFFFF;
  background: #ABABAB;
  padding: 0 12px;
  height: 28px;
  display: flex;
  align-items: center;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.home-view-btn:hover { background: #9D9D9D; }

/* Fade out bio/socials in fullscreen */
.home-bottom-center,
.home-bottom-right {
  opacity: calc(1 - min(var(--view-t) * 3, 1));
}

.home-bottom-center { flex: 1; display: flex; justify-content: flex-end; padding-right: 20px; padding-left: 40px; }
.home-hero-text {
  font-size: 13px;
  color: rgba(30, 30, 30, 0.2);
  letter-spacing: -0.02em;
  line-height: 1.09;
  max-width: 500px;
  text-align: left;
}
.home-bottom-right {
  flex: 0 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: rgba(30, 30, 30, 0.2);
  letter-spacing: -0.02em;
  line-height: 1.09;
}

.projects-scroll {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.projects-track {
  display: flex;
  gap: 14px;
  height: 100%;
  align-items: center;
  will-change: transform;
  backface-visibility: hidden;
}

.project-card {
  flex: 0 0 auto;
  width: 71vw;
  height: 100%;
  transition: opacity 0.3s ease;
  z-index: 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  will-change: transform, margin, opacity;
}
.project-card:hover {
  opacity: 1 !important;
}
.project-card img,
.project-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Coming Soon */
.coming-soon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  border-radius: inherit;
}
.coming-soon-overlay span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.project-card.is-coming-soon { cursor: default; }
.thumbstrip-card.is-coming-soon { opacity: 0.25 !important; cursor: default; }

/* Card name overlay — hidden */
.project-card-name {
  display: none;
}

/* ---- Fullscreen View Mode ---- */
.home-bottom-center,
.home-bottom-right {
  opacity: calc(1 - min(var(--view-t) * 3, 1));
}

.project-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.project-card-text {
  flex: 1;
  min-width: 0;
  mix-blend-mode: plus-lighter;
}
.project-card-title {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.project-card-desc {
  font-size: 10px;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.project-card-btn {
  display: inline-block;
  font-size: 10px;
  color: #1D1D1D;
  background: #FEFEFE;
  padding: 0 10px;
  height: 24px;
  line-height: 24px;
  border-radius: 6px;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  transition: box-shadow 0.3s ease;
  pointer-events: auto;
  flex-shrink: 0;
}
.project-card-btn:hover { box-shadow: 0 2px 20px rgba(0,0,0,0.25); }
/* Only show card overlay on homepage (full size), not on mini thumbnails */
.project-card.is-hovered .project-card-overlay {
  opacity: 1;
  transition: opacity 0.35s ease 0.25s;
}
.projects-track.is-project-view .project-card .project-card-overlay {
  display: none;
}

/* ---- Project preview overlay (blurred hero + name on thumbnail hover) ---- */
.project-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  background: #000;
  transition: opacity 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  overflow: hidden;
}
.project-preview-overlay.is-active {
  opacity: 1;
}
.project-preview-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  filter: blur(30px) brightness(0.5) saturate(1.1);
  transition: opacity 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}
.project-preview-info {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  mix-blend-mode: plus-lighter;
}
.project-preview-name {
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 800;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.06em;
  line-height: 0.95;
}
.project-preview-desc {
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 800;
  color: rgba(255,255,255,0.45);
  letter-spacing: -0.06em;
  line-height: 0.95;
  margin-top: 6px;
  max-width: 600px;
}

/* ---- Image Carousel Overlay ---- */
.img-carousel-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
}
.img-carousel-overlay.is-active {
  pointer-events: auto;
}
.img-carousel-bg {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(80px) saturate(1.4);
  -webkit-backdrop-filter: blur(80px) saturate(1.4);
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.9s ease;
}
.img-carousel-overlay.is-active .img-carousel-bg {
  opacity: 1;
}
.img-carousel-close {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 301;
  font-size: 12px;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: none;
  padding: 0 11px;
  height: 30px;
  display: flex;
  align-items: center;
  border-radius: 7px;
  cursor: pointer;
  opacity: 0;
  transition: background 0.3s ease, opacity 0.3s ease;
}
.img-carousel-overlay.is-active .img-carousel-close {
  opacity: 1;
  transition: background 0.3s ease, opacity 0.5s ease 0.15s;
}
.img-carousel-close:hover { background: rgba(255, 255, 255, 0.25); }
.img-carousel-track {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
}
.img-carousel-overlay.is-active .img-carousel-track {
  opacity: 1;
  transition: opacity 0.9s ease;
}
.img-carousel-item {
  flex: 0 0 auto;
  height: calc(100vh - 140px);
  border-radius: 6px;
  overflow: hidden;
  transition: opacity 0.5s ease;
  will-change: opacity;
}
.img-carousel-item.is-center {
  opacity: 1;
}
.img-carousel-item:not(.is-center) {
  opacity: 0.65;
}
.img-carousel-item img,
.img-carousel-item video {
  display: block;
  height: 100%;
  width: auto;
  border: none;
}

/* ============================================
   PROJECT PAGE
   ============================================ */
.project-page {
  position: fixed;
  inset: 0;
  z-index: 3;
  background: transparent;
  pointer-events: none;
  visibility: hidden;
}
.project-page.is-active {
  pointer-events: auto;
  visibility: visible;
  background: transparent;
}

/* FLIP image — JS-animated, no CSS transitions */
.flip-image {
  position: fixed;
  z-index: 200;
  overflow: hidden;
}
.flip-image img,
.flip-image video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Thumbstrip animate out */
.project-thumbstrip {
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}
.project-thumbstrip.is-hiding {
  opacity: 0;
  transform: translateY(20px);
}
/* Close button — centered top, frosted glass pill */
.project-close {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 101;
  font-size: 12px;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  color: rgba(30, 30, 30, 0.6);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: none;
  padding: 0 11px;
  height: 30px;
  display: none;
  align-items: center;
  border-radius: 7px;
  box-shadow: 0 3px 30px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: background 0.3s ease;
}
.project-close:hover { background: rgba(255, 255, 255, 0.55); }
.project-close.is-visible {
  display: flex;
}

/* Ghost for project-to-project swipe */
/* ---- Apple TV Switcher ---- */
.switcher {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #111;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow: hidden;
}
.switcher.is-active {
  opacity: 1;
}
.switcher-track {
  display: flex;
  gap: 24px;
  padding: 0 50vw;
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
  align-items: center;
}
.switcher-card {
  flex: 0 0 auto;
  width: 70vw;
  border-radius: 6px;
  overflow: hidden;
  opacity: 0.4;
  transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.switcher-card.is-center {
  opacity: 1;
  transform: scale(1);
}
.switcher-card img {
  width: 100%;
  display: block;
}
.switcher-card-title {
  padding: 12px 16px;
  font-size: 14px;
  color: #fff;
  letter-spacing: -0.06em;
  line-height: 1;
  background: rgba(0,0,0,0.3);
}

.project-ghost {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  background: #F5F5F7;
  pointer-events: none;
  will-change: transform, opacity;
  overflow: hidden;
  transform-origin: center center;
}

/* ---- Hero image — with margins and rounded corners ---- */
.project-hero {
  padding: 0 15px;
  margin-top: 0;
  margin-bottom: 0;
}
.project-hero img,
.project-hero video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* ---- Text box — grey fill container below hero ---- */
.project-text-box {
  position: relative;
  margin: 15px;
  padding: 15px;
  border: none;
  border-radius: 6px;
  background: #EFEFEF;
}

/* Read More — solid grey pill, top-right of box */
.read-more-trigger {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 13px;
  color: #888888;
  background: #DCDCDC;
  border: none;
  padding: 0 14px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 28px;
  transition: background 0.3s ease;
  white-space: nowrap;
}
.read-more-trigger:hover { background: #D0D0D0; }

/* Description */
.project-description {
  font-size: 28px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #1D1D1D;
  max-width: 80%;
}

/* Secondary description — continues as same text block */
.project-description-secondary {
  font-size: 28px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #1D1D1D;
  max-width: 80%;
  margin-top: 0.95em;
}

/* Meta — below description */
.project-meta {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.project-meta-item {
  font-size: 13px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.project-meta-label { color: #9D9D9D; }
.project-meta-value { color: #1D1D1D; }


/* ---- Project scroll wrapper ---- */
.project-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  height: 100vh;
  padding-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-y: none;
  will-change: transform;
  background: #F5F5F7;
  position: relative;
  overflow-anchor: none;
}
.project-scroll::-webkit-scrollbar {
  display: none;
}
.project-scroll-inner {
  background: #F5F5F7;
  border-radius: 0 0 14px 14px;
  box-shadow: none;
  padding-top: 15px;
  margin-bottom: 15px;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  contain: layout style paint;
  transition: transform 0.12s ease-out, border-radius 0.12s ease-out;
}

/* ---- Image Grids — 15px side margins ---- */
.project-images {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 15px;
}
.project-grid {
  display: grid;
  gap: 14px;
}
.project-grid--two-col {
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
}
.project-grid--full { grid-template-columns: 1fr; }
.project-grid--one-two-right {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.project-grid--one-two-right .project-grid-item:first-child {
  grid-row: 1 / 3;
}
.project-grid--two-left-one {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.project-grid--two-left-one .project-grid-item:last-child {
  grid-row: 1 / 3;
}
.project-grid img,
.project-grid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}
.project-grid-item {
  overflow: hidden;
  line-height: 0;
  border-radius: 6px;
}
.project-grid-item--video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
}
.project-grid--two-col .project-grid-item--video {
  padding-bottom: 113.68%; /* 950:1080 portrait ratio */
}
.project-grid-item--video iframe,
.project-grid-item--video video {
  position: absolute;
  top: -3px;
  left: -3px;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  border: 0;
  object-fit: cover;
  border-radius: 0;
}

/* ---- Next Project Footer ---- */
.next-project {
  padding: 30px 0 100px 30px;
}
.next-project-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
}
.next-project-text {
  display: flex;
  flex-direction: column;
}
.next-project-label {
  font-size: 42px;
  font-weight: 800;
  color: #1D1D1D;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.next-project-name {
  font-size: 42px;
  font-weight: 800;
  color: #C0C0C0;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.next-project-thumb {
  width: 200px;
  height: 140px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.next-project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Back to Projects ---- */
.back-to-projects {
  padding: 40px 15px 15px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  position: relative;
  z-index: 51;
  letter-spacing: -0.02em;
  line-height: 1;
  color: rgba(30, 30, 30, 0.4);
  text-align: center;
}
.back-to-projects:hover {
  color: #757576;
  transition: opacity 0.2s ease;
}

/* ---- Fixed Thumbnail Strip ---- */
.project-thumbstrip {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 35px 15px 15px;
  display: flex;
  gap: 8px;
  z-index: 50;
  align-items: flex-end;
  transition: opacity 0.3s ease;
  overscroll-behavior: none;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.project-thumbstrip::-webkit-scrollbar { display: none; }
.thumbstrip-card {
  width: var(--dock-w, 110px);
  height: var(--dock-h, 70px);
  border-radius: 6px;
  overflow: visible;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: opacity 0.6s cubic-bezier(0.76, 0, 0.24, 1),
              transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
  opacity: 0;
  transform: translateY(10px);
}
.thumbstrip-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.thumbstrip-card-img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}
.thumbstrip-card.is-visible:hover .thumbstrip-card-img {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.thumbstrip-card img,
.thumbstrip-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumbstrip-card.is-visible {
  transition: opacity 0.4s ease,
              transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}
.thumbstrip-card.is-visible:not(.is-current) {
  opacity: 0.45;
}
.thumbstrip-card.is-visible:not(.is-current):hover {
  opacity: 1;
}
.thumbstrip-name {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  color: rgba(30, 30, 30, 0.6);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  padding: 0 10px;
  height: 24px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.thumbstrip-card:hover .thumbstrip-name {
  opacity: 1;
}

/* ---- Read More Modal ---- */
.read-more-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.read-more-overlay.active { pointer-events: auto; }

.read-more-bg {
  position: absolute;
  inset: 0;
  background: rgba(200, 200, 200, 0.15);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.read-more-overlay.active .read-more-bg {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.read-more-card {
  position: relative;
  background: #fff;
  border-radius: 6px;
  max-width: 680px;
  width: 45%;
  height: 420px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.3s ease;
}
.read-more-overlay.active .read-more-card {
  transform: translateY(0) scale(1);
  opacity: 1;
  transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1), opacity 0.35s ease;
}

.read-more-top {
  position: relative;
  flex-shrink: 0;
}
.read-more-meta {
  font-size: 13px;
  color: #9D9D9D;
  display: flex;
  gap: 0px 16px;
  flex-wrap: wrap;
  letter-spacing: -0.02em;
  line-height: 1.15;
  padding-right: 70px;
}
.read-more-meta > span:nth-child(1),
.read-more-meta > span:nth-child(2) {
  white-space: nowrap;
}
.read-more-meta strong { color: #1D1D1D; }
.read-more-close {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 11px;
  color: rgba(30, 30, 30, 0.4);
  background: rgba(0,0,0,0.06);
  border: none;
  padding: 0 10px;
  height: 26px;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 26px;
  transition: background 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.read-more-close:hover { background: rgba(0,0,0,0.1); }
.read-more-body {
  flex: 1;
  overflow-y: auto;
  position: relative;
  mask-image: linear-gradient(to bottom, black 0%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 100%);
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.read-more-body::before {
  content: '';
  min-height: 100px;
  flex-shrink: 0;
}
.read-more-body::-webkit-scrollbar {
  display: none;
}
.read-more-text {
  font-size: 21px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #C0C0C0;
  margin-bottom: 0.95em;
  margin-right: 40px;
}
.read-more-text:last-child {
  margin-bottom: 0;
}
.read-more-text strong {
  color: #1D1D1D;
}

.read-more-text a {
  color: #C0C0C0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}
.read-more-text a:hover {
  opacity: 0.5;
}

/* ---- Info Overlay ---- */
.info-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.info-overlay.active { pointer-events: auto; }

.info-bg {
  position: absolute;
  inset: 0;
  background: rgba(200, 200, 200, 0.15);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.info-overlay.active .info-bg {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.info-card {
  position: relative;
  background: #fff;
  border-radius: 6px;
  max-width: 680px;
  width: 45%;
  height: 420px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.3s ease;
}
.info-overlay.active .info-card {
  transform: translateY(0) scale(1);
  opacity: 1;
  transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1), opacity 0.35s ease;
}

.info-top {
  display: flex;
  gap: 20px;
  flex: 1;
}
.info-content {
  flex: 1;
}
.info-section {
  margin-bottom: 14px;
}
.info-heading {
  font-size: 17px;
  font-weight: 800;
  color: #1D1D1D;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.info-text {
  font-size: 17px;
  font-weight: 800;
  color: #C0C0C0;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.info-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}
.info-close {
  font-size: 11px;
  color: rgba(30, 30, 30, 0.4);
  background: rgba(0,0,0,0.06);
  border: none;
  padding: 0 10px;
  height: 26px;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 26px;
  transition: background 0.3s ease;
  white-space: nowrap;
}
.info-close:hover { background: rgba(0,0,0,0.1); }
.info-photo {
  width: 180px;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: -15px;
  flex-shrink: 0;
}
.info-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.info-footer {
  margin-top: auto;
}
.info-address {
  font-size: 13px;
  font-weight: 800;
  color: #9D9D9D;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ============================================
   PLAYGROUND PAGE
   ============================================ */
.playground {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  overflow: hidden;
  background: #F5F5F7;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.8s ease;
}
.playground.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.playground-scroll {
  position: absolute;
  inset: 0;
}

.pg-card {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  transform-origin: center top;
  border-radius: 6px;
  overflow: hidden;
  will-change: transform;
}
.pg-card img {
  width: 100%;
  display: block;
}

/* Label — left margin, vertically centered */
.pg-label {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
  align-items: baseline;
  pointer-events: none;
}
.pg-label-title {
  font-size: 13px;
  font-weight: 800;
  color: #1D1D1D;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.pg-label-subtitle {
  font-size: 13px;
  font-weight: 800;
  color: #9D9D9D;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Hide mobile-only elements on desktop */
.nav-mobile-menu { display: none; }
.mobile-menu-overlay { display: none; }
.project-card-mobile-label { display: none; }

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 1200px) {

  /* ---- Nav ---- */
  .nav {
    padding: 10px;
    justify-content: space-between;
  }
  .nav-right { display: none; }
  .nav-center { display: none; }
  .nav-desktop-only { display: flex; }
  .nav-left {
    gap: 4px;
    width: 100%;
  }
  #nav-info { margin-left: auto; }

  /* ---- Mobile Menu Dropdown — hidden ---- */
  .mobile-menu-overlay { display: none !important; }
  .nav-left { gap: 4px; }
  .nav-pill, .nav-name {
    font-size: 10px;
    height: 26px;
    padding: 0 9px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  }

  /* ---- Mobile Menu Button — hidden ---- */
  .nav-mobile-menu { display: none !important; }

  /* ---- Mobile Menu Dropdown ---- */
  .mobile-menu-overlay {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 98;
    pointer-events: none;
    display: block !important;
  }
  .mobile-menu-bg {
    display: none;
  }
  .mobile-menu-items {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
    padding-top: 32px;
    opacity: 0;
    transform: translateY(-6px) scale(0.95);
    transform-origin: top right;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.2, 0, 0, 1);
    pointer-events: none;
  }
  .mobile-menu-overlay.is-active .mobile-menu-items {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .mobile-menu-link {
    font-size: 10px;
    font-family: inherit;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: rgba(30, 30, 30, 0.6);
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    padding: 0 9px;
    height: 26px;
    display: flex;
    align-items: center;
    border-radius: 7px;
    text-decoration: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  }

  /* ---- Home — Vertical Scroll ---- */
  .hero-layer {
    position: fixed;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
    padding-top: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .hero-layer::-webkit-scrollbar {
    display: none;
  }
  .projects-section {
    height: auto;
    min-height: auto;
    flex: none;
  }
  .projects-scroll {
    height: auto;
    overflow: visible;
  }
  .projects-track {
    flex-direction: column;
    align-items: center;
    gap: 0;
    height: auto;
    padding: 46px 0 10px;
    transform: none !important;
  }
  .project-card {
    width: calc(100vw - 20px);
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-shrink: 0;
    overflow: visible;
    opacity: 1 !important;
    transition: none;
  }
  .project-card img,
  .project-card video {
    height: auto;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
  }

  /* ---- Mobile Card Label — below the image ---- */
  .project-card-mobile-label {
    position: relative;
    padding: 14px 0 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .mobile-card-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .project-card-mobile-label .mobile-card-title {
    font-size: 10px;
    font-weight: 800;
    color: rgba(30, 30, 30, 0.6);
    letter-spacing: -0.02em;
    line-height: 1.15;
  }
  .mobile-card-copy {
    flex: 1;
    min-width: 0;
  }
  .project-card-mobile-label .mobile-card-desc {
    font-size: 10px;
    font-weight: 800;
    color: rgba(30, 30, 30, 0.3);
    letter-spacing: -0.02em;
    line-height: 1.2;
  }
  .project-card-mobile-label .mobile-card-btn {
    font-size: 9px;
    font-family: inherit;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: rgba(30, 30, 30, 0.6);
    background: rgba(0, 0, 0, 0.06);
    padding: 0 9px;
    height: 22px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* ---- Bottom Bar — hide on mobile ---- */
  .home-bottom { display: none; }

  /* ---- Project Page ---- */
  .project-page {
    background: #F5F5F7;
  }
  .project-scroll {
    will-change: auto;
    overscroll-behavior-y: auto;
  }
  .project-hero { padding: 0 10px; }
  .project-hero img,
  .project-hero video { border-radius: 6px; }
  .project-text-box {
    margin: 10px;
    padding: 14px;
  }
  .project-description {
    font-size: 22px;
    max-width: 100%;
  }
  .project-description-secondary {
    font-size: 22px;
    max-width: 100%;
    margin-top: 0.95em;
    margin-bottom: 30px;
  }
  /* Read More — bottom-right of text box */
  .read-more-trigger {
    position: absolute;
    bottom: 14px;
    right: 14px;
    top: auto;
    font-size: 9px;
    height: 22px;
    padding: 0 9px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    line-height: 1;
  }
  /* Meta — client+year on one line, services below */
  .project-meta {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0px 10px;
    padding-right: 90px;
  }
  .project-meta-item {
    font-size: 10px;
    line-height: 1.05;
    letter-spacing: -0.02em;
  }
  .project-meta-item:last-child {
    flex-basis: 100%;
  }
  .project-images {
    padding: 0 10px;
    gap: 10px;
  }
  .project-grid { gap: 10px; }
  .project-grid--two-col { grid-template-columns: 1fr; }
  .project-grid-item--video {
    padding-bottom: 56.25%; /* 16:9 for all videos on mobile single-column */
  }
  .project-grid--one-two-right {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .project-grid--one-two-right .project-grid-item:first-child {
    grid-row: auto;
  }
  .project-grid--two-left-one {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .project-grid--two-left-one .project-grid-item:last-child {
    grid-row: auto;
  }
  .project-grid img,
  .project-grid video { border-radius: 6px; }
  .project-scroll-inner {
    border-radius: 0 0 15px 15px;
    padding-top: 10px;
    will-change: auto;
    transform: none;
    backface-visibility: visible;
  }

  /* ---- Close / Nav buttons on project ---- */
  .project-close {
    top: 10px;
    font-size: 9px;
    height: 22px;
    padding: 0 9px;
    border-radius: 6px;
  }
  .img-carousel-close {
    top: 10px;
    font-size: 10px;
    height: 24px;
    padding: 0 8px;
  }
  .img-carousel-item {
    height: auto;
    max-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
  }
  .img-carousel-item img,
  .img-carousel-item video {
    height: auto;
    width: auto;
    max-height: calc(100vh - 100px);
    max-width: calc(100vw - 20px);
    object-fit: contain;
  }

  /* ---- Back to Projects ---- */
  .back-to-projects {
    font-size: 13px;
    letter-spacing: -0.02em;
    line-height: 1.05;
    padding: 60px 10px 110px;
    margin-top: 0;
    min-height: 44px;
    text-align: center;
  }

  /* ---- Thumbstrip — mobile ---- */
  .project-thumbstrip {
    padding: 10px;
    gap: 3px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    pointer-events: auto;
  }
  .project-thumbstrip .thumbstrip-card { pointer-events: auto; }
  .project-thumbstrip::-webkit-scrollbar { display: none; }
  .thumbstrip-card {
    --dock-w: 60px !important;
    --dock-h: 75px !important;
    border-radius: 5px;
  }
  .thumbstrip-card-img { border-radius: 6px; }
  .thumbstrip-card.is-visible:not(.is-current) {
    opacity: 0.4;
  }
  .thumbstrip-name { display: none; }

  /* ---- Next Project ---- */
  .next-project { padding: 20px 10px 10px; }
  .next-project-inner {
    justify-content: space-between;
  }
  .next-project-label { font-size: 28px; }
  .next-project-name { font-size: 28px; }
  .next-project-thumb {
    width: 140px;
    height: 100px;
    border-radius: 8px;
  }

  /* ---- Read More ---- */
  .read-more-card {
    width: 85%;
    max-width: none;
    height: 60vh;
    padding: 14px !important;
    border-radius: 6px;
  }
  .read-more-top {
    align-items: flex-start;
  }
  .read-more-meta {
    font-size: 10px !important;
    gap: 0px 10px !important;
    flex-wrap: wrap !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
    color: #9D9D9D;
  }
  .read-more-meta span:nth-child(3) {
    flex-basis: 100%;
    margin-top: 0;
  }
  .read-more-close {
    font-size: 9px !important;
    height: 22px !important;
    padding: 0 9px !important;
    border-radius: 6px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
  }
  .read-more-text {
    font-size: 18px;
    margin-right: 10px;
  }
  .read-more-text strong {
    font-size: 18px;
  }
  .read-more-body {
    padding-top: 60px;
    padding-bottom: 20px;
    min-height: 0;
    flex: 1 1 auto;
  }

  /* ---- Info ---- */
  .info-card {
    width: 85%;
    max-width: none;
    height: auto;
    padding: 14px;
    border-radius: 6px;
    overflow: visible;
  }
  .info-heading {
    font-size: 18px;
    line-height: 0.95;
    letter-spacing: -0.04em;
  }
  .info-text {
    font-size: 18px;
    line-height: 0.95;
    letter-spacing: -0.04em;
  }
  .info-section { margin-bottom: 10px; }
  .info-top {
    flex-direction: row;
    gap: 10px;
    flex: 1;
  }
  .info-right {
    justify-content: space-between;
    gap: 0;
  }
  .info-photo {
    display: none;
  }
  .info-close {
    font-size: 9px !important;
    height: 22px !important;
    padding: 0 9px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 6px !important;
  }
  .info-footer {
    padding-right: 0;
    margin-top: 14px;
  }
  .info-address {
    font-size: 10px;
    white-space: normal;
    letter-spacing: -0.02em;
    font-weight: 800;
    line-height: 1.05;
  }

  /* ---- Playground ---- */
  .playground-scroll { padding: 0 10px; }
  .pg-label {
    position: fixed;
    left: 10px;
    top: auto;
    bottom: 10px;
    transform: none;
  }
  .pg-label-title {
    font-size: 10px !important;
    letter-spacing: -0.01em;
    color: #1D1D1D;
    mix-blend-mode: difference;
  }
  .pg-label-subtitle {
    font-size: 10px !important;
    letter-spacing: -0.01em;
    color: #9D9D9D;
    mix-blend-mode: difference;
  }

  /* ---- Coming Soon ---- */
  .coming-soon-overlay span { font-size: 10px; }
}
