/* ============================================================
   Portfolio + miniature site previews
   ============================================================ */
.portfolio {
  overflow: hidden;
  padding-top: 104px;
}

.portfolio::before {
  content: "";
  position: absolute;
  top: 10%;
  right: -20%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12), transparent 68%);
  filter: blur(80px);
  pointer-events: none;
}

.portfolio .section-head {
  align-items: flex-end;
}

.portfolio .section-head .btn {
  margin-top: 24px;
}

.portfolio-counter {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 10px;
}

.portfolio-counter > span {
  color: rgba(255, 255, 255, 0.16);
  font-size: 58px;
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
}

.portfolio-counter small {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portfolio-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  position: relative;
  cursor: pointer;
  outline: none;
}

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

.portfolio-grid.is-expanded .project-card--extra {
  display: block;
}

.project-visual {
  position: relative;
  height: 318px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.2), transparent 60%),
    linear-gradient(145deg, #130c1e, #08040d);
  transition:
    border-color 0.35s ease,
    box-shadow 0.4s ease,
    transform 0.4s var(--ease);
}

.project-visual::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 20%;
  width: 60%;
  height: 80%;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.16);
  filter: blur(55px);
  pointer-events: none;
}

.project-card:hover .project-visual,
.project-card:focus-visible .project-visual {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.42);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.46),
    0 0 50px rgba(124, 58, 237, 0.1);
}

.project-card:focus-visible .project-visual {
  outline: 2px solid #c084fc;
  outline-offset: 4px;
}

.project-tag {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 4;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  background: rgba(5, 3, 8, 0.65);
  color: #d9cde9;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.project-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 18px;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 3, 8, 0.8));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-overlay .icon {
  width: 30px;
  height: 30px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

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

.project-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 3px 0;
}

.project-info h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.project-info p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.project-year {
  flex: 0 0 auto;
  margin-top: 3px;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 600;
}

/* ---------- browser shell ---------- */
.site-mock {
  position: absolute;
  inset: 20px 20px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.55s var(--ease);
}

.project-card:hover .site-mock {
  transform: translateY(-4px) scale(1.012);
}

.mock-bar {
  display: flex;
  flex: 0 0 22px;
  align-items: center;
  gap: 8px;
  height: 22px;
  padding: 0 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.055);
}

.mock-bar--light {
  border-bottom-color: rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.58);
}

.mock-dots {
  display: flex;
  gap: 3px;
}

.mock-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
}

.mock-bar--light .mock-dots i {
  background: rgba(20, 16, 26, 0.22);
}

.mock-url {
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.38);
  font-size: 6.5px;
  letter-spacing: 0.02em;
}

.mock-bar--light .mock-url {
  background: rgba(0, 0, 0, 0.055);
  color: rgba(20, 16, 26, 0.42);
}

.mock-body {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.mini-nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 13px;
}

.mini-brand {
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mini-brand--dark {
  color: #17121c;
}

.mini-brand--logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
}

.mini-brand--logo svg {
  width: 11px;
  height: 11px;
}

.mini-links {
  display: flex;
  gap: 6px;
}

.mini-links i {
  width: 13px;
  height: 1.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.27);
}

.mini-links--dark i {
  background: rgba(20, 16, 26, 0.24);
}

.mini-btn {
  padding: 4px 7px;
  border-radius: 3px;
  background: linear-gradient(135deg, #7c3aed, #c026d3);
  color: #fff;
  font-size: 5.5px;
  font-weight: 700;
  white-space: nowrap;
}

.mini-btn--dark {
  background: #17121c;
  color: #fff;
}

.mini-btn--outline {
  border: 1px solid rgba(20, 16, 26, 0.24);
  background: transparent;
  color: #17121c;
}

.mini-btn--lime {
  background: var(--lime);
  color: #0a0b08;
}

.mini-kicker {
  display: block;
  margin-bottom: 4px;
  color: rgba(216, 180, 254, 0.64);
  font-size: 5.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mini-kicker--dark {
  color: rgba(50, 42, 35, 0.52);
}

.mini-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, #7c3aed, #c026d3);
  color: #fff;
  font-size: 5.5px;
  font-weight: 700;
}

.mini-cta--dark {
  background: #17121c;
  color: #fff;
}

.mini-cta--lime {
  background: var(--lime);
  color: #0a0b08;
}

/* ---------- Gaming preview ---------- */
.site-mock--gaming .mock-body {
  background:
    radial-gradient(circle at 78% 48%, rgba(109, 40, 217, 0.62), transparent 42%),
    radial-gradient(circle at 20% 0%, rgba(88, 28, 135, 0.25), transparent 50%),
    linear-gradient(145deg, #160a27, #08030f 75%);
}

.gaming-content {
  position: absolute;
  inset: 34px 0 0;
  display: flex;
  align-items: center;
  padding: 0 14px 12px;
}

.gaming-copy {
  position: relative;
  z-index: 2;
  width: 60%;
}

.gaming-copy h4 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.gaming-copy p {
  margin: 5px 0 9px;
  color: rgba(233, 213, 255, 0.64);
  font-size: 7.5px;
  letter-spacing: 0.01em;
}

.gaming-art {
  position: absolute;
  right: -12px;
  bottom: -18px;
  width: 64%;
  height: 112%;
  opacity: 0.95;
}

.gaming-art svg {
  width: 100%;
  height: 100%;
}

/* ---------- Your Business preview ---------- */
.site-mock--business .mock-body {
  background: #f2ede6;
  color: #17121c;
}

.business-content {
  position: absolute;
  inset: 33px 0 0;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  padding: 0 14px;
}

.business-copy {
  position: relative;
  z-index: 2;
}

.business-copy h4 {
  font-size: clamp(19px, 1.9vw, 25px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.business-copy p {
  margin: 5px 0 9px;
  color: #746b60;
  font-size: 7px;
  letter-spacing: 0.01em;
}

.business-art {
  position: relative;
  align-self: stretch;
  overflow: hidden;
}

.business-sun {
  position: absolute;
  top: 13%;
  right: 7%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fffdf8, #f1d9b6 62%, #e6c59a);
  box-shadow: 0 0 34px rgba(255, 239, 208, 0.9);
  opacity: 0.9;
}

.building {
  position: absolute;
  bottom: -12px;
  background: linear-gradient(112deg, #eef3f7 0%, #c7d2dd 38%, #94a4b7 72%, #7c8da2 100%);
  box-shadow: -10px 20px 30px rgba(64, 78, 95, 0.14);
}

.building::before {
  content: "";
  position: absolute;
  inset: 9px 7px 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(30, 45, 63, 0.3) 9px 10px),
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(30, 45, 63, 0.16) 7px 8px);
  opacity: 0.75;
}

.building--back {
  right: 35%;
  width: 60px;
  height: 146px;
  opacity: 0.52;
  clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
}

.building--front {
  right: 3%;
  width: 88px;
  height: 186px;
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
}

.business-ground {
  position: absolute;
  left: 0;
  right: -10%;
  bottom: -8px;
  height: 40px;
  background: linear-gradient(180deg, #d9d0c5, #c1b5a7);
  clip-path: polygon(0 58%, 100% 20%, 100% 100%, 0 100%);
  opacity: 0.55;
}

/* ---------- LockalGrade preview ---------- */
.site-mock--studio .mock-body {
  background:
    radial-gradient(circle at 82% 58%, rgba(124, 58, 237, 0.48), transparent 42%),
    radial-gradient(circle at 20% 0%, rgba(88, 28, 135, 0.2), transparent 50%),
    linear-gradient(145deg, #120a1f, #07030d 78%);
}

.studio-content {
  position: absolute;
  inset: 34px 0 0;
  display: flex;
  align-items: center;
  padding: 0 14px 12px;
}

.studio-copy {
  position: relative;
  z-index: 2;
  width: 57%;
}

.studio-copy h4 {
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.studio-copy h4 span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.studio-copy .mini-cta {
  margin-top: 9px;
}

.studio-art {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  height: 100%;
}

.studio-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190px;
  height: 150px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.35);
  filter: blur(38px);
}

.studio-laptop {
  position: absolute;
  right: 9px;
  bottom: 25px;
  width: 134px;
  transform: rotate(-4deg);
}

.studio-laptop__screen {
  display: grid;
  place-items: center;
  height: 80px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px 5px 2px 2px;
  background:
    radial-gradient(circle at 65% 35%, rgba(168, 85, 247, 0.5), transparent 56%),
    #0b0612;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.45);
}

.studio-laptop__screen svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.7));
}

.studio-laptop__base {
  height: 6px;
  margin: 0 -8px;
  border-radius: 2px 2px 6px 6px;
  background: linear-gradient(180deg, #5b4a70, #23172f);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
}

/* ---------- Nova Store preview ---------- */
.site-mock--nova .mock-body {
  background: #f4efe8;
  color: #191410;
}

.nova-content {
  position: absolute;
  inset: 33px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.nova-copy {
  position: relative;
  z-index: 2;
  width: 44%;
}

.nova-copy h4 {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.nova-copy .mini-cta {
  margin-top: 9px;
}

.nova-products {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  width: 56%;
  height: 100%;
  padding: 20px 0 14px;
}

.nova-product {
  position: relative;
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(160deg, #dfd3c5, #b9a994);
  box-shadow: 0 8px 18px rgba(80, 60, 40, 0.12);
}

.nova-product--one { height: 57%; }
.nova-product--two { height: 74%; }
.nova-product--three { height: 48%; }

.nova-product span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fffaf1, #c5b19a 60%, #907e69);
  box-shadow: 0 7px 13px rgba(65, 45, 25, 0.2);
}

.nova-product--two span {
  width: 64%;
  border-radius: 46% 46% 12% 12%;
  background: linear-gradient(145deg, #e7ddd1, #b9a58e);
}

.nova-product--three span {
  width: 48%;
  border-radius: 4px;
  background: linear-gradient(145deg, #d8c8b6, #9e8a73);
}

.nova-cart {
  position: relative;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(20, 16, 26, 0.24);
  border-radius: 50%;
  color: #17121c;
  font-size: 5px;
  font-weight: 800;
}

.nova-cart::before {
  content: "";
  position: absolute;
  top: -5px;
  width: 6px;
  height: 4px;
  border: 1px solid rgba(20, 16, 26, 0.3);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

/* ---------- Aurora preview ---------- */
.site-mock--aurora .mock-body {
  background: #e9e1d5;
  color: #1a1410;
}

.aurora-content {
  position: absolute;
  inset: 33px 0 0;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.aurora-copy {
  position: relative;
  z-index: 2;
  width: 56%;
}

.aurora-copy h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 37px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.055em;
}

.aurora-copy h4 em {
  color: #8c6f52;
  font-weight: 400;
}

.aurora-copy p {
  margin-top: 7px;
  color: #766657;
  font-size: 6.5px;
  letter-spacing: 0.05em;
}

.aurora-art {
  position: absolute;
  top: 0;
  right: 10px;
  bottom: 0;
  width: 47%;
}

.aurora-arch {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: 102px;
  height: 168px;
  overflow: hidden;
  border-radius: 58px 58px 0 0;
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 244, 225, 0.8), transparent 40%),
    linear-gradient(160deg, #c9ad8c, #8d6c4e 55%, #4b3423);
  box-shadow: 0 14px 30px rgba(66, 44, 25, 0.2);
}

.aurora-arch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.14) 36%, transparent 55%);
}

.aurora-arch span {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 44px;
  height: 110px;
  transform: translateX(-50%);
  border-radius: 38px 38px 0 0;
  background: #e9e1d5;
}

/* ---------- Pulse preview ---------- */
.site-mock--pulse .mock-body {
  background:
    radial-gradient(circle at 80% 50%, rgba(199, 244, 100, 0.09), transparent 45%),
    #080906;
}

.pulse-content {
  position: absolute;
  inset: 34px 0 0;
  display: flex;
  align-items: center;
  padding: 0 14px 12px;
}

.pulse-copy {
  position: relative;
  z-index: 2;
  width: 58%;
}

.pulse-copy h4 {
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.pulse-copy h4 span {
  color: var(--lime);
}

.pulse-copy .mini-cta {
  margin-top: 9px;
}

.pulse-art {
  position: absolute;
  top: 50%;
  right: -18px;
  width: 58%;
  height: 130%;
  transform: translateY(-50%);
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(199, 244, 100, 0.26);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pulse-ring--one {
  width: 100px;
  height: 100px;
}

.pulse-ring--two {
  width: 156px;
  height: 156px;
  border-color: rgba(199, 244, 100, 0.16);
}

.pulse-ring--three {
  width: 214px;
  height: 214px;
  border-color: rgba(199, 244, 100, 0.09);
}

.pulse-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #f1ffd0, var(--lime) 55%, #86a82e);
  box-shadow: 0 0 38px rgba(199, 244, 100, 0.55);
}
