/* components.css — hero, trust/proof cards (testimonial, Upwork), badges, metrics, lightbox */
/* ---- Hero ---- */
.hero {
  min-height: calc(100vh - 52px);
  min-height: calc(100svh - 52px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 0 32px;
}

.hero > .container {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: min(var(--max), 92%);
  margin: 0;
}

.hero-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-right {
  justify-self: center;
  max-width: 34rem;
}

.hero-right h1 {
  margin-bottom: 0.5em;
}

.hero-line {
  position: relative;
  align-self: stretch;
  width: 96px;
}

.hero-line::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, var(--gold), rgba(232, 197, 106, 0.4) 16%, rgba(232, 197, 106, 0.4) 90%, transparent);
}

.hero-branch {
  position: relative;
  width: 150px;
  height: 2px;
  margin: 32px 0 32px -52px; /* -52px = 48px (half of the 96px divider) + 4px centering gap, so the dot lands on the divider */
  background: linear-gradient(90deg, rgba(232, 197, 106, 0.55), transparent);
}

.hero-branch::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(232, 197, 106, 0.14), 0 0 18px rgba(232, 197, 106, 0.45);
  z-index: 2;
}

.hero-bottom {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.hero-bottom .status {
  margin: 0;
}

.hero-skills {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, auto);
  column-gap: 20px;
  row-gap: 12px;
  margin: 0;
  padding: 0;
  margin-left: 100px;
}

.hero-skills li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-skills li {
  gap: 8px;
}

.hero-skills li:nth-child(1) { --i: 0; }
.hero-skills li:nth-child(2) { --i: 1; }
.hero-skills li:nth-child(3) { --i: 2; }
.hero-skills li:nth-child(4) { --i: 3; }

.hero-skill-marker {
  --in: calc(2s + var(--i) * 0.32s);
  display: grid;
  place-items: center;
  flex: none;
  width: 15px;
  height: 15px;
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(233, 194, 91, 0.55));
  animation:
    hero-skill-star-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) var(--in) both,
    hero-skill-twinkle 3s ease-in-out calc(var(--in) + 0.5s) infinite;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-skill-marker svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-skill-label {
  color: #fff;
  animation: hero-skill-label-in 0.45s ease calc(2s + var(--i) * 0.32s + 0.2s) both;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.28), 0 0 3px rgba(255, 255, 255, 0.16);
}

@keyframes hero-skill-star-in {
  from { opacity: 0; transform: scale(0.3) rotate(-60deg); }
  to   { opacity: 1; transform: none; }
}

@keyframes hero-skill-label-in {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: none; }
}

.hero-skills li:hover .hero-skill-marker {
  transform: rotate(45deg) scale(1.2);
  filter: drop-shadow(0 0 8px rgba(233, 194, 91, 0.7));
}

@keyframes hero-skill-twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.82); }
}

/* ---- Hero entrance animation ---- */
@keyframes hero-portrait {
  0%   { opacity: 0; transform: translateY(28vh) scale(0.92); }
  10%  { opacity: 1; transform: translateY(28vh) scale(1); }
  63%  { opacity: 1; transform: translateY(28vh) scale(1); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes hero-loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes hero-loader-fade {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes hero-draw-y {
  from { opacity: 0; transform: scaleY(0); }
  to   { opacity: 1; transform: scaleY(1); }
}

@keyframes hero-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes hero-in-left {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes hero-in-right {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes hero-in-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-in-down {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.portrait-wrap {
  position: relative;
  animation: hero-portrait 1.9s var(--ease) both;
}

.hero-loader {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  animation: hero-loader-spin 1.2s ease-in-out forwards, hero-loader-fade 0.7s ease forwards;
  animation-delay: 0s, 1.2s;
}

.hero-loader::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(232, 197, 106, 0.15), 0 0 14px rgba(232, 197, 106, 0.5);
}

.hero-line::before {
  transform-origin: top center;
  animation: hero-draw-y 0.45s linear both;
  animation-delay: 1.75s;
}

.hero-branch {
  animation: hero-fade 0.45s ease both;
  animation-delay: 1.75s;
}

.hero-left {
  animation: hero-in-left 0.45s var(--ease) both;
  animation-delay: 1.5s;
  margin-top: -80px;
}

.hero-right {
  animation: hero-in-right 0.45s var(--ease) both;
  animation-delay: 1.5s;
}

.hero-bottom {
  animation: hero-in-up 0.45s var(--ease) both;
  animation-delay: 1.7s;
}

header.nav {
  animation: hero-in-down 0.45s var(--ease) both;
  animation-delay: 1.7s;
}

.portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, 0.08), transparent 55%), linear-gradient(160deg, #17181c, #0b0c0e);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 0 0 5px rgba(232, 197, 106, 0.14), 0 0 22px rgba(232, 197, 106, 0.4), 0 20px 40px rgba(0, 0, 0, 0.5);
}

.portrait-monogram {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 1;
}

.portrait-monogram img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.devices {
  --dv-rim: linear-gradient(145deg, #a7aebb 0%, #3b3f48 35%, #8d95a4 60%, #2a2d34 100%);
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1000 / 600;
}

.dv {
  position: absolute;
}

.dv--browser {
  left: 22%;
  top: 0;
  width: 70%;
  z-index: 1;
  filter: drop-shadow(-18px 0 30px rgba(64, 150, 255, 0.45)) drop-shadow(18px 6px 30px rgba(240, 190, 80, 0.42));
}

.dv--phone {
  left: 7%;
  top: 20%;
  width: 16%;
  z-index: 3;
  filter: drop-shadow(0 0 24px rgba(64, 150, 255, 0.5));
}

.dv--tablet {
  right: -12%;
  top: 34%;
  width: 34%;
  z-index: 2;
  filter: drop-shadow(0 0 26px rgba(240, 190, 80, 0.45));
}

.dv--browser,
.dv--phone,
.dv--tablet {
  container-type: inline-size;
}

.dv__screen {
  position: relative;
  overflow: hidden;
  background: #111214;
}

.dv__screen .shot-slides {
  inset: 0;
}

/* --- browser --- */
.dv__browser {
  border-radius: 2.6cqw;
  padding: 0 1.1cqw 1.1cqw;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 30px 60px rgba(0, 0, 0, 0.6);
}

.dv__bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 6.2cqw;
  padding: 0 0.8cqw;
}

.dv__dots {
  display: flex;
  gap: 0.9cqw;
}

.dv__dots i {
  width: 1.6cqw;
  aspect-ratio: 1;
  border-radius: 50%;
}

.dv__dots i:nth-child(1) { background: #ff5f57; }
.dv__dots i:nth-child(2) { background: #febc2e; }
.dv__dots i:nth-child(3) { background: #28c840; }

.dv__url {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 33%;
  height: 3.2cqw;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.35cqw;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
}

.dv--browser .dv__screen {
  aspect-ratio: 16 / 10;
  border-radius: 1.1cqw;
}

/* --- phone --- */
.dv__phone {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 17cqw;
  border: 2.2cqw solid transparent;
  background:
    linear-gradient(#050506, #050506) padding-box,
    var(--dv-rim) border-box;
  padding: 3.2cqw;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.dv__phone::before,
.dv__phone::after {
  content: "";
  position: absolute;
  width: 1.6cqw;
  border-radius: 2px;
  background: #5d626c;
}

.dv__phone::before {
  left: -3.6cqw;
  top: 22%;
  height: 13%;
  box-shadow: 0 -11cqw 0 #5d626c;
}

.dv__phone::after {
  right: -3.6cqw;
  top: 28%;
  height: 18%;
}

.dv--phone .dv__screen {
  width: 100%;
  height: 100%;
  border-radius: 13cqw;
}

.dv__island {
  position: absolute;
  z-index: 5;
  top: 2.4cqw;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 9cqw;
  border-radius: 999px;
  background: #000;
}

.dv__status {
  position: absolute;
  z-index: 4;
  inset: 0 0 auto 0;
  height: 14cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9cqw;
  color: #fff;
  font-size: 5cqw;
  font-weight: 600;
  pointer-events: none;
}

.dv__status-icons {
  display: flex;
  gap: 1.6cqw;
  align-items: center;
}

.dv__status-icons i {
  display: block;
  background: #fff;
  border-radius: 1px;
}

.dv__status-icons i:nth-child(1) {
  width: 5cqw;
  height: 3.2cqw;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.dv__status-icons i:nth-child(2) {
  width: 4.5cqw;
  height: 3.2cqw;
  border-radius: 50% 50% 0 0;
}

.dv__status-icons i:nth-child(3) {
  width: 8cqw;
  height: 3.6cqw;
  border-radius: 1.2cqw;
}

.dv__home {
  position: absolute;
  z-index: 5;
  bottom: 2.4cqw;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 1.5cqw;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}

/* --- tablet --- */
.dv__tablet {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 5cqw;
  border: 1.1cqw solid transparent;
  background:
    linear-gradient(#0b0b0d, #0b0b0d) padding-box,
    var(--dv-rim) border-box;
  padding: 2.6cqw;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.dv__camera {
  position: absolute;
  top: 0.9cqw;
  left: 50%;
  transform: translateX(-50%);
  width: 1cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #1f2a3a;
  box-shadow: inset 0 0 0 0.2cqw #000;
}

.dv--tablet .dv__screen {
  width: 100%;
  height: 100%;
  border-radius: 2.4cqw;
}

.shot-slides {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.shot-slides::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.14);
  pointer-events: none;
}

.shot-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

/* Before the script starts, keep the first screen visible. */
.shot-slides img:first-child {
  opacity: 1;
  transform: none;
}

/* Once the cycle is running, only the current screen is shown. */
.shot-slides.is-live img {
  opacity: 0;
  transform: translateY(100%);
}

.shot-slides.is-live img.is-current {
  opacity: 1;
  transform: none;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.32);
  background: rgba(52, 211, 153, 0.07);
  color: #7ee2b8;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
  flex: none;
}

.hero h1 {
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.75);
  font-size: 40px;
  margin-top: -20px;
}
.hero h1 span.exp {
  display: block;
  margin-top: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--gold);
  line-height: 1.4;
}
.hero h1 span.exp span {
}
.hero h2  {
    font-size: 48px;
    margin-top: -8px;
    font-weight: bold;
}

.hero h2 .accent {
  color: var(--gold);
  text-shadow: 0 0 30px rgba(232, 197, 106, 0.28);
}
.hero h2 .accent.red {
   color: #ec4141;
   text-shadow: 0 0 30px rgba(0, 0, 0, 0.28);
}

.specialty {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 30rem;
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.specialty .sep {
  color: var(--gold);
  padding: 0 0.45em;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.mini-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.mini .dot-pink {
  background: #f472b6;
  box-shadow: 0 0 12px rgba(244, 114, 182, 0.8);
}

.mini .dot-gold {
  background: var(--gold);
  box-shadow: 0 0 12px rgba(232, 197, 106, 0.8);
}

.mini .dot-pink,
.mini .dot-gold {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.mini .mini-star {
  color: var(--gold);
  letter-spacing: 0.08em;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.review-head .proof-kicker {
  margin: 0;
}

.review-head .stars {
  margin: 0;
}

.proof-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 14px;
}

.proof-kicker span {
  color: var(--muted);
  font-weight: 600;
}

.quote-clamped p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.quote-clamped.expanded p {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: none;
  -webkit-box-orient: unset;
  overflow: visible;
}

.quote-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--gold);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}

.quote-toggle:hover {
  color: var(--gold-soft);
}

.quote-toggle .qt-chevron {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.quote-toggle[aria-expanded="true"] .qt-chevron {
  transform: rotate(180deg);
}

.quote-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.quote-footer .quote-toggle {
  margin: 0;
}

.quote-footer .review-byline {
  margin-top: 0;
}

.proof-note {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted);
}

/* ---- Social proof (Marco + Upwork) ---- */
.social {
  margin-top: 60px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.social-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.social-head .eyebrow {
  margin: 0;
}

.social-head .all-reviews {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.social-head .all-reviews a {
  color: var(--gold);
  border-bottom: 1px solid rgba(232, 197, 106, 0.4);
}

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: stretch;
  animation: hero-in-up 0.45s var(--ease) both;
  animation-delay: 2s;
}

.upwork {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  padding: 16px;
}

.testimonial {
  position: relative;
  padding: 4px 0 4px 0px;
  border-left: 0px solid var(--gold);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stars {
  display: flex;
  gap: 4px;
  color: var(--gold);
}

.stars svg {
  width: 16px;
  height: 16px;
}

.testimonial blockquote {
  margin: 0;
}

.testimonial blockquote p {
    margin: 0;
        font-style: bold;
        font-size: 14px;
        word-break: keep-all;
        font-weight: bold;
        letter-spacing: .5px;
        line-height: 1.5;
        color: #fff;

}
.testimonial blockquote p:before{
    content: "\201C";
        font-size: 120px;
        position: absolute;
        z-index: 99;
        margin: -20px;
        font-family: sans-serif;
        margin: -44px 0 0 -58px;
       color: rgb(212 175 55 / 27%)
}

.review-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.78rem;
  line-height: 1.2;
}

.byline-name {
  color: var(--ink);
  font-weight: 600;
}

.byline-role {
  color: var(--muted);
}

.byline-role::before {
  content: "· ";
  color: var(--muted);
}

.review-byline .li {
  margin-left: 0;
}

.avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e8c56a, #b8860b);
  color: #14120b;
  font-weight: 800;
  font-size: 0.68rem;
  flex: none;
}


.li {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--muted);
  margin-left: 7px;
  vertical-align: -2px;
  transition: color 0.18s ease;
}

.li svg {
  width: 18px;
  height: 18px;
}

.li:hover {
  color: var(--gold);
}

/* Upwork panel */
.upwork-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 10px;
}

.badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 650;
  font-size: 0.8rem;
  white-space: nowrap;
}

.badge svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.upwork .badge {
  justify-content: center;
  min-width: 0;
  padding: 9px 6px;
  border-radius: 10px;
  gap: 6px;
  font-size: 0.72rem;
}

.upwork .badge svg {
  width: 17px;
  height: 17px;
}

.upwork-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 0;
}

.upwork-stats > div {
  padding: 9px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  text-align: center;
}

.upwork-stats dt {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

.upwork-stats dd {
  margin: 4px 0 0;
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.upwork-stats .upwork-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.upwork-rating svg {
  width: 13px;
  height: 13px;
  color: var(--gold, #e8c56a);
}

.upwork-link {
  display: inline-block;
  color: var(--gold);
  font-weight: 650;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(232, 197, 106, 0.4);
  transition: color 0.18s ease;
}

.upwork-link:hover {
  color: var(--gold-soft);
}

/* Metrics strip */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.metric {
  padding: 26px 22px;
  text-align: center;
  border-left: 1px solid var(--line);
}

.metric:first-child {
  border-left: 0;
}

.metric strong {
  display: block;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}

.metric strong.gold {
  color: var(--gold);
}

.metric span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 7px;
}

/* ---- Lightbox ---- */
.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(2, 4, 8, 0.92);
  display: grid;
  place-items: center;
  padding: 28px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lb-figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: min(1120px, 92vw);
}

.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 12px;
  object-fit: contain;
}

.lb-caption {
  max-width: 72ch;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}

.lb-close,
.lb-nav {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.lb-close {
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  background: var(--gold);
  color: #14120b;
  font-size: 0;
}

.lb-close::before,
.lb-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.lb-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lb-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lb-nav {
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0;
}

.lb-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  background: currentColor;
  transform: translate(-50%, -50%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4l8 8-8 8' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4l8 8-8 8' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.lb-prev::before {
  transform: translate(-50%, -50%) scaleX(-1);
}

.lb-nav:hover,
.lb-nav:focus-visible {
  background: var(--gold);
  color: #14120b;
}

.lb-prev {
  left: 20px;
}

.lb-next {
  right: 20px;
}

body.lb-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .lightbox {
    padding: 18px;
  }

  .lb-nav {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .lb-prev {
    left: 8px;
  }

  .lb-next {
    right: 8px;
  }

  .lightbox img {
    max-height: 70vh;
  }
}
