/* GENERATED FILE — DO NOT EDIT DIRECTLY.
   Logos Publicity — pages/project.css
   Edit assets/css/src/ (see src/README.md), then run: node scripts/build-css.mjs
   Asset version: 20260814-about3
*/

/* === from src/page-project.css === */
.project-page {
  font-family: "Montserrat", sans-serif;
  color: #555555;
  background: #fff;
}

.project-gallery--legacy {
  padding-top: 0;
  padding-bottom: 0;
  overflow: visible !important; /* override section { overflow: hidden } which breaks sticky */
}

.project-gallery--legacy .project-migration-grid {
  --gallery-cols: 6;
  grid-template-columns: minmax(260px, 1.2fr) repeat(5, 1fr);
  grid-auto-rows: clamp(220px, 22vw, 300px);
  grid-auto-flow: dense;
  gap: 8px;
  margin: 0;
  padding: 8px;
  background: transparent !important;
}

.project-gallery--legacy .proj-intro {
  width: auto;
  margin: 0;
  background: var(--project-accent, #262626);
  grid-column: span 1;
  grid-row: span 2;
  overflow: auto;
}

.project-gallery--legacy .proj-intro,
.project-gallery--legacy .proj-intro .proj,
.project-gallery--legacy .proj-intro.box--intro .proj {
  background: var(--project-accent, #262626) !important;
}

.project-gallery--legacy .proj {
  display: flex;
  flex-direction: column;
  min-height: auto;
  height: 100%;
  padding: clamp(0.9rem, 1.8vw, 1.25rem);
}

.project-gallery--legacy .proj h1,
.project-gallery--legacy .proj h5 {
  margin: 0 0 0.6rem;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.project-gallery--legacy .proj .back_but,
.btn-back {
  display: inline-flex !important;
  align-items: center !important;
  align-self: flex-start !important;  /* always left — never stretch in the flex column */
  gap: 0.4rem !important;
  margin-bottom: clamp(0.5rem, 1vw, 0.75rem) !important;
  min-height: 2.75rem !important;
  padding: 0.1rem 0.35rem 0.1rem 0 !important;
  padding-bottom: 0.1rem !important;       /* reset legacy 18px bottom padding */
  border: none !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-align: left !important;        /* reset legacy text-align: center */
  text-transform: uppercase !important;
  text-decoration: none !important;
  font-family: "Montserrat", sans-serif !important;
  transition: opacity 0.3s ease !important;
}

.project-gallery--legacy .proj .back_but i,
.project-gallery--legacy .proj .back_but svg {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1rem !important;
  width: 1rem !important;             /* SVG needs explicit width/height */
  height: 1rem !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  transform: none !important;         /* reset legacy translateX(-50%) */
  transition: none !important;        /* reset legacy transition on transform */
}

.project-gallery--legacy .proj .back_but:hover,
.btn-back:hover {
  opacity: 0.7;
  color: #fff;
  text-decoration: none;
}

.project-gallery--legacy .project-description {
  max-width: 48ch;
  margin: 0 0 0.85rem 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.875rem;
  line-height: 1.5;
}

.project-gallery--legacy .project-live-site {
  align-items: center;
  align-self: flex-start;
  background: #fff;
  border: 1px solid #fff;
  color: var(--project-accent, #262626);
  display: inline-flex;
  font-family: "Montserrat", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 0.1rem 0 0.9rem;
  min-height: 2.5rem;
  padding: 0.65rem 0.8rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.project-gallery--legacy .project-live-site::after {
  content: "\2197";
  font-size: 0.85rem;
  line-height: 1;
  margin-left: 0.45rem;
}

.project-gallery--legacy .project-live-site:hover,
.project-gallery--legacy .project-live-site:focus {
  background: transparent;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.project-gallery--legacy .proj p {
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

.project-gallery--legacy .project-strategy {
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 0.6rem;
  margin-bottom: 0.85rem;
}

.project-gallery--legacy .project-strategy strong {
  color: #fff;
  font-weight: 700;
}

.project-gallery--legacy .project-service-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  margin: 0.25rem 0 0.85rem;
  padding: 0.38rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.88);
  font-family: "Montserrat", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.project-gallery--legacy .project-service-cue i,
.project-gallery--legacy .project-service-cue svg {
  width: 0.95rem;
  height: 0.95rem;
  font-size: 0.95rem;
  line-height: 1;
}

.project-gallery--legacy .proj hr {
  width: 100%;
  height: 1px;
  margin-top: 0.95rem;
  margin-bottom: 0.75rem;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
}

/* Hide duplicate divider line in sidebar when pagination is present */
.project-gallery--legacy .proj hr:has(~ .project-pagination--sidebar) {
  display: none;
}


.project-gallery--legacy .project-hero__eyebrow {
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-gallery--legacy .project-brief--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin-top: 1rem;
}

.project-gallery--legacy .project-brief--compact div {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.project-gallery--legacy .project-brief--compact dt {
  color: rgba(255, 255, 255, 0.48);
}

.project-gallery--legacy .project-brief--compact dd {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  line-height: 1.45;
}

.project-gallery--legacy .project-panel-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: 100%;
  margin-top: 1.15rem;
  margin-bottom: 0.35rem;
}

.project-gallery--legacy .project-panel-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 0 !important;
  background: transparent;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.project-gallery--legacy .project-panel-nav::before {
  content: "";
  position: absolute;
  left: 2.95rem;
  right: 2.95rem;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.34);
  transform: translateY(-50%);
  pointer-events: none;
  /* Line auto-stretches between the two circles since nav is now full width */
}

.project-gallery--legacy .project-panel-nav__link span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.project-gallery--legacy .project-panel-nav__link i,
.project-gallery--legacy .project-panel-nav__link svg {
  font-size: 1.25rem;
  width: 1.25rem;   /* SVG needs explicit width/height — font-size alone won't work */
  height: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
  display: block;
}

.project-gallery--legacy .project-panel-nav__link:hover,
.project-gallery--legacy .project-panel-nav__link:focus {
  background: #fff;
  border-color: #fff;
  color: var(--project-accent, #262626);
  transform: translateY(-1px);
  text-decoration: none;
}

.project-gallery--legacy .project-panel-nav__link:hover span,
.project-gallery--legacy .project-panel-nav__link:focus span {
  animation: none !important;
}

/* ─── Mobile: panel nav becomes full-width text buttons matching bottom pagination ─── */
@media (max-width: 991.98px) {
  .project-gallery--legacy .project-panel-nav {
    flex-direction: column;
    gap: 6px;
    margin-top: 1rem;
  }

  /* Hide the decorative centre-line — not needed in stacked layout */
  .project-gallery--legacy .project-panel-nav::before {
    display: none;
  }

  .project-gallery--legacy .project-panel-nav__link {
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0.6rem 0.85rem;
    justify-content: flex-start;
    gap: 0.5rem;
    /* Solid white bg + accent text — same as bottom pagination */
    background: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--project-accent, #262626);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  /* Show the sr-only label text visibly on mobile */
  .project-gallery--legacy .project-panel-nav__link span {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
  }

  .project-gallery--legacy .project-panel-nav__link i,
  .project-gallery--legacy .project-panel-nav__link svg {
    font-size: 1.1rem;
    width: 1.1rem;
    height: 1.1rem;
  }

  /* Next: icon on right side */
  .project-gallery--legacy .project-panel-nav__link.next {
    flex-direction: row-reverse;
    justify-content: flex-start;
  }

  .project-gallery--legacy .project-panel-nav__link:hover,
  .project-gallery--legacy .project-panel-nav__link:focus {
    background: var(--project-accent, #262626);
    border-color: var(--project-accent, #262626);
    color: #fff;
    transform: translateY(-1px);
  }
}

.project-gallery--legacy .project-filters {
  grid-column: 1 / -1;
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding: 0.25rem 0 0.35rem;
}

.project-gallery--legacy .project-filter__button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 1.95rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0 !important;
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.project-gallery--legacy .project-filter__count {
  min-width: 1.35rem;
  padding: 0.08rem 0.25rem;
  background: rgba(255, 255, 255, 0.14);
  color: currentColor;
  font-size: 0.6rem;
  line-height: 1.2;
  text-align: center;
}

.project-gallery--legacy .project-filter__button:hover,
.project-gallery--legacy .project-filter__button:focus,
.project-gallery--legacy .project-filter__button.is-active {
  background: #fff;
  border-color: #fff;
  color: var(--project-accent, #262626);
}

.project-gallery--legacy .project-filter__button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.project-gallery--legacy .project-filter__button.is-active .project-filter__count {
  background: color-mix(in srgb, var(--project-accent, #262626) 14%, #fff);
}

.project-gallery--legacy .project-filters--sidebar {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.project-gallery--legacy .project-filters:empty {
  display: none;
}

.project-gallery--legacy .project-filter-results {
  display: grid;
  gap: 12px;
  width: 100%;
  margin: 0.85rem 0 0.25rem;
}

.project-gallery--legacy .project-filter-results[hidden] {
  display: none !important;
}

.project-gallery--legacy .project-filter-results .gallery-tile {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  min-height: 220px;
  background: #262626 !important;
}

.project-gallery--legacy .project-filter-results .gallery-tile__link {
  min-height: 220px;
}

.project-gallery--legacy .project-filter-results .gallery-tile img {
  height: 100% !important;
  min-height: 220px;
  object-fit: cover;
}

/* ─── Shared pagination container ──────────────────────────────────────── */
.project-gallery--legacy .project-pagination {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

/* ─── TOP panel nav: lightweight text links only ────────────────────────
 * These sit inside the dark sidebar/intro panel and act as a quiet
 * convenience shortcut. No card border, no background, no min-height.
 * The bottom pagination is the primary CTA — this stays subordinate.
 * ─────────────────────────────────────────────────────────────────────── */
.project-gallery--legacy .project-pagination--sidebar {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  gap: 8px;
}

/* Strip card treatment from sidebar links — plain text only */
.project-pagination--sidebar .project-pagination__link {
  flex: 0 0 auto;
  max-width: none;
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0 !important;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
}

/* Prev link: arrow left of text */
.project-pagination--sidebar .project-pagination__link--previous {
  flex-direction: row;
}

/* Next link: arrow right of text — align to right edge */
.project-pagination--sidebar .project-pagination__link--next {
  flex-direction: row-reverse;
  align-items: center;
  text-align: right;
  margin-left: auto;
}

/* Show direction labels (e.g. Previous Project / Next Project) in the sidebar — hide the project name */
.project-pagination--sidebar .project-pagination__direction {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 1;
}

.project-pagination--sidebar .project-pagination__title {
  display: none;
}

/* Sidebar hover: brighten to full white */
.project-pagination--sidebar .project-pagination__link:hover,
.project-pagination--sidebar .project-pagination__link:focus {
  background: transparent;
  border: none;
  color: #fff;
  transform: none;
  opacity: 1;
  text-decoration: none;
}

/* Bottom pagination: canonical styles in style.css (.project-pagination--bottom) */

.project-gallery--legacy .project-gallery-items {
  display: contents;
}

.project-gallery--legacy .gallery-tile {
  background: #262626 !important;
  grid-column: span var(--tile-cols);
  grid-row: span 1;
  overflow: hidden;
}

/* Filters set tile.hidden = true — ensure [hidden] wins over any display:!important layout rules */
.project-gallery--legacy .gallery-tile[hidden] {
  display: none !important;
  visibility: hidden !important;
}

.project-gallery--legacy .gallery-tile__link,
.project-gallery--legacy .gallery-tile img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* All images fill tiles completely — no grey gaps */
.project-gallery--legacy .gallery-tile img {
  object-fit: cover;
  object-position: center top;
  background: #262626 !important;
}

.project-gallery--legacy .gallery-tile figcaption {
  display: none;
}

/* ─── Website-screen layout ─────────────────────────────────────────────────
 * Website mockups are full-page portrait scroll captures (ratio 0.27–0.72).
 * We show a fixed 480px 'above the fold' preview — cover + top-center.
 * The full image is always accessible via lightbox click.
 * ───────────────────────────────────────────────────────────────────────── */
.project-gallery--legacy.layout--website-screen .project-migration-grid {
  grid-auto-rows: 480px;
  background: #111;
  gap: 8px;
  padding: 8px;
}

.project-gallery--legacy.layout--website-screen .gallery-tile {
  --tile-cols: 4;
  background: #111;
}

.project-gallery--legacy.layout--website-screen .gallery-tile img {
  object-fit: cover;
  object-position: top center;
  background: #111;
}

/* ─── Tablet ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .project-gallery--legacy .project-migration-grid {
    grid-auto-rows: clamp(180px, 22vw, 260px);
  }

  .project-gallery--legacy.layout--website-screen .project-migration-grid {
    grid-auto-rows: 380px;
  }
}

/* ─── Mobile ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .project-gallery--legacy .project-migration-grid {
    --gallery-cols: 2;
    grid-auto-rows: clamp(150px, 36vw, 220px);
    gap: 6px;
    padding: 6px;
  }

  .project-gallery--legacy .proj-intro {
    grid-column: span 2;
    grid-row: span 1;
  }

  .project-gallery--legacy .gallery-tile,
  .project-gallery--legacy .gallery-tile[data-cols] {
    --tile-cols: 2;
  }

  .project-gallery--legacy.layout--website-screen .project-migration-grid {
    grid-auto-rows: 300px;
  }

  .project-gallery--legacy.layout--website-screen .gallery-tile {
    --tile-cols: 2;
  }

  /* On mobile the panel is full-width above the gallery.
     The bottom nav handles all browsing — hide the top text links. */
  .project-pagination--sidebar {
    display: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(7rem, 11vw, 10rem) clamp(1.5rem, 5.8vw, 7rem) clamp(3rem, 7vw, 6rem);
  min-height: min(82vh, 760px);
}

.project-hero__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

.project-hero__title {
  margin: 0 0 2rem;
  font-size: clamp(2.4rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  color: rgba(21, 21, 21, 0.3);
}

.project-brief {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  margin: 0;
  max-width: 42rem;
}

.project-brief div {
  border-top: 1px solid rgba(0, 0, 0, 0.14);
  padding-top: 0.75rem;
}

.project-brief dt {
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
}

.project-brief dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #151515;
}

.project-hero__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: #111;
}

.project-hero__media img,
.project-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transform: scale(1);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.project-hero__media:hover img,
.project-hero__media:hover video {
  filter: grayscale(0%);
  transform: scale(1.04);
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0 clamp(1.5rem, 5.8vw, 7rem) 1.25rem;
}

.project-filter__button {
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: rgba(0, 0, 0, 0.56);
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  padding: 0.35rem 0;
  text-transform: uppercase;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.project-filter__button:hover,
.project-filter__button:focus,
.project-filter__button.is-active {
  border-color: #151515;
  color: #151515;
}

.project-gallery .gallery-mosaic {
  grid-template-columns: repeat(var(--gallery-cols, 6), minmax(0, 1fr));
}

.project-gallery .gallery-tile figcaption {
  margin-top: 0.65rem;
  color: rgba(21, 21, 21, 0.62);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.project-page[data-project-view="campaign"] .project-hero__title {
  color: #151515;
}

.vbox-title .vbox-project-caption,
.vbox-title .vbox-smart-caption {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: "Montserrat", sans-serif;
}

.vbox-title .vbox-project-caption span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vbox-title .vbox-brand-link {
  border-bottom: 1px solid currentColor;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.project-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: clamp(2rem, 5vw, 5rem) clamp(1.5rem, 5.8vw, 7rem);
  background: #fff;
}

.project-nav__link {
  min-height: 8rem;
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  color: #151515;
  text-decoration: none;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.project-nav__link span {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.52);
}

.project-nav__link strong {
  display: block;
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  line-height: 1.1;
}

.project-nav__link:hover,
.project-nav__link:focus {
  background: #151515;
  color: #fff;
  text-decoration: none;
}

.project-nav__link:hover span,
.project-nav__link:focus span {
  color: rgba(255, 255, 255, 0.62);
}

[data-reveal] .oh span,
.gallery-tile,
.project-nav__link {
  opacity: 0;
  transform: translate3d(0, 1.4rem, 0);
}

[data-reveal].is-inview .oh span,
.gallery-tile.is-inview,
.project-nav__link.is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.6s ease;
}

@media (max-width: 991px) {
  .project-hero,
  .project-nav {
    grid-template-columns: 1fr;
  }

  .project-brief {
    grid-template-columns: 1fr;
  }

  .project-gallery--legacy {
    padding-top: 0;
  }

  .project-gallery--legacy .project-migration-grid {
    --gallery-cols: 2;
    grid-template-columns: repeat(var(--gallery-cols), minmax(0, 1fr));
    grid-template-rows: auto;
    grid-auto-rows: 220px;
    margin: 0;
    padding: 8px;
  }

  .project-gallery--legacy .proj-intro,
  .project-gallery--legacy .gallery-tile,
  .project-gallery--legacy .gallery-tile:nth-child(n) {
    grid-column: span 2;
    grid-row: span 1;
  }


  .project-gallery--legacy .project-filters {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .project-gallery--legacy .project-migration-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-auto-rows: 240px;
    gap: 8px;
  }

  .project-gallery--legacy .proj-intro,
  .project-gallery--legacy .gallery-tile,
  .project-gallery--legacy .gallery-tile:nth-child(n) {
    grid-column: span 1;
  }

}

/* Navigation Preview Links (UX Fix 3) */
.project-navigation-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.project-navigation-links a {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: opacity 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  max-width: 50%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.project-navigation-links a:hover {
  opacity: 0.7;
}

@media (max-width: 575.98px) {
  .project-navigation-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .project-navigation-links a {
    max-width: 100%;
  }
}

/* Lightbox transparency, sizing and proportion overrides */
.vbox-content {
  background: transparent !important;
  background-color: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

img.vbox-figlio {
  background: transparent !important;
  background-color: transparent !important;
  max-width: 85vw !important;
  max-height: 80vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

/* ─── Desktop 2-Column Layout & Masonry Grid overrides ────────────────────── */
@media (min-width: 992px) {
  /* 1. Reset the grid to a flexbox container on desktop with 20px gap */
  .project-gallery--legacy .project-migration-grid {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 20px !important;
    padding: 20px !important;
    background: transparent !important;
  }

  /* 2. Style the intro panel as a sticky sidebar */
  .project-gallery--legacy .proj-intro {
    position: -webkit-sticky !important; /* Safari compatibility */
    position: sticky !important;
    top: 88px !important;
    align-self: flex-start !important;
    z-index: 100 !important;
    width: 320px !important;
    flex-shrink: 0 !important;
    height: auto !important;
    max-height: calc(100vh - 108px) !important;
    overflow-y: auto !important;
    margin: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    border-radius: 0 !important;
    background: var(--project-accent, #262626) !important;
  }

  .project-gallery--legacy .proj-intro .proj {
    background: var(--project-accent, #262626) !important;
  }

  /* 3. Style the gallery items container as a dedicated CSS Masonry Column Layout */
  .project-gallery--legacy .project-gallery-items {
    display: block !important;
    flex-grow: 1 !important;
    column-gap: 20px !important;
  }

  @media (min-width: 1200px) {
    .project-gallery--legacy .project-gallery-items {
      column-count: 3 !important;
    }
  }
  @media (max-width: 1199.98px) {
    .project-gallery--legacy .project-gallery-items {
      column-count: 2 !important;
    }
  }

  /* 4. Style tiles and images inside masonry */
  .project-gallery--legacy .gallery-tile {
    display: inline-block !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    break-inside: avoid !important;
    background: #262626 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  }

  .project-gallery--legacy .gallery-tile img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 0 !important;
  }
}

/* ─── Mobile/Tablet Vertical Scroll Layout (< 992px) ────────────────────────── */
@media (max-width: 991.98px) {
  .project-gallery--legacy .project-migration-grid {
    display: block !important;
    padding: 16px !important;
    background: transparent !important;
  }

  .project-gallery--legacy .proj-intro {
    width: 100% !important;
    margin: 0 0 24px 0 !important;
    background: var(--project-accent, #262626) !important;
    border-radius: 0 !important;
  }

  .project-gallery--legacy .proj-intro .proj {
    background: var(--project-accent, #262626) !important;
  }

  /* Gallery becomes a vertical masonry column layout scrolling downwards */
  .project-gallery--legacy .project-gallery-items {
    display: block !important;
    column-gap: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: visible !important;
  }

  /* Sized to fit naturally in vertical flow, contained image with no margins/borders */
  .project-gallery--legacy .gallery-tile {
    display: inline-block !important;
    width: 100% !important;
    height: auto !important;
    background: #262626 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    margin: 0 0 20px 0 !important;
    break-inside: avoid !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  }

  .project-gallery--legacy.layout--website-screen .gallery-tile {
    background: #111 !important;
  }

  .project-gallery--legacy .gallery-tile__link {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .project-gallery--legacy .gallery-tile img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    display: block !important;
    background: transparent !important;
  }
}

/* Responsive Column Counts for Mobile/Tablet Viewports */
@media (min-width: 600px) and (max-width: 991.98px) {
  .project-gallery--legacy .project-gallery-items {
    column-count: 2 !important;
  }
}

@media (max-width: 599.98px) {
  .project-gallery--legacy .project-gallery-items {
    column-count: 1 !important;
  }
}

/* ─── Website Screen Layout Previews (Constrain very long mockups) ────────── */
.project-gallery--legacy.layout--website-screen .gallery-tile {
  overflow: hidden !important;
}

.project-gallery--legacy.layout--website-screen .gallery-tile img {
  object-fit: cover !important;
  object-position: top center !important;
  width: 100% !important;
}

@media (min-width: 992px) {
  .project-gallery--legacy.layout--website-screen .gallery-tile {
    height: 480px !important;
  }
  .project-gallery--legacy.layout--website-screen .gallery-tile img {
    height: 480px !important;
  }
}

@media (max-width: 991.98px) {
  .project-gallery--legacy.layout--website-screen .gallery-tile {
    height: 300px !important;
    margin-bottom: 20px !important;
  }
  .project-gallery--legacy.layout--website-screen .gallery-tile img {
    height: 300px !important;
  }
}



/* --------------------------------------------------------------------------
   Antigravity Visual Aesthetics & Global Card Hover Updates
   -------------------------------------------------------------------------- */

/* Ensure all portfolio, gallery, and case study cards/images have sharp corners globally */
.gallery-tile,
.gallery-tile__link,
.gallery-tile img,
.gallery-tile__link img,
.card-container,
.card-image {
  border-radius: 0 !important;
}

/* Global Card Hover Image Zoom Interaction */
.gallery-tile,
.card-container {
  overflow: hidden !important;
}

.gallery-tile img,
.gallery-tile__link img,
.card-image {
  transition: transform 0.4s ease !important;
}

/* Hover Zoom */
.gallery-tile:hover img,
.gallery-tile__link:hover img,
.card-container:hover .card-image {
  transform: scale(1.04) !important;
}

/* Invert primary button style on hover (transparent/white border -> solid white/dark text) */
.btn {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, padding 0.4s ease, transform 0.4s ease !important;
  border-radius: 0 !important; /* Sharp corners */
  background-color: transparent !important;
  border: 1px solid #fff !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 24px !important;
  min-height: 44px !important;
}

.btn span {
  color: #fff !important;
  font-size: 14px !important;
  padding: 0 !important;
  margin-left: 10px !important;
  transition: color 0.4s ease !important;
}

.btn .fa {
  position: static !important;
  margin: 0 !important;
  color: #fff !important;
  transition: color 0.4s ease, transform 0.4s ease !important;
}

.btn:hover {
  background-color: #fff !important;
  color: #151515 !important;
  border-color: #fff !important;
  padding: 8px 24px !important;
}

.btn:hover span {
  color: #151515 !important;
}

.btn:hover .fa {
  color: #151515 !important;
}

/* Footer hub/contact link */
.btn-hub-link {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  border: 2px solid #fff !important;
  color: #fff !important;
}

.btn-hub-link:hover {
  background-color: #fff !important;
  color: #151515 !important;
  border-color: #fff !important;
}

/* Invert individual project navigation/back buttons if applicable */
.btn-back {
  border-radius: 0 !important;
}

/* --------------------------------------------------------------------------
   Case Studies Hero & Cross-Fading Background Carousel
   -------------------------------------------------------------------------- */
.hero-carousel-parent {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: calc(75vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-carousel-parent::before {
  display: none !important; /* Disable style.css default dark overlay to use custom track */
}

@media (max-width: 992px) {
  .hero-carousel-parent {
    height: calc(100vh - 60px);
  }
}

.hero-carousel-track {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-carousel-slide.active {
  opacity: 1;
}

.hero-carousel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2;
  pointer-events: none;
}

.hero-carousel-parent .container {
  position: relative;
  z-index: 3;
}

/* --------------------------------------------------------------------------
   Alignment & Container Tweaks for Case Studies Grid
   -------------------------------------------------------------------------- */
.container .project-migration-grid {
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Dark button variant for light backgrounds */
.btn-dark {
  border: 1px solid #151515 !important;
  color: #151515 !important;
}

.btn-dark span {
  color: #151515 !important;
}

.btn-dark .fa {
  color: #151515 !important;
}

/* --------------------------------------------------------------------------
   Final Portfolio Intro Panel Alignment
   --------------------------------------------------------------------------
   Generated section pages and generated case-study pages share the same intro
   panel markup. Keep that panel in normal flow, top-flush with the gallery
   column, and center its contents without using sticky positioning.
*/
.project-gallery--legacy .project-migration-grid {
  align-items: flex-start !important;
}

.project-gallery--legacy .proj-intro {
  position: static !important;
  top: auto !important;
  align-self: flex-start !important;
  display: flex !important;
  align-items: flex-start !important;  /* keep back button & content left-aligned */
  justify-content: flex-start !important;
  overflow: visible !important;
  margin-top: 0 !important;
}

.project-gallery--legacy .proj-intro .proj {
  width: 100% !important;
  min-height: 0;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important; /* prevent children from stretching or centering */
  justify-content: flex-start !important;
}

.project-gallery--legacy .project-gallery-items {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

@media (min-width: 992px) {
  .project-gallery--legacy .proj-intro {
    width: 320px !important;
    flex: 0 0 320px !important;
    max-height: none !important;
  }
}

@media (max-width: 991.98px) {
  .project-gallery--legacy .proj-intro {
    display: block !important;
    margin-bottom: 20px !important;
  }

  .project-gallery--legacy .proj-intro .proj {
    min-height: auto;
    justify-content: flex-start !important;
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
  }
}

.btn-dark:hover {
  background-color: #151515 !important;
  color: #fff !important;
  border-color: #151515 !important;
}

.btn-dark:hover span {
  color: #fff !important;
}

.btn-dark:hover .fa {
  color: #fff !important;
}

.container .service-page-cards {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* About / velo leftovers removed — owned by homepage.css */

/* Generated gallery-v2 pages: keep audiovisual/video grids in real document flow.
   The older legacy template uses CSS columns on mobile, which can leave large
   blank areas in full-page captures and on some narrow browsers. */
@media (max-width: 991.98px) {
  .project-gallery--legacy.gallery-v2 .project-gallery-items {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-count: auto !important;
    column-gap: 0 !important;
    gap: 18px !important;
    width: 100% !important;
  }

  .project-gallery--legacy.gallery-v2 .gallery-tile {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    break-inside: auto !important;
    opacity: 1 !important;
    transform: none !important;
    content-visibility: visible !important;
    contain-intrinsic-size: none !important;
  }
}

@media (max-width: 599.98px) {
  .project-gallery--legacy.gallery-v2 .project-gallery-items {
    grid-template-columns: 1fr !important;
  }
}

.project-gallery--legacy.gallery-v2 .gallery-tile {
  opacity: 1 !important;
  transform: none !important;
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
}

.project-gallery--legacy.gallery-v2 .gallery-tile[hidden] {
  display: none !important;
  visibility: hidden !important;
}




/* Website Design portfolio: full-bleed project cards (same language as hub cards).
   Defeat homepage carousel sizing + masonry img { height:auto }. */
.project-gallery--legacy.gallery-v2 .gallery-tile--website-logo {
  background: #262626 !important;
  height: 360px !important;
  min-height: 360px !important;
  max-height: 360px !important;
  overflow: hidden !important;
  position: relative !important;
}

.project-gallery--legacy.gallery-v2.layout--website-card-grid .project-migration-grid {
  grid-auto-rows: 360px;
}

.project-gallery--legacy.gallery-v2.layout--website-card-grid .project-gallery-items {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  column-count: auto !important;
  gap: 20px !important;
  width: 100% !important;
  flex-grow: 1 !important;
  min-width: 0 !important;
}

.project-gallery--legacy.gallery-v2.layout--website-card-grid .gallery-tile--website-logo {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  break-inside: auto !important;
  grid-column: auto !important;
  grid-row: auto !important;
}

.project-gallery--legacy.gallery-v2 .gallery-tile--website-logo .website-work-card,
.project-gallery--legacy.gallery-v2 .gallery-tile--website-logo .service-page-card {
  flex: unset !important;
  scroll-snap-align: unset !important;
  container: none;
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  aspect-ratio: auto !important;
  background-color: #262626 !important;
  overflow: hidden !important;
}

.project-gallery--legacy.gallery-v2 .gallery-tile--website-logo .service-card__media,
.project-gallery--legacy.gallery-v2 .gallery-tile--website-logo .website-work-card__logo {
  position: absolute !important;
  inset: 0 !important;
  filter: none !important;
  opacity: 1 !important;
  pointer-events: none;
}

.project-gallery--legacy.gallery-v2 .gallery-tile--website-logo img,
.project-gallery--legacy.gallery-v2 .gallery-tile--website-logo .img-sliderrr,
.project-gallery--legacy.gallery-v2.layout--website-card-grid[data-fit="contain"] .gallery-tile--website-logo img,
.project-gallery--legacy.gallery-v2.layout--website-card-grid[data-fit="contain"] .gallery-tile--website-logo .img-sliderrr {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center top !important;
  background: #262626 !important;
}

.project-gallery--legacy.gallery-v2 .gallery-tile--website-logo .service-card__overlay {
  z-index: 2;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 10px;
  padding: 1.25rem 1.35rem;
  pointer-events: none;
}

.project-gallery--legacy.gallery-v2 .gallery-tile--website-logo .service-card__overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.48) 42%,
    rgba(0, 0, 0, 0.14) 72%,
    rgba(0, 0, 0, 0.06) 100%
  );
}

.project-gallery--legacy.gallery-v2 .gallery-tile--website-logo .service-card-title,
.project-gallery--legacy.gallery-v2 .gallery-tile--website-logo .service-page-card__summary,
.project-gallery--legacy.gallery-v2 .gallery-tile--website-logo .service-card__more {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.project-gallery--legacy.gallery-v2 .gallery-tile--website-logo .service-page-card__summary {
  margin: 0;
  max-width: 34rem;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88) !important;
}

.project-gallery--legacy.gallery-v2 .gallery-tile--website-logo .service-card__more {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 130px;
  margin-top: 2px;
  padding: 0 24px;
  border: 1px solid #fff !important;
  background: transparent !important;
  color: #fff !important;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  pointer-events: auto;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.project-gallery--legacy.gallery-v2 .gallery-tile--website-logo .service-card__more:hover,
.project-gallery--legacy.gallery-v2 .gallery-tile--website-logo .service-card__more:focus {
  background: #fff !important;
  color: #222 !important;
  text-shadow: none;
}

.project-gallery--legacy.gallery-v2 .gallery-tile {
  contain-intrinsic-size: auto clamp(220px, 30vw, 360px) !important;
}

@media (max-width: 599.98px) {
  .project-gallery--legacy.gallery-v2.layout--website-card-grid .project-gallery-items {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .project-gallery--legacy.gallery-v2 .gallery-tile--website-logo {
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
  }

  .project-gallery--legacy.gallery-v2.layout--website-card-grid .project-migration-grid {
    grid-auto-rows: 280px;
  }
}

@media (min-width: 600px) and (max-width: 1199.98px) {
  .project-gallery--legacy.gallery-v2.layout--website-card-grid .project-gallery-items {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Compact bottom navigation and CTA spacing — canonical rules in style.css */

.proj-intro .page-ai-context-snippet:not(.sr-only) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portfolio-cta-section {
  margin-top: 0 !important;
  padding: 0 !important;
}

/* Portfolio CTA + bottom stack: canonical rules live in style.css */
