/* ==========================================================
   Murtaza Usman — personal landing
   Adapted from Claude Design prototype for production.
   ========================================================== */

:root {
  --ink: #0D0F03;
  --ink-2: #1A1D0C;
  --ink-3: #2B2E1E;
  --paper: #FAFAF7;
  --paper-2: #F1F1EC;
  --mute: #6C6F5C;
  --line: rgba(13,15,3,0.08);
  --line-strong: rgba(13,15,3,0.16);
  --lime: #DDFF36;
  --lime-ink: #0D0F03;
  --orange: #FE5C00;
  --purple: #8E4FF8;

  --f-display: "Unbounded", "Inter", system-ui, sans-serif;
  --f-body: "Manrope", "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --maxw: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 56px;
}
@media (max-width: 900px) { .wrap { padding: 0 24px; } }

/* ---------- Type ---------- */
.h-display {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.96;
}
.h-section {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: 64px;
}
.eyebrow {
  font-family: var(--f-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--lime);
  border-radius: 2px;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.kicker-num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mute);
}
@media (max-width: 900px) {
  .h-section { font-size: 40px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn .arrow {
  display: inline-block;
  transition: transform .18s ease;
}
.btn:hover .arrow { transform: translate(3px,-3px); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: var(--lime);
}
.btn-primary:hover { background: #CFF124; border-color: #CFF124; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-dark:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }

.btn-sm {
  padding: 10px 16px;
  font-size: 13px;
}

/* ---------- Top Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 56px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.nav-links a:hover { color: var(--mute); }
@media (max-width: 900px) {
  .nav-inner { padding: 0 20px; height: 64px; }
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  right: -200px; top: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(221,255,54,0.22), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: end;
}
.hero-title {
  font-size: clamp(56px, 6.5vw, 100px);
  margin: 28px 0 32px;
}
.hero-title em {
  font-style: normal;
  color: var(--ink);
  background: linear-gradient(180deg, transparent 60%, var(--lime) 60%);
  padding: 0 4px;
}
.hero-sub {
  font-size: 22px;
  line-height: 1.35;
  color: var(--ink);
  max-width: 540px;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}
.hero-body {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--mute);
  max-width: 500px;
  margin-bottom: 40px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-meta {
  display: flex;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 520px;
}
.hero-meta .m-num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-meta .m-label {
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-title { font-size: clamp(44px, 11vw, 80px); margin: 20px 0 24px; }
  .hero-sub { font-size: 18px; }
}

/* portrait card */
.portrait-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(13,15,3,0.4);
}
.portrait-wrap::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.06), transparent 60%),
              linear-gradient(180deg, transparent 40%, rgba(13,15,3,0.72));
  z-index: 2;
  pointer-events: none;
}
.portrait-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  filter: saturate(0.7) contrast(1.08) brightness(0.82);
  z-index: 1;
}
.portrait-tag {
  position: absolute;
  left: 24px; bottom: 22px;
  right: 24px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--paper);
}
.portrait-tag .name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.portrait-tag .role {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--lime);
  text-transform: uppercase;
  margin-top: 8px;
  display: flex;
  align-items: center;
}
.portrait-tag .karachi {
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(250,250,247,0.7);
  letter-spacing: 0.08em;
  text-align: right;
}
.portrait-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 12px var(--lime);
  animation: pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}

/* chrome orb accents */
.chrome-orb {
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 50%;
  right: -60px;
  top: -60px;
  z-index: 3;
  background:
    radial-gradient(circle at 30% 30%, #fff 0%, #c6c6c2 20%, #6d6f60 55%, #0D0F03 85%),
    #0D0F03;
  box-shadow: 0 20px 50px -10px rgba(13,15,3,0.4), inset -10px -10px 40px rgba(0,0,0,0.5);
  filter: saturate(0.9);
}
.chrome-orb.small {
  width: 56px; height: 56px;
  right: auto; left: -18px; top: auto; bottom: -18px;
}

/* hero bottom line */
.hero-strip {
  position: absolute;
  left: 0; right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 30%, var(--line-strong) 70%, transparent);
}

/* marquee under hero */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
  padding: 22px 0;
}
.marquee-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee-scroll 38s linear infinite;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.marquee-track > span { display: inline-flex; align-items: center; gap: 64px; }
.marquee-track > span > span::after {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--ink);
  transform: rotate(45deg);
  margin-left: 64px;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Section scaffolding ---------- */
.section {
  padding: 120px 0;
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--mute);
  max-width: 520px;
  justify-self: end;
}
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .section-head .lead { justify-self: start; }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px 32px 28px;
  position: relative;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  min-height: 460px;
}
.service-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 24px 60px -30px rgba(13,15,3,0.2);
  transform: translateY(-4px);
}
.service-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--mute);
  text-transform: uppercase;
  margin-bottom: 80px;
}
.service-glyph {
  width: 80px; height: 80px;
  border-radius: var(--r-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.service-glyph.g1 { background: var(--ink); color: var(--lime); }
.service-glyph.g2 { background: var(--lime); color: var(--ink); }
.service-glyph.g3 { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }

.service-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
}
.service-desc {
  color: var(--mute);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 28px;
  flex: 1;
}
.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13.5px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  transition: color .15s ease;
}
.service-cta:hover { color: var(--mute); }
.service-cta .arrow { transition: transform .18s ease; }
.service-card:hover .service-cta .arrow { transform: translate(3px,-3px); }

/* tag list */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--mute);
}

/* ---------- Consultations ---------- */
.consult-wrap {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-xl);
  padding: 72px;
  position: relative;
  overflow: hidden;
}
.consult-wrap::before {
  content: "";
  position: absolute;
  right: -150px; top: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(221,255,54,0.12), transparent 60%);
  filter: blur(40px);
}
.consult-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}
.consult-head h2 {
  font-family: var(--f-display);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 16px 0 0;
  color: var(--paper);
}
.consult-head .lead {
  font-size: 16px;
  color: rgba(250,250,247,0.7);
  max-width: 420px;
  justify-self: end;
}
.consult-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative; z-index: 1;
}
.consult-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(250,250,247,0.12);
  border-radius: var(--r-lg);
  padding: 36px;
  position: relative;
  transition: background .2s ease, border-color .2s ease;
}
.consult-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(221,255,54,0.4);
}
.consult-card.featured {
  background: linear-gradient(180deg, rgba(221,255,54,0.08), transparent);
  border-color: rgba(221,255,54,0.22);
}
.consult-kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--lime);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.consult-kicker::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
}
.consult-card h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.15;
}
.consult-card p {
  font-size: 14px;
  color: rgba(250,250,247,0.66);
  line-height: 1.6;
  margin: 0 0 24px;
}
.consult-meta {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(250,250,247,0.5);
  flex-wrap: wrap;
}
.consult-meta span { display: flex; align-items: center; gap: 6px; }
@media (max-width: 900px) {
  .consult-wrap { padding: 40px 24px; }
  .consult-head { grid-template-columns: 1fr; }
  .consult-head h2 { font-size: 32px; }
  .consult-grid { grid-template-columns: 1fr; }
}

/* ---------- Portfolio ---------- */
.filter-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 13px;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.filter-btn:hover { border-color: var(--line-strong); }
.filter-btn.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.filter-btn .count {
  font-family: var(--f-mono);
  font-size: 11px;
  opacity: 0.6;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  grid-auto-flow: dense;
}
.portfolio-item {
  grid-column: span 2;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: opacity .25s ease, transform .25s ease;
}
.portfolio-item.wide { grid-column: span 3; }

/* Overlay */
.portfolio-overlay {
  position: absolute; inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, transparent 40%, rgba(13,15,3,0.82));
  color: var(--paper);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-item:has(.carousel):hover .portfolio-overlay { opacity: 0; }
.portfolio-overlay .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.portfolio-overlay .cat {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: var(--lime);
  color: var(--ink);
  padding: 4px 8px;
  border-radius: 4px;
}
.portfolio-overlay .scroll-hint { color: var(--ink); }
.portfolio-overlay .view {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 14px;
}
.portfolio-overlay h4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.portfolio-overlay p {
  font-size: 13px;
  color: rgba(250,250,247,0.72);
  line-height: 1.5;
  margin: 0;
  max-width: 320px;
}

/* Lazy thumb */
.portfolio-thumb {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lazy-thumb { background: #0f110a; overflow: hidden; }
.lazy-thumb .thumb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .55s ease, transform .75s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.lazy-thumb .thumb-img.is-loaded { opacity: 1; transform: scale(1); }

/* Shimmer skeleton */
.thumb-skeleton {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg,
      rgba(221,255,54,0)       0%,
      rgba(221,255,54,0.06)   42%,
      rgba(221,255,54,0.14)   50%,
      rgba(221,255,54,0.06)   58%,
      rgba(221,255,54,0)     100%),
    linear-gradient(180deg, #0f110a 0%, #161a0d 100%);
  background-size: 220% 100%, 100% 100%;
  background-repeat: no-repeat;
  animation: thumb-shimmer 1.6s linear infinite;
}
@keyframes thumb-shimmer {
  0%   { background-position: -120% 0, 0 0; }
  100% { background-position:  120% 0, 0 0; }
}

/* Carousel */
.portfolio-thumb.carousel { background: var(--ink); }
.carousel-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .35s ease;
}
.carousel-slide.active { opacity: 1; }
.carousel-controls {
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  padding: 8px 10px;
  background: rgba(13,15,3,0.72);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  z-index: 5;
}
.carousel-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(250,250,247,0.12);
  color: var(--paper);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.carousel-btn:hover { background: var(--lime); color: var(--ink); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; background: rgba(250,250,247,0.08); color: var(--paper); }
.carousel-dots { display: flex; gap: 6px; align-items: center; }
.carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(250,250,247,0.35);
  cursor: pointer;
  padding: 0;
  transition: background .15s ease, transform .15s ease;
}
.carousel-dot.active { background: var(--lime); transform: scale(1.3); }
.carousel-count {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--paper);
  padding: 4px 10px;
  background: rgba(13,15,3,0.72);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  z-index: 5;
}

/* Load more */
.portfolio-loadmore-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 56px 0 8px;
}
.portfolio-loadmore {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px 18px 32px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}
.portfolio-loadmore::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--lime);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  z-index: 0;
}
.portfolio-loadmore > * { position: relative; z-index: 1; }
.portfolio-loadmore:not(:disabled):hover { color: var(--ink); border-color: var(--lime); }
.portfolio-loadmore:not(:disabled):hover::before { transform: translateY(0); }
.portfolio-loadmore:not(:disabled):active { transform: translateY(1px); }

.loadmore-label { display: inline-flex; align-items: center; }
.loadmore-count {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--lime);
  transition: all .2s ease;
}
.loadmore-spinner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 0;
  opacity: 0;
  margin-left: -16px;
  overflow: hidden;
  transition: width .25s ease, opacity .25s ease, margin-left .25s ease;
}
.loadmore-spinner span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: loadmore-bounce 1s ease-in-out infinite;
}
.loadmore-spinner span:nth-child(2) { animation-delay: 0.15s; }
.loadmore-spinner span:nth-child(3) { animation-delay: 0.30s; }
@keyframes loadmore-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40%           { transform: translateY(-4px); opacity: 1; }
}
.portfolio-loadmore.is-loading {
  cursor: wait;
  border-color: var(--lime);
  color: var(--lime);
}
.portfolio-loadmore.is-loading .loadmore-count {
  width: 0; padding: 0; margin: 0; opacity: 0; overflow: hidden;
}
.portfolio-loadmore.is-loading .loadmore-spinner {
  width: 34px; opacity: 1; margin-left: 0;
}
.portfolio-loadmore-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.portfolio-loadmore-meta strong { color: var(--ink); font-weight: 500; }

/* Newly-loaded animation */
.portfolio-item.just-loaded {
  animation: row-enter .55s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes row-enter {
  0%   { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Focus */
.portfolio-item:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2,1fr); }
  .portfolio-item,
  .portfolio-item.wide { grid-column: span 2; aspect-ratio: 4/3; }
  .portfolio-overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 20%, rgba(13,15,3,0.86));
  }
}

/* ---------- UXC agency section ---------- */
.uxc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.uxc-role {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mute);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.uxc-head h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 56px;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0 0 32px;
}
.uxc-body p {
  color: var(--mute);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 16px;
  max-width: 500px;
}
.uxc-card {
  aspect-ratio: 1 / 1;
  background: var(--ink);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 40px 80px -40px rgba(13,15,3,0.4);
}
.uxc-card::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(221,255,54,0.15), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(142,79,248,0.1), transparent 50%);
}
.uxc-card--lime { background: var(--lime); }
.uxc-card--lime::before {
  background:
    radial-gradient(circle at 20% 80%, rgba(13,15,3,0.06), transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(13,15,3,0.05), transparent 50%);
}
.uxc-mark {
  width: 78%; height: auto;
  position: relative; z-index: 2;
  display: block;
}
.uxc-card .wordmark {
  position: absolute;
  bottom: 40px; left: 40px;
  color: var(--paper);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  z-index: 2;
}
.uxc-card .wordmark.dark,
.uxc-card .corner.dark,
.uxc-card .meta.dark { color: var(--ink); }
.uxc-card .corner.dark::before { background: var(--ink); }
.uxc-card .meta {
  position: absolute;
  top: 40px; right: 40px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(250,250,247,0.6);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
  z-index: 2;
}
.uxc-card .corner {
  position: absolute;
  left: 40px; top: 40px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--lime);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.uxc-card .corner::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
}
@media (max-width: 900px) {
  .uxc-wrap { grid-template-columns: 1fr; gap: 40px; }
  .uxc-head h2 { font-size: 36px; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  left: 50%; top: 0; transform: translate(-50%, -50%);
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(221,255,54,0.15), transparent 55%);
  filter: blur(40px);
}
.cta-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.cta-band h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 72px;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 24px 0 28px;
}
.cta-band h2 em { font-style: normal; color: var(--lime); }
.cta-band .sub {
  color: rgba(250,250,247,0.7);
  font-size: 17px;
  max-width: 440px;
  line-height: 1.55;
  margin-bottom: 32px;
}
.cta-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(250,250,247,0.12);
}
.cta-stats .s-num {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.cta-stats .s-label {
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(250,250,247,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
}
.cal-shell {
  background: var(--paper);
  border-radius: var(--r-xl);
  padding: 8px;
  min-height: 620px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.5);
}
.cal-shell iframe {
  width: 100%;
  height: 620px;
  border: none;
  border-radius: 24px;
  background: var(--paper);
  display: block;
}
@media (max-width: 900px) {
  .cta-band { padding: 64px 0 80px; }
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .cta-band h2 { font-size: 44px; }
  .cal-shell { min-height: 500px; }
  .cal-shell iframe { height: 500px; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 56px 0 44px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mute);
  margin: 0 0 18px;
}
.footer a {
  display: block;
  font-size: 14px;
  padding: 5px 0;
  color: var(--ink);
  transition: color .15s ease;
}
.footer a:hover { color: var(--mute); }
.footer .ident {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.footer .note {
  font-size: 13.5px;
  color: var(--mute);
  max-width: 320px;
  line-height: 1.5;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(13,15,3,0.88);
  backdrop-filter: blur(12px) saturate(1.1);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: lb-fade .22s ease both;
  overflow-y: auto;
}
.lightbox.is-open { display: flex; }
@keyframes lb-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox-close {
  position: fixed;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(250,250,247,0.2);
  background: rgba(250,250,247,0.05);
  color: var(--paper);
  display: inline-flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 110;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.lightbox-close:hover {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
  transform: rotate(90deg);
}
.lightbox-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  max-width: 1400px;
  width: 100%;
  align-items: start;
  animation: lb-rise .35s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes lb-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lightbox-meta {
  position: sticky; top: 40px;
  color: var(--paper);
}
.lightbox-meta .cat {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  display: inline-block;
  margin-bottom: 20px;
  padding: 4px 10px;
  background: rgba(221,255,54,0.1);
  border-radius: 4px;
}
.lightbox-meta h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--paper);
}
.lightbox-meta p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(250,250,247,0.7);
  margin: 0;
}
.lightbox-stage {
  position: relative;
  background: var(--paper-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-slide {
  display: none;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}
.lightbox-slide.active {
  display: block;
  animation: lb-slide-fade .35s ease both;
}
@keyframes lb-slide-fade {
  from { opacity: 0; } to { opacity: 1; }
}
.lightbox-controls {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  color: var(--paper);
}
.lightbox-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(250,250,247,0.2);
  background: rgba(250,250,247,0.05);
  color: var(--paper);
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.lightbox-btn:hover:not(:disabled) {
  background: var(--lime); color: var(--ink); border-color: var(--lime);
}
.lightbox-btn:disabled { opacity: 0.3; cursor: default; }
.lightbox-dots { display: flex; gap: 8px; align-items: center; }
.lightbox-dot {
  width: 8px; height: 8px;
  border-radius: 50%; border: none;
  background: rgba(250,250,247,0.25);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  padding: 0;
}
.lightbox-dot.active { background: var(--lime); transform: scale(1.4); }
.lightbox-count {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(250,250,247,0.55);
  margin-left: 8px;
}
@media (max-width: 900px) {
  .lightbox { padding: 20px; }
  .lightbox-close { top: 16px; right: 16px; }
  .lightbox-inner { grid-template-columns: 1fr; gap: 24px; }
  .lightbox-meta { position: static; }
  .lightbox-meta h3 { font-size: 22px; }
  .lightbox-controls { grid-column: 1; margin-top: 16px; }
  .lightbox-stage { min-height: 240px; }
}
