/* ═══════════════════════════════════════════
   LacksVision — style.css
   ═══════════════════════════════════════════ */

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

:root {
  --bg:      #0a0a0a;
  --text:    #f0f0f0;
  --dim:     rgba(240,240,240,0.38);
  --faint:   rgba(240,240,240,0.12);
  --border:  rgba(240,240,240,0.09);
  --bar-h:   3.8rem;
  --pb-h:    2.4rem;
  --mono:    'Space Mono', ui-monospace, monospace;
  --sans:    'Space Grotesk', system-ui, sans-serif;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar { display: none; }

body {
  background: var(--bg);
  background-image:
    linear-gradient(var(--faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--faint) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
  background-repeat: repeat;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ── Grain ────────────────────────────────── */
#grain {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.038;
}

/* ══════════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  height: var(--bar-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* overflow:hidden removed — conflicts with backdrop-filter + mix-blend-mode
     causing sibling elements to vanish in Chromium */
  opacity: 0; /* JS reveals */
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-left: 0.75rem;
}

.topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: var(--bar-h);
}

.topbar-center-link {
  display: flex;
  align-items: center;
}

.topbar-logo {
  display: flex;
  align-items: center;
}

.topbar-logo img {
  display: block;
  height: var(--bar-h);
  width: auto;
  mix-blend-mode: screen;
}

.topbar-tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.75rem;
}

.topbar-link {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dim);
  cursor: pointer;
  transition: color 0.15s;
  white-space: nowrap;
}
.topbar-link:hover { color: var(--text); }

/* ── Hamburger toggle ─────────────────────
   Hidden on desktop; shown on mobile only.
─────────────────────────────────────────── */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  width: 22px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #ffffff;
  transition: transform 0.35s cubic-bezier(0.76, 0, 0.24, 1),
              opacity  0.2s ease;
  transform-origin: center;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ── Mobile full-screen menu ──────────────
   Covers the whole screen when open.
   Uses the same black background and mono
   type as the rest of the site.
─────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: calc(var(--bar-h) + 2.5rem) 1.6rem 2.5rem;
  will-change: transform, opacity;
  /* Hidden state */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-30px);
  transition: opacity 0.55s cubic-bezier(0.76, 0, 0.24, 1),
              transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Stagger nav links in */
.mm-link {
  font-family: var(--mono);
  font-size: clamp(2.6rem, 13vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  transform: translateY(14px);
  transition: color 0.15s,
              opacity  0.4s cubic-bezier(0.76, 0, 0.24, 1),
              transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}
.mobile-menu.open .mm-link:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.12s; }
.mobile-menu.open .mm-link:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.2s;  }
.mobile-menu.open .mm-link:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.28s; }


.mm-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 2.5rem;
}

.mm-link:hover { color: var(--dim); }

.mm-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 2rem;
}

.mm-contacts {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: 2rem;
}

.mm-contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mm-contact-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--fg);
}

.mm-contact-email {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--dim);
  transition: color 0.15s;
}

.mm-contact-email:hover { color: var(--fg); }

/* ── Responsive: show hamburger on mobile ─ */
@media (max-width: 767px) {
  .menu-toggle          { display: flex; }
  .topbar-link--desktop { display: none; }
}


/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--bar-h);
  overflow: hidden;
}

#heroParticles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-title-wrap {
  padding: 0 0.6rem;
  position: relative;
  z-index: 1;
}

.hero-sub {
  font-family: var(--mono);
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  line-height: 1.55;
  letter-spacing: 0.06em;
  color: var(--dim);
  text-transform: uppercase;
  max-width: 40em;
  margin-bottom: 0.6rem;
  opacity: 0;
}

.hero-title {
  font-family: var(--mono);
  font-size: clamp(5rem, 18vw, 19rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.87;
  text-transform: uppercase;
  /* push wrap bottom to include glyph overflow from line-height < 1 */
  padding-bottom: 0.07em;
  /* same clip-path reveal used for slide meta chars */
  clip-path: inset(0 0 100% 0);
  will-change: clip-path;
}

.hero-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem 0.8rem;
  border-top: 1px solid var(--border);
  margin-top: 0.7rem;
  opacity: 0;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.hero-scroll-arrow {
  font-size: 0.7rem;
  color: var(--dim);
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}
.hero-scroll-label,
.hero-year {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ══════════════════════════════════════════
   GALLERY — FULLSCREEN STICKY STACK
   ══════════════════════════════════════════ */

.gallery {
  position: relative;
  /* height injected by JS */
}

.gallery-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
}

.gallery-slide .slide-img img {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-slide:hover .slide-img img {
  transform: scale(1.03);
}

.gallery-slide:not([data-index="0"]) {
  clip-path: inset(100% 0 0 0);
}

/* Bottom gradient — ensures text is legible on any image */
.gallery-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.72) 0%,
    rgba(10,10,10,0.22) 28%,
    transparent 55%
  );
  pointer-events: none;
  z-index: 1;
}

.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 115%;
  top: -7.5%;
}

.slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.06);
  will-change: transform;
}

/* ── Slide meta — project name & year (middle-left) ── */
.slide-meta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 1.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.meta-title-wrap,
.meta-year-wrap {
  overflow: hidden;
  line-height: 1;
}

.meta-title {
  font-family: var(--mono);
  font-size: clamp(0.72rem, 1.1vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  display: block;
}

.meta-year {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  display: block;
}

/*
  .char-wrap  — inline overflow:hidden container per character
  .char-inner — the animating element; uses same clip-path direction
                as .hero-title so both feel like one design language
*/
.char-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
}

.char-inner {
  display: inline-block;
  /* same starting state as .hero-title — hidden below clip line */
  clip-path: inset(0 0 100% 0);
  will-change: clip-path;
}

/* ══════════════════════════════════════════
   PROGRESS BAR (fixed bottom)
   ══════════════════════════════════════════ */
.progress-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 600;
  height: var(--pb-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid var(--border);
  opacity: 0; /* JS reveals */
}

.pb-label,
.pb-counter {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.pb-track {
  position: relative;
  height: 1px;
  background: var(--faint);
}

.pb-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--text);
  will-change: width;
}

.pb-ticks {
  position: absolute;
  inset: 0;
  display: flex;
}

.pb-tick {
  flex: 1;
  height: 1px;
  border-right: 1px solid rgba(240,240,240,0.10);
}
.pb-tick:last-child { border-right: none; }

.pb-tick.is-active {
  border-right-color: rgba(240,240,240,0.35);
}

/* ══════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════ */
.about-section {
  border-top: 1px solid var(--border);
  padding: 6rem 1.6rem 7rem;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
}

@media (max-width: 767px) {
  .about-inner { max-width: 92%; }
}

.about-label {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 3.5rem;
  display: block;
  width: 100%;
}

.about-text {
  margin-bottom: 5rem;
  width: 100%;
  max-width: 600px;
}

.about-text p {
  font-family: var(--mono);
  font-size: clamp(0.82rem, 1.1vw, 1rem);
  font-weight: 400;
  text-transform: none;
  line-height: 1.8;
  color: var(--fg);
  margin: 0 0 1.6em 0;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Image — 3D tilt scene */
.about-img-scene {
  perspective: 900px;
  /* no overflow:hidden — lets rotated/scaled image breathe without clipping */
  border: 1px solid var(--border);
  width: 20%;
  max-width: 600px;
}

.about-img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1);
  transition: filter 0.5s ease;
  /* inset so tilt+scale never overflows the scene border */
  transform: scale(0.88);
}

.about-img-scene:hover .about-img {
  filter: grayscale(0.6);
}

@media (max-width: 767px) {
  .about-section { padding: 4rem 0 5rem; }
  .about-text { margin-bottom: 3rem; }
  .about-text p { font-size: 0.85rem; line-height: 1.75; }
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
  position: relative;
  border-top: 1px solid var(--border);
  overflow: hidden;
  /* image bg + dark overlay */
  background:
    linear-gradient(rgba(10,10,10,0.72), rgba(10,10,10,0.72)),
    url('footer-bg.jpg.jpeg') center center / cover no-repeat;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem calc(3rem + var(--pb-h));
  gap: 1.5rem;
}

.footer-logo-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-gif {
  width: 100%;
  max-width: 600px;
  height: auto;
  mix-blend-mode: screen;
  display: block;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.footer-copy-sym {
  font-size: 0.8em;
  line-height: 1;
  position: relative;
  top: 0.05em;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 767px) {
  .topbar-left { display: none; }
  .topbar { grid-template-columns: auto 1fr; }
  .hero-title { font-size: clamp(3.5rem, 20vw, 10rem); }

  .meta-title { font-size: 0.64rem; }
}

@media (max-width: 479px) {
  .topbar-nav { display: none; }
  .pb-label { display: none; }
  .progress-bar { grid-template-columns: 1fr auto; }
}

::selection {
  background: rgba(240,240,240,0.1);
  color: var(--text);
}

/* ══════════════════════════════════════════
   PROJECT PAGE
   ══════════════════════════════════════════ */

/* ── Project header ───────────────────────── */
.proj-header {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 60% 40%;
  padding-top: var(--bar-h);
  overflow: hidden;
}

.proj-header-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0.6rem 2.5rem;
}

.proj-title-wrap {
  overflow: hidden;
}

.proj-title {
  font-family: var(--mono);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-transform: uppercase;
  clip-path: inset(0 0 100% 0);
  will-change: clip-path;
}

.proj-subtitle-wrap {
  margin-top: 1.1rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
}

.proj-subtitle {
  font-family: var(--mono);
  font-size: clamp(0.56rem, 0.9vw, 0.72rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  display: block;
}

.proj-header-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.4rem;
  padding: 2.5rem 1.5rem 2.5rem 1rem;
  border-left: 1px solid var(--border);
}

.proj-desc {
  font-size: clamp(0.72rem, 1vw, 0.85rem);
  line-height: 1.9;
  color: var(--dim);
  letter-spacing: 0.025em;
  opacity: 0;
  transform: translateY(10px);
}

/* ── Multi-speed column gallery ──────────────
   Outer section is tall (JS sets height) to give scroll travel.
   Inner is sticky 100svh. Three columns each translate at their
   own speed and loop seamlessly via duplicated image sets.
────────────────────────────────────────────── */
.proj-gallery {
  position: relative;
  height: calc(8 * 100vh); /* fallback — JS recalculates */
}

.proj-gallery-sticky {
  position: sticky;
  top: var(--bar-h);
  height: calc(100svh - var(--bar-h));
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

/* Each column fills 1/3 of the viewport width */
.proj-col {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

/* Pre-apply initial column offsets in CSS so the layout is correct before JS runs.
   GSAP will take over these transforms at init time. */
.proj-col[data-offset="220"]  .proj-col-inner { transform: translateY(220px); }
.proj-col[data-offset="-180"] .proj-col-inner { transform: translateY(-180px); }

/* Inner container — translated by JS; contains original + duplicate images */
.proj-col-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 0.6rem;
  will-change: transform;
}

/* Loop copy must mirror the parent flex gap so both halves are the same height */
.proj-loop-copy {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.proj-img-wrap {
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  /* Loading placeholder colour — shows while image is fetching */
  background: rgba(255,255,255,0.04);
}

.proj-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1) contrast(1.06);
  will-change: transform;
  /* Start invisible; JS sets opacity:1 on load */
  opacity: 0;
  transition: filter 0.4s ease, opacity 0.55s ease;
}

.proj-img-wrap:hover img {
  filter: grayscale(0.5) contrast(1.08) brightness(1.1);
}

/* ── Back link style ──────────────────────── */
.topbar-back {
  letter-spacing: 0.12em;
}

/* Description card — sits inline with images in column A */
.proj-text-card {
  width: 100%;
  flex-shrink: 0;
  padding: 2rem 1.2rem 2.4rem;
  border: 1px solid rgba(240,240,240,0.22);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.proj-card-title {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--fg);
}

.proj-card-sub {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.proj-card-body {
  font-size: clamp(0.68rem, 0.95vw, 0.8rem);
  line-height: 1.85;
  color: var(--dim);
  letter-spacing: 0.02em;
}

/* ── Lightbox ─────────────────────────────── */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.lb-overlay.lb-open {
  opacity: 1;
  pointer-events: all;
}

.lb-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 88vw;
  max-height: 88vh;
}

.lb-img {
  max-width: 88vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  display: block;
  filter: grayscale(1) contrast(1.06);
}

.lb-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
  padding: 0.4rem 0.6rem;
  transition: opacity 0.15s;
}

.lb-close:hover { opacity: 1; }

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 1rem 1.4rem;
  opacity: 0.35;
  transition: opacity 0.15s;
}

.lb-arrow:hover { opacity: 1; }
.lb-prev { left: 0.5rem; }
.lb-next { right: 0.5rem; }

.lb-counter {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--dim);
  text-transform: uppercase;
  pointer-events: none;
}

/* Mobile-only images hidden on desktop by default */
.mob-only { display: none; }

/* ── Responsive tweaks ────────────────────── */
@media (max-width: 767px) {
  .proj-header {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .proj-header-right {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 1.5rem 0.6rem 2rem;
  }

  .proj-title {
    font-size: clamp(3rem, 14vw, 6rem);
  }

  /* ── Mobile gallery: un-lock scroll, single column ── */
  body.proj-page {
    height: auto;
    overflow: visible;
  }
  .proj-page .proj-gallery {
    height: auto;
  }
  .proj-gallery-sticky {
    position: relative;
    height: auto;
    overflow: visible;
    padding-top: var(--bar-h); /* clear fixed topbar */
  }

  /* Single column — only col A visible */
  .proj-col:not(:first-child) { display: none; }
  .proj-col:first-child {
    flex: 0 0 100%;
    max-width: 100%;
    overflow: visible;  /* undo desktop overflow:hidden */
    height: auto;
  }

  /* Reset any GSAP inline transforms */
  .proj-col,
  .proj-col-inner { transform: none !important; }

  .proj-col-inner {
    gap: 0.8rem;
    padding: 0.8rem 0.6rem;
    overflow: visible;
    height: auto;
  }

  /* Card bottom gap = var(--bar-h) + col padding so it matches the top clearance */
  .proj-text-card {
    margin-bottom: var(--bar-h);
  }

  /* Show extra images (from hidden cols) only on mobile */
  .mob-only { display: block; }

  /* Images start at opacity:0 (JS fade-in) — reveal immediately on mobile */
  .proj-img-wrap img { opacity: 1; transition: none; }

  /* Hide the infinite-loop duplicate set */
  .proj-loop-copy { display: none; }
}

/* Project page: full-screen gallery, no scroll (desktop only) */
@media (min-width: 768px) {
  body.proj-page {
    height: 100svh;
    overflow: hidden;
  }

  .proj-page .proj-gallery {
    height: 100svh;
    position: relative;
  }
}
