/* Proof.cam marketing showcase — reusable project pages */
:root {
  --proof-bg: #021328;
  --proof-bg2: #021328;
  --proof-blue: #2f80ed;
  --proof-blue-2: #0a84ff;
  --proof-text: #eaf2ff;
  --proof-muted: #94a3b8;
  --proof-card: #ffffff;
  --proof-ink: #0f172a;
  --proof-border: rgba(47, 128, 237, 0.22);
  --proof-shadow: 0 18px 45px rgba(7, 26, 47, 0.14);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  /* Readable line length; outer width uses --showcase-rail */
  --maxw: 920px;
  --showcase-rail: min(100% - 32px, 1180px);
  --showcase-pad-x: clamp(12px, 4vw, 20px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--proof-text);
  background: radial-gradient(1000px 480px at 50% 0%, rgba(47, 128, 237, 0.12) 0%, var(--proof-bg) 52%);
  background-color: var(--proof-bg);
  line-height: 1.55;
  font-size: 17px;
}

body.showcase-lightbox-open {
  overflow: hidden;
}

a {
  color: var(--proof-blue-2);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.showcase-skip {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--proof-blue);
  color: #fff;
  border-radius: 8px;
}
.showcase-skip:focus {
  left: 0.5rem;
}

.showcase-header {
  padding: 12px clamp(12px, 4vw, 20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--proof-bg);
  backdrop-filter: blur(12px);
}

.showcase-header__inner {
  width: var(--showcase-rail);
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  row-gap: 0.5rem;
}

.showcase-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 52px;
  min-width: 0;
  flex: 1 1 auto;
}

@media (min-width: 640px) {
  .showcase-brand {
    min-height: 60px;
  }
}

/* Raster lockup — readable on mobile, scales up on tablet/desktop */
.proofcam-lockup-img {
  max-width: min(240px, calc(100vw - 140px));
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  display: block;
}

@media (min-width: 640px) {
  .proofcam-lockup-img {
    max-width: min(280px, 50vw);
    max-height: 72px;
  }
}

.proofcam-lockup-img[hidden] {
  display: none !important;
}

.proofcam-lockup-text {
  font-size: clamp(1.9rem, 6.5vw, 2.45rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.proofcam-lockup-text__dotcam {
  color: var(--proof-blue-2);
  font-weight: 800;
}

.showcase-header__home {
  font-size: clamp(0.85rem, 3.2vw, 0.95rem);
  font-weight: 600;
  color: var(--proof-muted);
  margin: 0;
  flex-shrink: 0;
  text-align: right;
  max-width: min(11rem, 38vw);
  line-height: 1.3;
}
.showcase-header__home a {
  color: var(--proof-text);
  word-break: break-word;
}

.showcase-main {
  width: var(--showcase-rail);
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
  padding: 1.25rem var(--showcase-pad-x) 2.75rem;
}

.showcase-hero {
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
  border-radius: var(--radius);
}

.showcase-hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--proof-muted);
  margin: 0 0 0.35rem;
}

.showcase-hero h1 {
  font-size: clamp(2rem, 10vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  line-height: 1.12;
  color: #fff;
  max-width: 100%;
}

.showcase-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--proof-muted);
  max-width: 100%;
}

.showcase-meta span {
  min-width: 0;
}

.showcase-meta span strong {
  color: var(--proof-text);
  font-weight: 700;
}

.showcase-summary {
  margin: 0 0 1.1rem;
  max-width: 100%;
  color: rgba(234, 242, 255, 0.92);
  font-size: 1.05rem;
}

.showcase-summary--tight {
  margin-top: 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.showcase-main h2 {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  margin: 1.35rem 0 0.25rem;
  letter-spacing: -0.02em;
}

.showcase-contractor {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-bottom: 1.25rem;
  padding: 12px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: var(--proof-card);
  box-shadow: var(--proof-shadow);
}

@media (min-width: 560px) {
  .showcase-contractor {
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
  }
}

.showcase-contractor__text {
  min-width: 0;
  flex: 1;
}

.showcase-contractor__logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 12px;
  background: #f8fafc;
  flex-shrink: 0;
}

.showcase-contractor__fallback {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--proof-blue);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.showcase-contractor__fallback.is-visible {
  display: flex;
}

.showcase-contractor__label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.showcase-contractor__name {
  font-size: 16px;
  font-weight: 900;
  color: var(--proof-ink);
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* —— Media gallery —— */
.showcase-gallery-section {
  margin-bottom: 1.75rem;
}

.showcase-gallery-section__title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.showcase-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.showcase-gallery--single {
  grid-template-columns: minmax(0, 1fr);
}

.showcase-gallery--single .showcase-gallery__cell {
  aspect-ratio: 4 / 3;
  max-height: min(68vh, 560px);
}

@media (min-width: 720px) {
  .showcase-gallery--single .showcase-gallery__cell {
    aspect-ratio: 16 / 9;
    max-height: min(72vh, 620px);
  }
}

/* Below 720px: always one column (avoids squeezed multi-col on phones) */
.showcase-gallery--grid {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 720px) {
  .showcase-gallery--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .showcase-gallery--grid.showcase-gallery--many {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.showcase-gallery__cell {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 1px solid var(--proof-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--proof-shadow);
  font: inherit;
  color: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  aspect-ratio: 4 / 3;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

@media (min-width: 720px) {
  .showcase-gallery__cell {
    aspect-ratio: 16 / 9;
  }
}

.showcase-gallery__cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(2, 19, 40, 0.45);
}

.showcase-gallery__cell:focus-visible {
  outline: 2px solid var(--proof-blue-2);
  outline-offset: 3px;
}

.showcase-gallery__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

/* Noscript / static markup */
.showcase-gallery__figure {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--proof-border);
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.04);
}

@media (min-width: 720px) {
  .showcase-gallery__figure {
    aspect-ratio: 16 / 9;
  }
}

.showcase-gallery__figure .showcase-gallery__img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.showcase-gallery--single .showcase-gallery__figure {
  max-height: min(68vh, 560px);
}

@media (min-width: 720px) {
  .showcase-gallery--single .showcase-gallery__figure {
    aspect-ratio: 16 / 9;
    max-height: min(72vh, 620px);
  }
}

.showcase-gallery-placeholder {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: var(--radius);
  border: 1px solid var(--proof-border);
  aspect-ratio: 4 / 3;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 85% 75% at 50% 100%, rgba(47, 128, 237, 0.22) 0%, transparent 55%),
    linear-gradient(165deg, rgba(12, 36, 62, 0.95) 0%, var(--proof-bg) 48%, #010a14 100%);
}

@media (min-width: 720px) {
  .showcase-gallery-placeholder {
    aspect-ratio: 16 / 9;
  }
}

.showcase-gallery-placeholder[hidden] {
  display: none !important;
}

.showcase-gallery-placeholder__inner {
  max-width: 22rem;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.showcase-gallery-placeholder__title {
  margin: 0;
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.showcase-gallery-placeholder__sub {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(234, 242, 255, 0.72);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* —— Lightbox —— */
.showcase-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.showcase-lightbox[hidden] {
  display: none !important;
}

.showcase-lightbox__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.showcase-lightbox__frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3.5rem, 12vw, 4rem) clamp(12px, 4vw, 20px) 1.25rem;
  pointer-events: none;
}

.showcase-lightbox__img {
  max-width: calc(100vw - 32px);
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}

@media (min-width: 720px) {
  .showcase-lightbox__img {
    max-width: min(96vw, 1400px);
    max-height: min(88vh, 900px);
  }
}

.showcase-lightbox__close,
.showcase-lightbox__nav {
  pointer-events: auto;
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(2, 19, 40, 0.85);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  width: max(2.75rem, 44px);
  height: max(2.75rem, 44px);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.showcase-lightbox__close:hover,
.showcase-lightbox__nav:hover {
  background: rgba(47, 128, 237, 0.45);
}

.showcase-lightbox__close:focus-visible,
.showcase-lightbox__nav:focus-visible {
  outline: 2px solid var(--proof-blue-2);
  outline-offset: 2px;
}

.showcase-lightbox__close {
  top: 0.65rem;
  right: 0.65rem;
  font-size: 1.85rem;
  padding: 0 0 0.1rem;
}

.showcase-lightbox__nav--prev {
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
}

.showcase-lightbox__nav--next {
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
}

.showcase-lightbox__nav[hidden] {
  display: none !important;
}

.showcase-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.showcase-stat {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.showcase-stat__value {
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.showcase-stat__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--proof-muted);
  margin-top: 0.25rem;
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 2rem;
}

.showcase-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.showcase-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.showcase-btn--primary {
  background: linear-gradient(180deg, var(--proof-blue) 0%, #1c6fd4 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(47, 128, 237, 0.35);
}
.showcase-btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--proof-text);
  border-color: rgba(255, 255, 255, 0.18);
}

.showcase-privacy-note {
  margin: 0 0 1.25rem;
  max-width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(234, 242, 255, 0.82);
}

.showcase-cta-band {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(47, 128, 237, 0.12);
  border: 1px solid var(--proof-border);
  margin-bottom: 2rem;
}

.showcase-cta-band h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
}

.showcase-cta-band p {
  margin: 0 0 1rem;
  color: var(--proof-muted);
  font-size: 0.95rem;
}

.showcase-footer {
  width: var(--showcase-rail);
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
  padding: 1.5rem var(--showcase-pad-x) 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.88rem;
  color: var(--proof-muted);
}

.showcase-footer strong {
  color: var(--proof-text);
}

/* —— /projects/ index (aligned with project showcase) —— */
.showcase-main.projects-index {
  padding-top: 1.35rem;
}

.projects-index-hero {
  margin-bottom: 1.75rem;
  text-align: center;
  max-width: min(40rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

.projects-index-hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--proof-muted);
  margin: 0 0 0.5rem;
}

.projects-index-hero__title {
  font-size: clamp(1.45rem, 4.2vw, 2.05rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: #fff;
  margin: 0 0 0.85rem;
}

.projects-index-hero__lede {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(234, 242, 255, 0.88);
  line-height: 1.55;
}

.projects-index-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 100%;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--proof-border);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--proof-shadow);
}

@media (min-width: 700px) {
  .project-card {
    grid-template-columns: minmax(240px, 38%) 1fr;
    align-items: stretch;
  }
}

.project-card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 180px;
  background: rgba(2, 19, 40, 0.6);
  overflow: hidden;
}

.project-card__media:focus-visible {
  outline: 2px solid var(--proof-blue-2);
  outline-offset: 2px;
  z-index: 1;
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.project-card__media:hover .project-card__img {
  transform: scale(1.03);
}

.project-card__body {
  padding: 1.25rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

@media (min-width: 700px) {
  .project-card__body {
    padding: 1.5rem 1.5rem 1.6rem;
    justify-content: center;
  }
}

.project-card__title {
  margin: 0;
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.project-card__meta {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--proof-muted);
}

.project-card__contractor {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--proof-text);
}

.project-card__label {
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--proof-blue-2);
}

.project-card__desc {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(234, 242, 255, 0.88);
  flex: 1;
}

.project-card__cta {
  align-self: flex-start;
  margin-top: 0.35rem;
}

@media (max-width: 520px) {
  .project-card__cta {
    width: 100%;
    justify-content: center;
  }
}

.showcase-footer--projects-index {
  margin-top: auto;
}

.showcase-footer__sep {
  color: rgba(148, 163, 184, 0.6);
}

@media (max-width: 520px) {
  .showcase-contractor {
    align-items: flex-start;
  }
  .showcase-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .showcase-btn {
    width: 100%;
  }
}
