/* Page: Portfolio | Version: v1 */

/* Start: Portfolio Base */
.portfolio-page {
  background:
    radial-gradient(circle at 86% 7%, rgba(214, 177, 90, 0.18), transparent 27%),
    radial-gradient(circle at 8% 48%, rgba(184, 137, 56, 0.1), transparent 24%),
    linear-gradient(180deg, #050505 0%, #080704 46%, #050505 100%);
}

.portfolio-page main {
  overflow: hidden;
}
/* End: Portfolio Base */

/* Start: Portfolio Hero */
.portfolio-hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  padding: 154px 0 96px;
}

.portfolio-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(214, 177, 90, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 177, 90, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  pointer-events: none;
}

.portfolio-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 72px;
}

.portfolio-hero__content h1 {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 1.18;
  letter-spacing: -0.055em;
}

.portfolio-hero__content h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--primary-strong), var(--primary), #9f732c);
  -webkit-background-clip: text;
  background-clip: text;
}

.portfolio-hero__content > p {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  line-height: 2.05;
}

.portfolio-hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.portfolio-hero__notes span {
  position: relative;
  padding: 9px 31px 9px 14px;
  border: 1px solid rgba(214, 177, 90, 0.15);
  border-radius: 999px;
  color: #ead9b0;
  background: rgba(214, 177, 90, 0.055);
  font-size: 0.78rem;
}

.portfolio-hero__notes span::before {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(214, 177, 90, 0.08);
  content: "";
  transform: translateY(-50%);
}

.portfolio-hero__visual {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
}

.portfolio-logo-orbit {
  position: absolute;
  width: min(90%, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(214, 177, 90, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 58px rgba(214, 177, 90, 0.025),
    0 0 0 118px rgba(214, 177, 90, 0.014);
  animation: portfolio-orbit-spin 22s linear infinite;
}

.portfolio-logo-orbit::before,
.portfolio-logo-orbit::after {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 22px rgba(214, 177, 90, 0.75);
  content: "";
}

.portfolio-logo-orbit::before {
  top: 8%;
  right: 18%;
}

.portfolio-logo-orbit::after {
  bottom: 10%;
  left: 16%;
}

.portfolio-logo-card {
  position: relative;
  z-index: 2;
  width: min(62%, 280px);
  aspect-ratio: 1;
  padding: 30px;
  border: 1px solid rgba(214, 177, 90, 0.26);
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(214, 177, 90, 0.1), rgba(255, 255, 255, 0.018)),
    rgba(7, 7, 7, 0.9);
  box-shadow:
    0 38px 90px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: rotate(-4deg);
}

.portfolio-logo-card img {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
}

.portfolio-orbit-chip {
  position: absolute;
  z-index: 3;
  padding: 10px 15px;
  border: 1px solid rgba(214, 177, 90, 0.18);
  border-radius: 13px;
  color: #f4ddb0;
  background: rgba(9, 8, 6, 0.82);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  font-size: 0.78rem;
  backdrop-filter: blur(16px);
}

.portfolio-orbit-chip--one {
  top: 16%;
  right: 1%;
}

.portfolio-orbit-chip--two {
  bottom: 16%;
  left: 2%;
}

@keyframes portfolio-orbit-spin {
  to {
    transform: rotate(360deg);
  }
}
/* End: Portfolio Hero */

/* Start: Portfolio Library */
.portfolio-library {
  position: relative;
  padding: 112px 0;
  border-top: 1px solid rgba(214, 177, 90, 0.1);
  background: rgba(255, 255, 255, 0.012);
}

.portfolio-library__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr);
  align-items: end;
  gap: 50px;
}

.portfolio-library__heading h2 {
  max-width: 700px;
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.portfolio-library__heading > p {
  margin: 0;
  color: var(--text-soft);
  line-height: 2;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.65fr);
  align-items: stretch;
  gap: 24px;
  margin-top: 54px;
}

.demo-card,
.more-demos-card {
  min-width: 0;
  border: 1px solid rgba(214, 177, 90, 0.14);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(214, 177, 90, 0.045), transparent 45%),
    rgba(15, 13, 9, 0.82);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.demo-card {
  overflow: hidden;
}

.demo-card__link {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  color: inherit;
  cursor: pointer;
}

.demo-card__preview {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 46px;
  border-left: 1px solid rgba(214, 177, 90, 0.12);
  background:
    radial-gradient(circle at 22% 16%, rgba(240, 198, 119, 0.17), transparent 28%),
    linear-gradient(145deg, #161008, #080706 68%);
}

.demo-card__preview::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(214, 177, 90, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 177, 90, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  mask-image: linear-gradient(black, transparent 90%);
}

.browser-window {
  position: relative;
  z-index: 1;
  width: min(100%, 610px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background: #0d0c0a;
  box-shadow: 0 36px 70px rgba(0, 0, 0, 0.45);
  transform: perspective(1100px) rotateY(4deg) rotateX(1deg);
  transition: transform 380ms ease, box-shadow 380ms ease;
}

.demo-card__link:hover .browser-window {
  box-shadow: 0 46px 90px rgba(0, 0, 0, 0.55);
  transform: perspective(1100px) rotateY(0deg) rotateX(0deg) translateY(-6px);
}

.browser-window__bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #15130f;
  direction: ltr;
}

.browser-window__bar > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(214, 177, 90, 0.42);
}

.browser-window__address {
  width: min(52%, 240px);
  margin-inline: auto;
  padding: 4px 12px;
  border-radius: 7px;
  color: rgba(255, 247, 230, 0.38);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.58rem;
  text-align: center;
}

.store-demo {
  min-height: 330px;
  display: grid;
  grid-template-columns: 50px 1fr;
}

.store-demo__sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.018);
}

.store-demo__sidebar span {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
}

.store-demo__sidebar span.is-active {
  background: linear-gradient(145deg, var(--primary), #9a6b24);
  box-shadow: 0 8px 18px rgba(184, 137, 56, 0.24);
}

.store-demo__content {
  padding: 24px;
}

.store-demo__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.store-demo__brand {
  width: 76px;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), rgba(214, 177, 90, 0.28));
}

.store-demo__search {
  width: 46%;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.store-demo__banner {
  height: 112px;
  margin-top: 24px;
  border: 1px solid rgba(214, 177, 90, 0.12);
  border-radius: 15px;
  background:
    radial-gradient(circle at 20% 50%, rgba(240, 198, 119, 0.26), transparent 24%),
    linear-gradient(115deg, rgba(214, 177, 90, 0.15), rgba(255, 255, 255, 0.02));
}

.store-demo__products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.store-demo__products span {
  height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(214, 177, 90, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.026);
}

.demo-card__category {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  padding: 8px 13px;
  border: 1px solid rgba(214, 177, 90, 0.2);
  border-radius: 999px;
  color: #f2dcac;
  background: rgba(7, 7, 7, 0.82);
  font-size: 0.7rem;
  backdrop-filter: blur(10px);
}

.demo-card__content {
  display: flex;
  flex-direction: column;
  padding: 42px 36px;
}

.demo-card__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.demo-card__eyebrow {
  color: var(--primary);
  font-size: 0.73rem;
  font-weight: 500;
}

.demo-card__title-row h3 {
  margin: 8px 0 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.35;
}

.demo-card__arrow {
  width: 46px;
  height: 46px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(214, 177, 90, 0.16);
  border-radius: 14px;
  color: var(--primary-strong);
  background: rgba(214, 177, 90, 0.055);
  font-size: 1.1rem;
  transition: transform 260ms ease, background 260ms ease;
}

.demo-card__link:hover .demo-card__arrow {
  background: rgba(214, 177, 90, 0.12);
  transform: translate(-3px, -3px);
}

.demo-card__content > p {
  margin: 22px 0 0;
  color: var(--text-soft);
  line-height: 2;
}

.demo-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.demo-card__features span {
  padding: 7px 11px;
  border: 1px solid rgba(214, 177, 90, 0.12);
  border-radius: 9px;
  color: #d8c59a;
  background: rgba(214, 177, 90, 0.035);
  font-size: 0.68rem;
}

.demo-card__footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 34px;
}

.demo-card__action {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-strong);
  font-weight: 700;
}

.demo-card__status {
  color: rgba(255, 247, 230, 0.4);
  font-size: 0.68rem;
}

.more-demos-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 36px;
}

.more-demos-card::before {
  position: absolute;
  top: -100px;
  left: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(214, 177, 90, 0.1);
  filter: blur(70px);
  content: "";
}

.more-demos-card__icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  border: 1px solid rgba(214, 177, 90, 0.19);
  border-radius: 19px;
  color: var(--primary-strong);
  background: rgba(214, 177, 90, 0.065);
  font-size: 2rem;
  font-weight: 300;
}

.more-demos-card h3 {
  margin: 12px 0 0;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.55;
}

.more-demos-card p {
  margin: 18px 0 0;
  color: var(--text-soft);
  line-height: 2;
}

.more-demos-card__line {
  height: 1px;
  margin-top: 28px;
  background: linear-gradient(90deg, transparent, rgba(214, 177, 90, 0.2));
}

.more-demos-card small {
  margin-top: 16px;
  color: rgba(255, 247, 230, 0.34);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}
/* End: Portfolio Library */

/* Start: Portfolio CTA */
.portfolio-cta {
  padding: 90px 0 120px;
}

.portfolio-cta__card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  overflow: hidden;
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid rgba(214, 177, 90, 0.16);
  border-radius: 32px;
  background:
    radial-gradient(circle at 10% 20%, rgba(214, 177, 90, 0.13), transparent 26%),
    linear-gradient(130deg, rgba(214, 177, 90, 0.07), rgba(255, 255, 255, 0.018));
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.25);
}

.portfolio-cta__card h2 {
  max-width: 720px;
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 4vw, 3.15rem);
  line-height: 1.45;
}

.portfolio-cta__card p {
  margin: 14px 0 0;
  color: var(--text-soft);
}

.portfolio-cta__card .btn {
  flex: 0 0 auto;
}
/* End: Portfolio CTA */

/* Start: Pending Link Toast */
.portfolio-toast {
  position: fixed;
  z-index: 200;
  right: 50%;
  bottom: 24px;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border: 1px solid rgba(214, 177, 90, 0.22);
  border-radius: 13px;
  color: #f8e3b8;
  background: rgba(12, 10, 7, 0.92);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 18px);
  transition: opacity 220ms ease, transform 220ms ease;
  backdrop-filter: blur(16px);
}

.portfolio-toast.is-visible {
  opacity: 1;
  transform: translate(50%, 0);
}
/* End: Pending Link Toast */

/* Start: Portfolio Responsive */
@media (max-width: 980px) {
  .portfolio-hero__grid,
  .portfolio-library__heading,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-hero__grid {
    gap: 34px;
  }

  .portfolio-hero__visual {
    min-height: 380px;
  }

  .portfolio-library__heading {
    gap: 20px;
  }

  .demo-card__link {
    grid-template-columns: 1fr;
  }

  .demo-card__preview {
    min-height: 430px;
    border-left: 0;
    border-bottom: 1px solid rgba(214, 177, 90, 0.12);
  }

  .more-demos-card {
    min-height: 390px;
  }
}

@media (max-width: 720px) {
  .portfolio-hero {
    min-height: auto;
    padding: 128px 0 70px;
  }

  .portfolio-hero__content h1 {
    font-size: clamp(2.35rem, 12vw, 4.4rem);
  }

  .portfolio-hero__visual {
    min-height: 330px;
  }

  .portfolio-logo-card {
    width: 210px;
    padding: 22px;
    border-radius: 32px;
  }

  .portfolio-logo-card img {
    border-radius: 22px;
  }

  .portfolio-library {
    padding: 82px 0;
  }

  .demo-grid {
    margin-top: 36px;
  }

  .demo-card__preview {
    min-height: 330px;
    padding: 22px;
  }

  .store-demo {
    min-height: 250px;
    grid-template-columns: 38px 1fr;
  }

  .store-demo__content {
    padding: 16px;
  }

  .store-demo__banner {
    height: 86px;
  }

  .store-demo__products span {
    height: 60px;
  }

  .demo-card__content,
  .more-demos-card {
    padding: 28px 22px;
  }

  .portfolio-cta {
    padding: 70px 0 90px;
  }

  .portfolio-cta__card {
    align-items: stretch;
    flex-direction: column;
    padding: 30px 22px;
    border-radius: 25px;
  }

  .portfolio-cta__card .btn {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .portfolio-hero__notes {
    display: grid;
  }

  .portfolio-hero__notes span {
    width: fit-content;
  }

  .portfolio-hero__visual {
    min-height: 280px;
  }

  .portfolio-logo-card {
    width: 170px;
  }

  .portfolio-logo-orbit {
    width: 250px;
  }

  .portfolio-orbit-chip {
    padding: 8px 11px;
    font-size: 0.66rem;
  }

  .portfolio-orbit-chip--one {
    right: -2px;
  }

  .portfolio-orbit-chip--two {
    left: -2px;
  }

  .demo-card__preview {
    min-height: 280px;
    padding: 14px;
  }

  .browser-window__bar {
    height: 34px;
  }

  .browser-window__address {
    display: none;
  }

  .store-demo {
    min-height: 215px;
  }

  .store-demo__sidebar {
    gap: 10px;
    padding-top: 18px;
  }

  .store-demo__sidebar span {
    width: 15px;
    height: 15px;
  }

  .store-demo__banner {
    height: 70px;
    margin-top: 16px;
  }

  .store-demo__products {
    gap: 7px;
    margin-top: 10px;
  }

  .store-demo__products span {
    height: 48px;
  }

  .demo-card__title-row h3 {
    font-size: 1.65rem;
  }

  .demo-card__arrow {
    width: 42px;
    height: 42px;
  }

  .demo-card__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-card__features span {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-logo-orbit {
    animation: none;
  }
}
/* End: Portfolio Responsive */


/* Start: Dynamic Portfolio Controls */
.portfolio-filters { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(170px, .8fr) minmax(170px, .8fr) auto; gap: 14px; align-items: end; margin: 0 0 34px; padding: 18px; border: 1px solid rgba(213,166,61,.18); border-radius: 22px; background: rgba(255,255,255,.025); }
.portfolio-filters label { display: grid; gap: 8px; color: #d9cfb7; font-size: .8rem; }
.portfolio-filters input, .portfolio-filters select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid rgba(255,255,255,.11); border-radius: 13px; background: rgba(5,5,5,.86); color: #f5efe2; font-family: inherit; outline: none; }
.portfolio-filters input:focus, .portfolio-filters select:focus { border-color: rgba(213,166,61,.58); box-shadow: 0 0 0 3px rgba(213,166,61,.08); }
.demo-grid--dynamic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demo-card__preview { position: relative; }
.demo-card__preview-image { width: 100%; height: 100%; min-height: 360px; object-fit: cover; display: block; }
.demo-card__preview > .portfolio-status { position: absolute; top: 24px; left: 24px; z-index: 3; backdrop-filter: blur(10px); }
.portfolio-empty-state { grid-column: 1 / -1; min-height: 360px; }
.project-detail-hero { padding-bottom: 70px; }
.project-detail-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(34px, 6vw, 90px); align-items: center; }
.project-detail-cover { min-height: 430px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(213,166,61,.2); border-radius: 30px; background: radial-gradient(circle at 50% 35%, rgba(213,166,61,.15), transparent 55%), #080806; }
.project-detail-cover > img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; }
.project-detail-content { padding-top: 80px; }
.project-detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(270px, .6fr); gap: 28px; align-items: start; }
.project-detail-copy, .project-detail-side { padding: clamp(22px, 4vw, 42px); border: 1px solid rgba(213,166,61,.16); border-radius: 26px; background: rgba(255,255,255,.025); }
.project-detail-copy h2 { margin: 10px 0 22px; font-size: clamp(1.8rem, 4vw, 3rem); }
.project-rich-text { color: #cfc5ad; line-height: 2.05; }
.project-detail-side { display: grid; gap: 22px; }
.project-detail-fact { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); color: #cfc5ad; }
.project-gallery { margin-top: 70px; }
.project-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project-gallery-grid figure { margin: 0; overflow: hidden; border: 1px solid rgba(213,166,61,.15); border-radius: 22px; background: #090908; }
.project-gallery-grid img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.project-gallery-grid figcaption { padding: 13px 16px; color: #bdb39c; }
@media (max-width: 920px) { .portfolio-filters { grid-template-columns: 1fr 1fr; } .portfolio-filters .btn { width: 100%; } .demo-grid--dynamic, .project-detail-hero__grid, .project-detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .portfolio-filters { grid-template-columns: 1fr; } .demo-grid--dynamic, .project-gallery-grid { grid-template-columns: 1fr; } .demo-card__preview-image { min-height: 270px; } .project-detail-cover, .project-detail-cover > img { min-height: 310px; } }
/* End: Dynamic Portfolio Controls */
