/* ==========================================================================
   VENOMX — Portfolio & Project Detail pages  v4
   ========================================================================== */

:root {
  --pf-bg: #ffffff;
  --pf-surface: #fafafa;
  --pf-border: #e6e6e6;
  --pf-ink: #121212;
  --pf-muted: #616161;
  --pf-green: #00ff8b;
  --pf-green-ink: #062a18;
  --pf-radius: 15px;
  --pf-maxw: 1180px;
}

* { box-sizing: border-box; }

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

body.pf {
  margin: 0;
  background: var(--pf-bg);
  color: var(--pf-ink);
  font-family: "Satoshi", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.pf a { color: inherit; text-decoration: none; }

.pf-wrap {
  width: 100%;
  max-width: var(--pf-maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================ Desktop Nav
   The Framer nav is position:fixed and injected async.
   Starts at opacity:0 to prevent centering-transform flash;
   init-project-page.js reveals it after injection. */
#site-header {
  display: block;
  width: 100%;
  height: 0;
  position: relative;
  z-index: 100;
}

#site-header .framer-1585k3b-container {
  left: 0 !important;
  transform: none !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  transition: opacity 0.22s ease !important;
}

#site-header .framer-TVA8b.framer-cfv0ch {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

#site-header .framer-TVA8b .framer-1cv0w39 {
  overflow: visible !important;
  width: auto !important;
}

#site-header .framer-TVA8b .framer-7pokr4 {
  width: auto !important;
}

/* ============================================================ Footer */
#site-footer {
  display: block;
  width: 100%;
}

#site-footer .framer-p39ln9-container {
  width: 100% !important;
}

/* ============================================================ Mobile Nav
   vx-mob-bar  — fixed top bar with logo + burger  (≤809px only)
   vx-mob-nav  — full-screen slide-in drawer */

.vx-mob-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--pf-border);
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
}

.vx-mob-bar img {
  height: 22px;
  width: auto;
  display: block;
}

.vx-burger {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-right: -8px;
}

.vx-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--pf-ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.vx-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.vx-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.vx-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.vx-mob-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: #fff;
  overflow-y: auto;
  padding: 8px 24px 48px;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.vx-mob-nav.open { transform: translateX(0); }

.vx-mob-nav a {
  display: block;
  font-family: "Satoshi", "Inter", sans-serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--pf-ink);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--pf-border);
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.vx-mob-nav a:hover { color: var(--pf-muted); }

.vx-mob-cta {
  display: block;
  margin-top: 28px;
  background: var(--pf-green) !important;
  color: var(--pf-green-ink) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  border-radius: 12px !important;
  text-align: center;
  padding: 16px 24px !important;
  border-bottom: none !important;
  letter-spacing: -0.02em;
}

@media (max-width: 809px) {
  .vx-mob-bar { display: flex; }
  .vx-mob-nav { display: block; }
  /* Hide the Framer desktop nav */
  #site-header .framer-1585k3b-container { display: none !important; }
}

@media (min-width: 810px) {
  .vx-mob-bar { display: none !important; }
  .vx-mob-nav { display: none !important; transform: none !important; }
}

/* ============================================================ Portfolio Grid page
   (projects/index.html) */

.pf-hero {
  padding: 100px 0 44px;
}

.pf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pf-muted);
  margin: 0 0 18px;
}

.pf-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pf-green);
}

.pf-title {
  font-family: "Host Grotesk", "Satoshi", sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-size: clamp(40px, 6vw, 76px);
  margin: 0 0 20px;
}

.pf-title em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
}

.pf-lede {
  max-width: 620px;
  font-size: 19px;
  color: var(--pf-muted);
  margin: 0;
}

/* Grid */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 28px 0 100px;
}

.pf-card {
  display: block;
  border-radius: 18px;
  background: var(--pf-surface);
  overflow: hidden;
  border: 1px solid var(--pf-border);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.pf-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
}

.pf-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
}

.pf-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.pf-card:hover .pf-card__media img { transform: scale(1.06); }

.pf-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--pf-ink);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.pf-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 22px;
}

.pf-card__title {
  font-family: "Host Grotesk", "Satoshi", sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  margin: 0 0 3px;
}

.pf-card__meta {
  font-size: 13px;
  color: var(--pf-muted);
  margin: 0;
}

.pf-card__arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--pf-border);
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pf-card:hover .pf-card__arrow {
  background: var(--pf-green);
  color: var(--pf-green-ink);
  border-color: var(--pf-green);
  transform: translateX(3px);
}

/* ============================================================ Project Detail — Redesigned
   Uses pd- prefix. Replaces old pf-detail-hero, pf-overview, pf-metrics, etc. */

/* Back row */
.pd-back-row {
  padding-top: 88px;
}

@media (max-width: 809px) {
  .pd-back-row { padding-top: 76px; }
}

.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pf-muted);
  padding: 10px 0;
  transition: color 0.18s ease;
}

.pd-back:hover { color: var(--pf-ink); }

/* Hero — full-bleed image with gradient overlay */
.pd-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  margin-top: 14px;
  border-radius: 20px;
  aspect-ratio: 16 / 7;
  max-height: 560px;
}

.pd-hero__img-wrap {
  position: absolute;
  inset: 0;
}

.pd-hero__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.55);
  transition: transform 8s ease;
}

.pd-hero:hover .pd-hero__img-wrap img { transform: scale(1.04); }

.pd-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.24) 55%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
}

.pd-hero__content {
  padding: 0 32px 52px;
  width: 100%;
}

.pd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pd-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  letter-spacing: 0.02em;
}

.pd-chip--accent {
  background: var(--pf-green);
  color: var(--pf-green-ink);
  border-color: var(--pf-green);
}

.pd-hero__title {
  font-family: "Host Grotesk", "Satoshi", sans-serif;
  font-size: clamp(28px, 4.5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  margin: 0;
  max-width: 720px;
}

/* Overview section */
.pd-section {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--pf-border);
}

.pd-section-title {
  font-family: "Host Grotesk", "Satoshi", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pf-muted);
  margin: 0 0 24px;
}

.pd-overview {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: start;
}

.pd-overview__body p {
  color: var(--pf-muted);
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.8;
}

.pd-overview__body p:last-child { margin-bottom: 0; }

/* Meta card */
.pd-meta {
  border: 1px solid var(--pf-border);
  border-radius: 16px;
  overflow: hidden;
}

.pd-meta__row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--pf-border);
  align-items: start;
}

.pd-meta__row:last-child { border-bottom: none; }

.pd-meta__k {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pf-muted);
  padding-top: 3px;
}

.pd-meta__v {
  font-size: 15px;
  font-weight: 600;
  color: var(--pf-ink);
  line-height: 1.4;
}

/* Metrics band — dark background */
.pd-metrics-band {
  background: var(--pf-ink);
}

.pd-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 64px 0;
}

.pd-metric {
  padding: 0 40px 0 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  margin-right: 40px;
}

.pd-metric:first-child { padding-left: 0; }

.pd-metric:last-child {
  border-right: none;
  margin-right: 0;
}

.pd-metric__num {
  font-family: "Host Grotesk", "Satoshi", sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--pf-green);
}

.pd-metric__num span {
  font-size: 0.6em;
  opacity: 0.85;
}

.pd-metric__label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  margin: 10px 0 0;
}

/* Gallery */
.pd-gallery-section {
  padding: 64px 0 80px;
}

.pd-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pd-gallery__fig {
  margin: 0;
  border-radius: var(--pf-radius);
  overflow: hidden;
  background: #f0f0f0;
}

.pd-gallery__fig img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pd-gallery__fig:hover img { transform: scale(1.04); }

/* Next project */
.pd-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 52px 0 80px;
  border-top: 1px solid var(--pf-border);
  text-decoration: none;
  color: inherit;
}

.pd-next__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--pf-muted);
  margin-bottom: 8px;
}

.pd-next__title {
  font-family: "Host Grotesk", "Satoshi", sans-serif;
  font-size: clamp(22px, 3.5vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--pf-ink);
  transition: color 0.2s ease;
}

.pd-next__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--pf-border);
  display: grid;
  place-items: center;
  font-size: 22px;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
  color: var(--pf-ink);
}

.pd-next:hover .pd-next__title { color: var(--pf-green-ink); }

.pd-next:hover .pd-next__icon {
  background: var(--pf-green);
  border-color: var(--pf-green);
  color: var(--pf-green-ink);
  transform: translateX(6px);
}
/* ============================================================ Blog pages */
.blog-hero { padding: 100px 0 48px; }
.blog-hero .pf-eyebrow { margin-bottom: 14px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 100px;
}

.blog-grid--compact {
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: 0;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.blog-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0f0f0;
}

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

.blog-card:hover .blog-card__img img { transform: scale(1.03); }

.blog-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: linear-gradient(135deg, #f7f7f7 0%, #efefef 100%);
}

.blog-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.blog-card__cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--pf-green-ink);
  background: var(--pf-green);
  padding: 3px 9px;
  border-radius: 999px;
}

.blog-card__title {
  font-family: "Host Grotesk", "Satoshi", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--pf-ink);
}

.blog-card__excerpt {
  font-size: 14px;
  color: var(--pf-muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--pf-muted);
  margin-top: auto;
  padding-top: 8px;
}

.blog-post { padding-bottom: 96px; }

.blog-post__header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--pf-border);
  margin-bottom: 32px;
}

.blog-post__title {
  font-family: "Host Grotesk", "Satoshi", sans-serif;
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 16px 0 14px;
  color: var(--pf-ink);
}

.blog-post__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--pf-muted);
}

.blog-post__cover {
  margin: 0 0 36px;
  border-radius: 12px;
  overflow: hidden;
}

.blog-post__cover img {
  width: 100%;
  display: block;
  max-height: 500px;
  object-fit: cover;
}

.blog-post__lead {
  font-size: 20px;
  color: var(--pf-muted);
  line-height: 1.6;
  margin: 0 0 32px;
  font-style: italic;
  border-left: 3px solid var(--pf-green);
  padding-left: 20px;
}

.blog-post__body {
  font-size: 17px;
  line-height: 1.8;
  color: #2a2a2a;
  max-width: 720px;
}

.blog-post__body p { margin: 0 0 22px; }

.blog-post__body h2 {
  font-family: "Host Grotesk", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
  color: var(--pf-ink);
}

.blog-post__body h3 {
  font-family: "Host Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--pf-ink);
}

.blog-post__footer {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--pf-border);
}

/* ============================================================ Responsive */

@media (max-width: 1000px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-overview { grid-template-columns: 1fr; gap: 40px; }
  .pd-metrics { gap: 0; }
  .pd-metric { padding: 0 32px 0 0; margin-right: 32px; }
}

@media (max-width: 900px) {
  .blog-grid,
  .blog-grid--compact { grid-template-columns: repeat(2, 1fr); }
  .pd-hero { aspect-ratio: 16 / 9; }
}

@media (max-width: 768px) {
  .pf-wrap { padding: 0 18px; }
  .pd-hero { aspect-ratio: 16 / 9; border-radius: 14px; }
  .pd-hero__content { padding-bottom: 32px; }
  .pd-section { padding: 52px 0 48px; }
  .pd-gallery-section { padding: 48px 0 60px; }
  .pd-metrics { padding: 48px 0; }
  .pd-metric { padding: 0 24px 0 0; margin-right: 24px; }
}

@media (max-width: 640px) {
  body.pf { font-size: 16px; }
  .pf-wrap { padding: 0 16px; }

  /* Portfolio grid */
  .pf-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 64px;
  }
  .pf-hero { padding: 96px 0 28px; }
  .pf-title { font-size: clamp(32px, 8vw, 52px); }
  .pf-lede { font-size: 16px; }

  /* Project detail */
  .pd-back-row { padding-top: 72px; }
  .pd-hero {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    margin-top: 10px;
    max-height: none;
  }
  .pd-hero__content { padding-bottom: 24px; }
  .pd-hero__title { font-size: clamp(22px, 6.5vw, 36px); }
  .pd-section { padding: 36px 0 32px; }
  .pd-overview { gap: 32px; }
  .pd-metrics {
    grid-template-columns: 1fr;
    padding: 36px 0;
  }
  .pd-metric {
    padding: 20px 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 0;
  }
  .pd-metric:last-child { border-bottom: none; }
  .pd-gallery { grid-template-columns: 1fr; gap: 14px; }
  .pd-gallery-section { padding: 36px 0 48px; }
  .pd-next { padding: 36px 0 56px; gap: 16px; }
  .pd-next__icon { width: 46px; height: 46px; font-size: 18px; }

  /* Blog */
  .blog-grid,
  .blog-grid--compact { grid-template-columns: 1fr; }
  .blog-post__title { font-size: 28px; }
  .blog-hero { padding: 96px 0 36px; }
}
