/* ════════════════════════════════════════════════════════════
   Velion Ventures — Portfolio page
   Uses the tokens, navbar, buttons and eyebrow from style.css
   ════════════════════════════════════════════════════════════ */

.vv-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.vv-page { min-height: 100svh; }

.vv-portfolio {
  width: 100%;
  padding: calc(var(--vv-nav-h) + 72px) var(--vv-gutter) 120px;
}

/* ── Header ───────────────────────────────────────────────── */
.vv-portfolio__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 56px;
}
.vv-portfolio__head .vv-eyebrow { margin-bottom: 28px; }

.vv-portfolio__title {
  margin: 0;
  font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.75rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.045em;
  animation: vv-rise 1s var(--vv-ease) 0.4s both;
}

.vv-portfolio__lede {
  max-width: 36rem;
  margin: 24px 0 0;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  line-height: 1.62;
  color: var(--vv-muted);
  text-wrap: pretty;
  animation: vv-rise 1s var(--vv-ease) 0.55s both;
}

/* ── Filters ──────────────────────────────────────────────── */
.vv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  animation: vv-rise 1s var(--vv-ease) 0.7s both;
}
.vv-filter {
  height: 34px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--vv-muted);
  font: 500 11px/1 var(--vv-font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s var(--vv-ease), border-color 0.3s var(--vv-ease), background-color 0.3s var(--vv-ease);
}
.vv-filter:hover { color: var(--vv-text); background: rgba(237, 236, 232, 0.04); }
.vv-filter[aria-pressed='true'] {
  color: var(--vv-text);
  border-color: rgba(169, 182, 194, 0.55);
  background: rgba(169, 182, 194, 0.06);
}
.vv-filter:focus-visible { outline: 1px solid var(--vv-accent); outline-offset: 3px; }

/* ── Grid ─────────────────────────────────────────────────── */
.vv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1199px) { .vv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px)  { .vv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 559px)  { .vv-grid { grid-template-columns: 1fr; } }

/* ── Card ─────────────────────────────────────────────────── */
.vv-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--vv-ease), transform 0.8s var(--vv-ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.vv-card.is-visible { opacity: 1; transform: none; }
.vv-card.is-leaving { opacity: 0; transform: scale(0.98); transition-duration: 0.25s; transition-delay: 0s; }
.vv-card[hidden] { display: none; }
.no-js .vv-card { opacity: 1; transform: none; }

.vv-card__link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--vv-border);
  border-radius: 16px;
  background: #0b0b0b;
  overflow: hidden;
  transition: border-color 0.5s var(--vv-ease), background-color 0.5s var(--vv-ease);
}
.vv-card__link:hover { border-color: rgba(237, 236, 232, 0.24); background: #0d0d0d; }
.vv-card__link:focus-visible { outline: 1px solid var(--vv-accent); outline-offset: 4px; }

.vv-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--vv-border);
  overflow: hidden;
}

/* the portal motif from the hero, in miniature */
.vv-card__arches {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(237, 236, 232, 0.09);
  transition: color 0.6s var(--vv-ease), transform 0.9s var(--vv-ease);
  transform-origin: 50% 100%;
}
.vv-card__link:hover .vv-card__arches { color: rgba(169, 182, 194, 0.3); transform: scale(1.04); }

.vv-card__logo,
.vv-card__initials {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  border: 1px solid var(--vv-border);
  background: #121212;
  object-fit: cover;
  box-shadow: 0 0 0 8px var(--vv-bg);
  transition: transform 0.6s var(--vv-ease), border-color 0.6s var(--vv-ease);
}
.vv-card__initials {
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--vv-text);
}
.vv-card__link:hover .vv-card__logo,
.vv-card__link:hover .vv-card__initials { transform: translateY(-4px); border-color: rgba(237, 236, 232, 0.24); }

.vv-card__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 6px;
}
.vv-card__name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--vv-text);
}
.vv-card__tag {
  flex: none;
  padding: 5px 10px;
  border: 1px solid var(--vv-border);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vv-muted);
}
.vv-card__handle {
  padding: 0 20px 20px;
  font-size: 13px;
  color: var(--vv-subtle);
  transition: color 0.4s var(--vv-ease);
}
.vv-card__link:hover .vv-card__handle { color: var(--vv-muted); }

@media (max-width: 559px) {
  .vv-card__media { aspect-ratio: 16 / 9; }
}

/* ── More ────────────────────────────────────── */
.vv-portfolio__more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 56px;
}

@media (max-width: 767px) {
  .vv-portfolio { padding-top: calc(var(--vv-nav-h) + 48px); padding-bottom: 88px; }
  .vv-portfolio__head { margin-bottom: 40px; }
  .vv-filters { margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .vv-card { opacity: 1; transform: none; }
}

/* ── Portfolio as a section on the home page ──────────────── */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.vv-portfolio--section {
  scroll-margin-top: calc(var(--vv-nav-h) - 24px);
  padding-top: 136px;
  padding-bottom: 136px;
}
@media (max-width: 767px) {
  .vv-portfolio--section { padding-top: 96px; padding-bottom: 96px; }
}

/* In a section, content reveals on scroll instead of on page load */
.vv-portfolio--section .vv-eyebrow,
.vv-portfolio--section .vv-portfolio__title,
.vv-portfolio--section .vv-portfolio__lede,
.vv-portfolio--section .vv-filters { animation: none; }

.vv-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--vv-ease), transform 0.9s var(--vv-ease);
}
.vv-reveal.is-visible { opacity: 1; transform: none; }
.vv-portfolio__title.vv-reveal { transition-delay: 0.08s; }
.vv-portfolio__lede.vv-reveal { transition-delay: 0.16s; }
.vv-filters.vv-reveal { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .vv-reveal { opacity: 1; transform: none; }
}