.portfolio-hero {
  position: relative;
  min-height: 700px;
  display: grid;
  align-items: center;
  padding: 145px 0 82px;
  overflow: hidden;
}

.portfolio-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 590px;
  height: 900px;
  right: -175px;
  top: -335px;
  transform: rotate(31deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(203,252,4,.018) 21%,
    rgba(203,252,4,.105) 49%,
    rgba(255,255,255,.032) 57%,
    rgba(203,252,4,.018) 72%,
    transparent
  );
  pointer-events: none;
}

.portfolio-hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: 68px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 23px;
  color: var(--muted-2);
  font-size: .72rem;
  font-weight: 740;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--lime);
}

.portfolio-hero-copy .eyebrow {
  margin-bottom: 18px;
}

.portfolio-hero-copy h1 {
  max-width: 850px;
}

.portfolio-hero-copy .lede {
  max-width: 710px;
  margin-top: 24px;
}

.portfolio-hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.portfolio-hero-note span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 999px;
  color: #dce1d7;
  background: rgba(255,255,255,.02);
  font-size: .75rem;
  font-weight: 720;
}

.portfolio-stack {
  position: relative;
  min-height: 510px;
}

.stack-card {
  position: absolute;
  width: 84%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 23px;
  background: #111;
  box-shadow: 0 28px 70px rgba(0,0,0,.34);
}

.stack-card.one {
  left: 3%;
  top: 7%;
  transform: rotate(-5deg);
  opacity: .6;
}

.stack-card.two {
  right: 1%;
  top: 18%;
  transform: rotate(5deg);
  opacity: .76;
}

.stack-card.three {
  left: 8%;
  top: 28%;
  z-index: 3;
}

.stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.stack-badge {
  position: absolute;
  left: 15px;
  bottom: 15px;
  padding: 8px 11px;
  border: 1px solid rgba(203,252,4,.22);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(8,10,7,.85);
  font-size: .62rem;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.portfolio-strip {
  padding: 0 0 32px;
}

.portfolio-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.018);
  overflow: hidden;
}

.portfolio-fact {
  min-height: 120px;
  display: grid;
  align-content: center;
  padding: 22px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.portfolio-fact:last-child {
  border-right: 0;
}

.portfolio-fact strong {
  color: var(--lime);
  font-size: 1.25rem;
  letter-spacing: -.035em;
}

.portfolio-fact span {
  margin-top: 7px;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.45;
}

.portfolio-section {
  padding: clamp(5rem, 8vw, 7.5rem) 0;
}

.portfolio-head {
  display: grid;
  grid-template-columns: 1fr .76fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 30px;
}

.portfolio-head .eyebrow {
  margin-bottom: 18px;
}

.portfolio-head p {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.72;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.02);
  font: inherit;
  font-size: .76rem;
  font-weight: 740;
  cursor: pointer;
  transition: .2s ease;
}

.filter-button:hover,
.filter-button.active {
  border-color: rgba(203,252,4,.28);
  color: var(--lime);
  background: rgba(203,252,4,.055);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  transition: border-color .25s ease, transform .25s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(203,252,4,.22);
}

.project-card.hidden {
  display: none;
}

.project-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.shot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity .32s ease, transform .55s ease;
}

.shot-img.active {
  opacity: 1;
}

.project-card:hover .shot-img.active {
  transform: scale(1.018);
}

.shot-shade {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 32%;
  background: linear-gradient(transparent, rgba(0,0,0,.42));
  pointer-events: none;
}

.shot-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: #fff;
  background: rgba(8,10,7,.63);
  opacity: .62;
  cursor: pointer;
  transform: translateY(-50%);
  transition: .2s ease;
  backdrop-filter: blur(8px);
}

.project-card:hover .shot-arrow,
.shot-arrow:focus-visible {
  opacity: 1;
}

.shot-arrow:hover {
  color: #080a06;
  background: var(--lime);
}

.shot-arrow svg {
  width: 18px;
  height: 18px;
}

.shot-prev {
  left: 12px;
}

.shot-next {
  right: 12px;
}

.shot-dots {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 13px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.shot-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.shot-dot.active {
  width: 19px;
  background: var(--lime);
}

.project-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted-2);
  font-size: .7rem;
  font-weight: 740;
}

.project-meta span + span::before {
  content: "•";
  margin-right: 7px;
  color: rgba(203,252,4,.55);
}

.project-card h3 {
  margin: 16px 0 10px;
  font-size: 1.42rem;
}

.project-card p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.68;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 23px;
  color: var(--lime);
  font-size: .82rem;
  font-weight: 800;
}

.project-link svg {
  width: 16px;
  height: 16px;
  transition: transform .2s ease;
}

.project-link:hover svg {
  transform: translate(2px, -2px);
}

.build-principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.build-card {
  min-height: 235px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255,255,255,.02);
}

.build-card span {
  color: var(--lime);
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.build-card h3 {
  margin: 40px 0 10px;
  font-size: 1.12rem;
}

.build-card p {
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.66;
}

.portfolio-close {
  padding: 0 0 clamp(5rem, 8vw, 7rem);
}

.portfolio-close-box {
  position: relative;
  overflow: hidden;
  padding: 70px 38px;
  border: 1px solid rgba(203,252,4,.2);
  border-radius: 30px;
  background:
    linear-gradient(120deg, rgba(203,252,4,.06), transparent 36%),
    linear-gradient(155deg, #151913, #0d0f0c);
  text-align: center;
}

.portfolio-close-box::before {
  content: "";
  position: absolute;
  width: 470px;
  height: 730px;
  right: -130px;
  top: -290px;
  transform: rotate(31deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(203,252,4,.025),
    rgba(203,252,4,.1),
    rgba(255,255,255,.03),
    transparent
  );
}

.portfolio-close-box > * {
  position: relative;
  z-index: 1;
}

.portfolio-close-box .eyebrow {
  margin-bottom: 18px;
}

.portfolio-close-box h2 {
  max-width: 800px;
  margin-inline: auto;
}

.portfolio-close-box p {
  max-width: 660px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.72;
}

.portfolio-close-box .btn-row {
  justify-content: center;
  margin-top: 28px;
}

@media (max-width: 1040px) {
  .portfolio-hero-grid,
  .portfolio-head {
    grid-template-columns: 1fr;
  }

  .portfolio-stack {
    width: min(720px, 100%);
    margin-inline: auto;
  }

  .build-principles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .portfolio-hero {
    min-height: auto;
    padding-top: 120px;
  }

  .portfolio-stack {
    min-height: 410px;
  }

  .portfolio-facts,
  .project-grid,
  .build-principles {
    grid-template-columns: 1fr;
  }

  .portfolio-fact {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .portfolio-fact:last-child {
    border-bottom: 0;
  }

  .project-body {
    padding: 22px;
  }

  .shot-arrow {
    opacity: 1;
  }

  .portfolio-close-box {
    padding: 62px 22px;
  }
}
