/* ==========================================================================
   STYLE.CSS — YAHYA ISLAM PORTFOLIO
   Dark Green Theme | Full Width | Responsive | Premium 3D & Micro-Interactions
   ========================================================================== */

/* ── 1. DESIGN TOKENS ── */
:root {
  /* Colors */
  --bg-deep:          #04100A;
  --bg-mid:           #071A0F;
  --bg-alt:           #0A2417;
  --bg-footer:        #030D07;
  --card-bg:          rgba(12, 40, 24, 0.85);
  --card-bg-solid:    #0C2818;
  --card-border:      rgba(0, 230, 92, 0.35);

  --accent:           #00E65C;
  --accent-dark:      #00C853;
  --accent-lime:      #8CE99A;
  --accent-glow:      rgba(0, 230, 92, 0.4);

  --text-heading:     #F2FFF6;
  --text-body:        #CDEBD6;
  --text-muted:       rgba(205, 235, 214, 0.65);

  --border-subtle:    rgba(0, 230, 92, 0.15);
  --border-mid:       rgba(0, 230, 92, 0.25);
  --border-hi:        rgba(0, 230, 92, 0.35);

  --glow-sm:          0 4px 20px rgba(0, 230, 92, 0.12);
  --glow-md:          0 8px 32px rgba(0, 230, 92, 0.2);
  --glow-lg:          0 16px 50px rgba(0, 230, 92, 0.3);

  /* Typography */
  --font-body:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display:     'Playfair Display', Georgia, serif;

  --text-base:        1.125rem; /* 18px * 1.125 = 20.25px */
  --text-nav:         1.05rem;
  --text-min:         15px;

  /* Sizing & Spacing */
  --container-max:    1600px;
  --container-width:  94vw;
  --container-pad-h:  clamp(20px, 3.5vw, 48px);
  --section-pad-v:    clamp(64px, 8vw, 110px);

  /* Border Radius */
  --radius-sm:        8px;
  --radius-md:        14px;
  --radius-lg:        20px;
  --radius-pill:      9999px;

  /* Transitions */
  --trans-fast:       0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-base:       0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-smooth:     0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ── 2. BASE & RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px; /* Base 18px */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg-deep);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--text-body);
  background: linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: url("assets/pen cursor-01.png") 12 14, url("pen cursor-01.png") 12 14, auto;
}

a, button, .btn-primary, .btn-outline, .card, .hanging-card, .feat-face, .portfolio-card, .portfolio-tile, .portfolio-chip, .work-client-card, [data-clickable], .social-icon, .hamburger, .card-flip-btn, .feat-flip-btn, .modal-close, .lightbox-close, .lb-prev, .lb-next, .folder-card, .back-to-portfolio-btn, .client-nav-link {
  cursor: url("assets/pen cursor-01.png") 12 14, url("pen cursor-01.png") 12 14, pointer;
}

input, textarea, select {
  cursor: text !important;
}

.card-wrapper, .hanging-card {
  cursor: grab;
}
.card-wrapper:active, .hanging-card.dragging {
  cursor: grabbing !important;
}

@media (hover: none) and (pointer: coarse) {
  body, a, button, .card, [data-clickable], .portfolio-tile, .portfolio-card, .folder-card, .hanging-card {
    cursor: auto !important;
  }
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--bg-deep);
}

/* ── 3. 3D BACKGROUND CANVAS ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* ── 4. LOADING SCREEN ── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 16, 10, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.4s ease;
}

#loader-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 230, 92, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

#loader-sig-container {
  width: min(70vw, 560px);
  max-width: 560px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sig-shine-wrapper {
  position: relative;
  width: 100%;
  display: inline-block;
  filter: drop-shadow(0 0 18px rgba(0, 230, 92, 0.35));
  animation: sigBreathing 2.8s ease-in-out infinite alternate;
}

@keyframes sigBreathing {
  0% {
    filter: drop-shadow(0 0 12px rgba(0, 230, 92, 0.25));
  }
  100% {
    filter: drop-shadow(0 0 24px rgba(0, 230, 92, 0.45));
  }
}

#loader-sig-img {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
}

.sig-shine-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 250% 100%;
  -webkit-mask-image: url('assets/my-signature.png');
  mask-image: url('assets/my-signature.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  mix-blend-mode: screen;
  animation: strokeShineSweep 2s ease-in-out infinite;
}

@keyframes strokeShineSweep {
  0% {
    background-position: 150% 0;
  }
  100% {
    background-position: -150% 0;
  }
}

/* FIX 3: Calligraphic Pen Stroke Canvas */
#cursor-trail-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9000;
}

/* ── 5. LAYOUT CONTAINERS ── */
.container,
.section-container,
.hero-container {
  width: var(--container-width);
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad-h);
  padding-right: var(--container-pad-h);
}

section {
  position: relative;
  z-index: 1;
  padding-top: var(--section-pad-v);
  padding-bottom: var(--section-pad-v);
}

.alternate-bg {
  background: var(--bg-alt);
  box-shadow: inset 0 1px 0 var(--border-subtle), inset 0 -1px 0 var(--border-subtle);
}

/* Multi-Page Views */
.page {
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.page.active {
  display: block;
  opacity: 1;
}

/* ── 6. NAVIGATION ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--trans-base);
  background: transparent;
}

#navbar.scrolled {
  padding: 14px 0;
  background: rgba(4, 16, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container-width);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--card-bg-solid);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(0, 230, 92, 0.25);
  transition: transform var(--trans-base);
}

.nav-logo:hover .logo-badge {
  transform: rotate(-6deg) scale(1.05);
}

.logo-yi {
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.logo-name {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-size: var(--text-nav);
  font-weight: 600;
  color: var(--text-body);
  position: relative;
  padding: 6px 0;
  transition: color var(--trans-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--trans-base);
  box-shadow: 0 0 8px var(--accent);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 2.5px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: all var(--trans-base);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ── 7. BUTTONS ── */
.btn-primary {
  font-size: var(--text-nav);
  font-weight: 700;
  padding: 16px 36px; /* Spec: padding 16px 36px */
  border-radius: var(--radius-sm);
  background: var(--accent-dark);
  color: var(--bg-deep);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--trans-base);
  box-shadow: 0 6px 20px rgba(0, 200, 83, 0.3);
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 230, 92, 0.45);
}

.btn-outline {
  font-size: var(--text-nav);
  font-weight: 700;
  padding: 15px 34px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-heading);
  border: 2px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--trans-base);
  box-shadow: 0 4px 16px rgba(0, 230, 92, 0.1);
  text-decoration: none;
  line-height: 1.2;
}

.btn-outline:hover {
  background: rgba(0, 230, 92, 0.15);
  border-color: var(--accent-lime);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 42px;
  font-size: 1.15rem;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.95rem;
}

.full-width {
  width: 100%;
}

/* ── 8. HERO SECTION ── */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 70px;
  position: relative;
  overflow: hidden;
}

.hero-aurora {
  position: absolute;
  top: 10%;
  left: 20%;
  width: 65vw;
  height: 60vh;
  background: radial-gradient(ellipse at center, rgba(0, 230, 92, 0.18) 0%, rgba(10, 36, 23, 0.08) 50%, transparent 80%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: auroraBreath 9s ease-in-out infinite alternate;
}

@keyframes auroraBreath {
  0% { transform: scale(0.95) translate(0, 0); opacity: 0.7; }
  100% { transform: scale(1.15) translate(-20px, 30px); opacity: 1; }
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  position: relative;
  z-index: 1;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(12, 40, 24, 0.85);
  border: 1px solid var(--border-hi);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-lime);
  width: fit-content;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 92, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 230, 92, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 92, 0); }
}

.hero-name {
  font-size: clamp(4.5rem, 9vw, 8rem); /* Spec: clamp(4.5rem, 9vw, 8rem) */
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--text-heading);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.hero-typing {
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-weight: 600;
  color: var(--accent);
  height: 52px;
  min-height: 52px; /* Fixed height so layout never jumps */
  display: flex;
  align-items: center;
  line-height: 1.3;
  overflow: hidden;
}

.typing-prefix {
  color: var(--text-body);
  margin-right: 8px;
}

.cursor {
  color: var(--accent-lime);
  animation: blink 0.9s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-bio {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-body);
  max-width: 620px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  transition: all var(--trans-base);
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

.social-icon:hover {
  background: var(--accent);
  color: var(--bg-deep);
  border-color: var(--accent);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 230, 92, 0.35);
}

/* ── 9. HANGING HERO CARD ── */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.card-strap-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  min-height: 720px;
  touch-action: none;
}

.hero-rope-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1; /* CHANGE 2: Rope sits BEHIND card element at all times */
}

.card-strap {
  display: none !important;
}

.card-wrapper {
  margin-top: 140px; /* Rest position 140px below fixed anchor */
  transform-origin: 50% 0; /* Card pivots at its top-center attachment point */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  z-index: 2; /* CHANGE 2: Card sits IN FRONT of rope */
  touch-action: none;
  will-change: transform;
}

/* FIX B: Kill native drag ghosting completely */
.card-wrapper,
.hanging-card,
#portrait-img,
.card-face,
.card-green-ring,
.portrait-stage {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  /* user-drag: none; */
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.card-wrapper:active {
  cursor: grabbing;
}

.hanging-card {
  width: clamp(320px, 32vw, 420px);
  height: clamp(470px, 45vw, 570px);
  position: relative;
  perspective: 1200px;
  transition: box-shadow var(--trans-base);
}

.hanging-card.dragging {
  cursor: grabbing;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.60s cubic-bezier(0.22, 1, 0.36, 1);
}

.hanging-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: #0C2818;
  border: 2px solid var(--accent);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5), 0 0 32px rgba(0, 230, 92, 0.35);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.card-front {
  transform: rotateY(0deg) translateZ(1px);
  z-index: 2;
}

.card-back {
  transform: rotateY(180deg) translateZ(1px);
  text-align: center;
  justify-content: center;
  gap: 16px;
  z-index: 1;
}

.hanging-card.flipped .card-front {
  pointer-events: none;
}

.hanging-card.flipped .card-back {
  pointer-events: auto;
  z-index: 3;
}

.card-green-ring {
  width: 100%;
  height: 72%;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #020b06;
  border: 1px solid rgba(0, 230, 92, 0.3);
}

.portrait-stage {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform-origin: center center;
  will-change: transform;
  transition: filter 0.14s ease;
}

#portrait-img.blink-effect {
  filter: brightness(0.65) contrast(1.1);
}

.card-name-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

.card-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.card-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-lime);
}

.card-flip-btn {
  background: rgba(0, 230, 92, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent-lime);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all var(--trans-base);
}

.card-flip-btn:hover {
  background: var(--accent);
  color: var(--bg-deep);
}

.card-back-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.back-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
}

.qr-container {
  padding: 12px;
  background: var(--accent);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 230, 92, 0.3);
}

.qr-container canvas,
.qr-container img {
  display: block;
}

.back-link {
  font-size: 0.95rem;
  color: var(--accent-lime);
  word-break: break-all;
}

.back-sub {
  font-size: 0.9rem;
  color: var(--text-body);
}

.back-divider {
  width: 60px;
  border: none;
  border-top: 1px solid var(--border-hi);
  margin: 6px auto;
}

.back-email {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
}

/* ── 10. SECTION HEADINGS ── */
.section-label {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2.75rem, 5vw, 4.25rem); /* Spec: clamp(2.75rem, 5vw, 4.25rem) */
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  margin-bottom: clamp(36px, 5vw, 64px);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 0;
  width: 0;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-lime) 100%);
  box-shadow: 0 0 12px var(--accent);
  transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.section-title.in-view::after {
  width: 90px;
}

/* ── 11. ABOUT SECTION ── */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-text p {
  font-size: 1.15rem;
  line-height: 1.85;
}

.about-edu {
  margin-top: 24px;
}

.about-edu-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 18px;
}

.edu-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.edu-card {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--border-hi);
  backdrop-filter: blur(12px);
  transition: transform var(--trans-base);
}

.edu-card:hover {
  transform: translateX(6px);
  border-color: var(--accent);
}

.edu-year {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.edu-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
}

.edu-institution {
  font-size: 0.95rem;
  color: var(--accent-lime);
  margin: 4px 0 8px;
}

.edu-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlight-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--border-hi);
  backdrop-filter: blur(14px);
  transition: all var(--trans-base);
}

.highlight-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--glow-md);
}

.highlight-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.highlight-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.highlight-card p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* ── 12. SKILLS & TOOLS SECTION ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.skill-card {
  padding: 24px 28px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--border-hi);
  backdrop-filter: blur(12px);
  transition: all var(--trans-base);
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--glow-sm);
}

.skill-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.skill-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
}

.skill-pct {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
}

.skill-track {
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid rgba(0, 230, 92, 0.15);
}

.skill-fill {
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent-dark) 0%, var(--accent) 100%);
  box-shadow: 0 0 10px var(--accent);
  transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.tools-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.tool-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--border-hi);
  backdrop-filter: blur(14px);
  transition: all var(--trans-base);
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--glow-md);
}

.tool-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: #020d07;
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(0, 230, 92, 0.25);
}

.tool-abbr {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent);
}

.tool-body {
  display: flex;
  flex-direction: column;
}

.tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.tool-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
}

.tool-level {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-lime);
  background: rgba(0, 230, 92, 0.15);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.tool-category {
  font-size: 0.95rem;
  color: var(--accent-lime);
  margin-bottom: 8px;
}

.tool-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ── 13. SERVICES SECTION ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.service-card {
  padding: 34px 30px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--border-hi);
  backdrop-filter: blur(14px);
  transition: all var(--trans-base);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--glow-lg);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(0, 230, 92, 0.12);
  border: 1px solid var(--border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--accent);
}

.service-title {
  font-size: 1.5rem; /* Spec: card titles 1.5rem */
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.service-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* ── 14. ANIMATED COUNTERS SECTION (Stand-Alone Impact) ── */
.stats-counter-section {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  padding: 36px 28px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--border-hi);
  backdrop-filter: blur(14px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--trans-base);
}

.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: var(--glow-md);
}

.stat-number {
  font-size: 3.5rem; /* Spec: stat numbers 3.5rem */
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(0, 230, 92, 0.4);
}

.stat-label {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.stat-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ── 15. FEATURED WORK (4 Hanging Cards, No Clipping) ── */
.featured-hanging-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop, fits 1600px without clipping */
  gap: 24px;
  perspective: 1200px;
}

.featured-card-strap-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.featured-card-strap {
  width: 3px;
  height: 38px;
  background: linear-gradient(to bottom, var(--accent) 0%, rgba(0, 230, 92, 0.3) 100%);
  position: relative;
  box-shadow: 0 0 6px var(--accent);
}

.featured-card-strap::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.featured-hanging-card {
  width: 100%;
  height: 480px;
  position: relative;
  perspective: 1000px;
}

.feat-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-hanging-card.flipped .feat-card-inner {
  transform: rotateY(180deg);
}

.feat-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--border-hi);
  backdrop-filter: blur(14px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
  transition: border-color var(--trans-base);
}

.featured-hanging-card:hover .feat-face {
  border-color: var(--accent);
  box-shadow: var(--glow-md);
}

.feat-front {
  transform: rotateY(0deg);
}

.feat-back {
  transform: rotateY(180deg);
  text-align: left;
  justify-content: flex-start;
  gap: 14px;
  overflow-y: auto;
}

.feat-media-box {
  width: 100%;
  height: 240px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: #020b06;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feat-media-box img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  background: #020b06;
  transition: transform var(--trans-base);
}

.feat-media-box:hover img {
  transform: scale(1.06);
}

.hanging-pdf-cover {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #061e12 0%, #030d07 100%);
  padding: 20px;
  text-align: center;
  gap: 12px;
}

.pdf-icon-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(4, 16, 10, 0.92);
  color: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  z-index: 4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.hanging-pdf-cover h4 {
  font-size: 1.15rem;
  color: var(--text-heading);
}

.pdf-click-hint {
  font-size: 0.85rem;
  color: var(--accent-lime);
}

.feat-meta {
  margin-top: 10px;
}

.feat-category {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}

.feat-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 4px 0 6px;
  line-height: 1.3;
}

.feat-client {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feat-flip-btn {
  background: rgba(0, 230, 92, 0.12);
  border: 1px solid var(--border-hi);
  color: var(--accent-lime);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 8px;
  align-self: flex-start;
  transition: all var(--trans-base);
}

.feat-flip-btn:hover {
  background: var(--accent);
  color: var(--bg-deep);
}

.feat-back-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-heading);
}

.feat-back-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-body);
}

.feat-back-details {
  font-size: 0.9rem;
  color: var(--accent-lime);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── 16. SERVICES MARQUEE STRIP ── */
.marquee-section {
  padding: 26px 0;
  background: #020a05;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.marquee-track {
  display: inline-block;
  animation: marqueeScroll 36s linear infinite;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0.05em;
}

.marquee-section:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-dot {
  color: var(--accent);
  margin: 0 24px;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── 17. BIG CTA BAND ── */
.cta-section {
  padding-top: clamp(64px, 8vw, 100px);
  padding-bottom: clamp(64px, 8vw, 100px);
}

.cta-card {
  padding: clamp(40px, 6vw, 70px);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top right, rgba(0, 230, 92, 0.15) 0%, var(--card-bg-solid) 70%);
  border: 1px solid var(--border-hi);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--glow-md);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.cta-content h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1.15;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.15rem;
  color: var(--text-body);
  margin-bottom: 28px;
  line-height: 1.7;
}

.cta-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: clamp(20px, 3vw, 40px);
  border-left: 2px solid var(--border-hi);
}

.cta-contact-item {
  display: flex;
  flex-direction: column;
}

.cta-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 4px;
}

.cta-contact-item a,
.cta-contact-item span:not(.cta-label) {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-heading);
  transition: color var(--trans-fast);
}

.cta-contact-item a:hover {
  color: var(--accent);
}

/* ── 18. WORK PAGE STYLING ── */
.page-hero {
  padding-top: 140px;
  padding-bottom: 40px;
  text-align: center;
}

.page-hero-title {
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 900;
  color: var(--text-heading);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-hero-sub {
  font-size: 1.2rem;
  color: var(--text-body);
  max-width: 780px;
  margin: 0 auto;
}

.work-section {
  padding-top: 20px;
}

#work-entries {
  display: flex;
  flex-direction: column;
  gap: 40px; /* Dedupe & no empty gap > 48px */
}

.work-client-card {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
  padding: clamp(32px, 4vw, 50px);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--border-hi);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.work-client-alt {
  background: var(--bg-alt);
}

.work-client-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.work-client-identity {
  display: flex;
  align-items: center;
  gap: 20px;
}

.work-logo-box {
  width: 90px;
  height: 64px; /* Spec: client logo at max-height 64px */
  border-radius: var(--radius-sm);
  background: #020c06;
  border: 1px solid var(--border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
}

.work-logo-img {
  max-height: 52px;
  max-width: 100%;
  object-fit: contain; /* Spec: object-fit contain on a clean dark panel */
}

.work-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.work-client-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-heading);
}

.work-featured-badge {
  background: var(--accent);
  color: var(--bg-deep);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 10px var(--accent);
}

.work-client-industry {
  font-size: 1rem;
  color: var(--accent-lime);
}

.work-services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-service-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
  background: rgba(0, 230, 92, 0.1);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.work-client-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 28px;
  max-width: 1100px;
}

.work-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 16px !important;
  row-gap: 16px !important;
  column-gap: 16px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.work-thumb,
.work-thumb-pdf {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  position: relative !important;
  background: #020d07 !important;
  border: 1px solid var(--border-hi) !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  box-sizing: border-box !important;
  margin: 0 !important;
  transition: transform var(--trans-base), border-color var(--trans-base), box-shadow var(--trans-base);
}

.work-thumb:hover,
.work-thumb-pdf:hover {
  border-color: var(--accent) !important;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 230, 92, 0.25);
}

.work-thumb-media {
  width: 100% !important;
  height: 100% !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #020d07 !important;
  box-sizing: border-box !important;
}

.work-thumb img,
.work-thumb-pdf .work-pdf-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 14px !important;
  display: block !important;
  transition: transform var(--trans-base);
}

.work-thumb-pdf .work-pdf-img {
  object-fit: contain !important;
}

.work-thumb:hover img,
.work-thumb-pdf:hover .work-pdf-img {
  transform: scale(1.08);
}

.work-thumb-hover {
  position: absolute !important;
  inset: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(to top, rgba(4, 16, 10, 0.9) 0%, transparent 70%) !important;
  display: flex !important;
  align-items: flex-end !important;
  padding: 12px !important;
  opacity: 0;
  transition: opacity var(--trans-fast);
  box-sizing: border-box !important;
}

.work-thumb:hover .work-thumb-hover,
.work-thumb-pdf:hover .work-thumb-hover {
  opacity: 1;
}

.work-thumb-hover span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-heading);
}
.work-thumb-pdf .pdf-tag-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(4, 16, 10, 0.9);
  color: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  z-index: 3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.pdf-thumb-content {
  text-align: center;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pdf-tag {
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 900;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.pdf-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
}

.pdf-action {
  font-size: 0.85rem;
  color: var(--accent-lime);
}

/* ── 19. PORTFOLIO PAGE STYLING (Two-Level: Cards Grid + Client Detail Gallery) ── */

/* LEVEL 1: 7 Client Cards Grid */
.portfolio-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
  margin-top: 10px;
  margin-bottom: 60px;
}

.folder-card {
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--border-hi);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--trans-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.folder-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 32px rgba(0, 230, 92, 0.28);
}

.folder-card-cover {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #020b06;
  margin-bottom: 20px;
  position: relative;
  border: 1px solid var(--border-subtle);
}

/* 2x2 collage inside cover */
.collage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
  gap: 2px;
  background: #04140a;
}

.collage-cell {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #020c06;
}

.collage-cell img,
.single-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-base);
}

.single-cover-contain {
  object-fit: contain !important;
  padding: 16px;
}

.folder-card:hover .collage-cell img,
.folder-card:hover .single-cover-img {
  transform: scale(1.06);
}

.folder-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.folder-card-num-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.folder-card-icon {
  font-size: 1.4rem;
}

.folder-card-num {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--accent);
}

.folder-card-count {
  background: rgba(0, 230, 92, 0.12);
  border: 1px solid var(--accent);
  color: var(--accent-lime);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.folder-card-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.folder-card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 22px;
  flex-grow: 1;
}

.folder-card-action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  transition: gap var(--trans-fast);
}

.folder-card:hover .folder-card-action {
  gap: 14px;
  color: var(--accent-lime);
}

/* LEVEL 2: Client Detail Gallery View */
.portfolio-detail-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-hi);
}

.back-to-portfolio-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: rgba(0, 230, 92, 0.08);
  border: 1px solid var(--border-hi);
  color: var(--accent-lime);
  margin-bottom: 24px;
  transition: all var(--trans-base);
}

.back-to-portfolio-btn:hover {
  background: var(--accent);
  color: var(--bg-deep);
  border-color: var(--accent);
  transform: translateX(-4px);
  box-shadow: 0 4px 18px rgba(0, 230, 92, 0.35);
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.detail-title-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
}

.detail-name {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.detail-count-badge {
  background: rgba(0, 230, 92, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent-lime);
  font-size: 1rem;
  font-weight: 800;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
}

.detail-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 900px;
}

.folder-subsection {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
  margin-bottom: 48px;
}

.folder-subheading {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-lime);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.folder-subheading::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* CHANGE 5: Masonry Grid & Fully Visible Tiles with contain */
.portfolio-masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.portfolio-tile {
  border-radius: 14px;
  background: #020c06;
  border: 1px solid var(--border-hi);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all var(--trans-base);
  display: flex;
  flex-direction: column;
}

.portfolio-tile:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--glow-md);
}

.tile-media-wrap {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 320px;
  overflow: hidden;
  position: relative;
  background: #020c06;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CHANGE 5: Posters & flyers fully visible without cropping, object-fit contain on dark panel */
.post-img-contain,
.logo-img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  transition: transform 0.35s ease;
}

.portfolio-tile:hover .post-img-contain,
.portfolio-tile:hover .logo-img-contain {
  transform: scale(1.03);
}

.tile-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--accent);
  color: var(--accent-lime);
}

.concept-badge {
  border-color: var(--accent-lime);
  color: var(--text-heading);
}

/* CHANGE 5: Clean caption strip UNDER the tile (15-16px title + client name) */
.tile-caption {
  padding: 14px 16px;
  background: rgba(12, 40, 24, 0.95);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.tile-caption-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.tile-caption-client {
  font-size: 13.5px;
  color: var(--accent-lime);
  font-weight: 600;
}

/* PDF Tiles */
.portfolio-tile-pdf {
  min-height: 280px;
  background: linear-gradient(135deg, #072616 0%, #030d07 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-tile-box {
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pdf-pill {
  background: var(--accent);
  color: var(--bg-deep);
  font-size: 0.8rem;
  font-weight: 900;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
}

.pdf-tile-title {
  font-size: 1.15rem;
  color: var(--text-heading);
  font-weight: 800;
}

.pdf-tile-action {
  font-size: 0.9rem;
  color: var(--accent-lime);
}

/* Client Navigation (Prev / Next) at bottom of Level 2 */
.portfolio-client-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border-hi);
}

.client-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  border: 1px solid var(--border-hi);
  color: var(--text-heading);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--trans-base);
}

.client-nav-link:hover {
  background: rgba(0, 230, 92, 0.15);
  border-color: var(--accent);
  color: var(--accent-lime);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 230, 92, 0.25);
}

/* ── 20. START A PROJECT MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 16, 10, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 680px;
  background: var(--card-bg-solid);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7), 0 0 32px rgba(0, 230, 92, 0.25);
  padding: clamp(32px, 5vw, 48px);
  position: relative;
  margin: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-body);
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--trans-fast);
}

.modal-close:hover {
  background: rgba(0, 230, 92, 0.15);
  color: var(--accent);
}

.modal-sig {
  margin-bottom: 14px;
}

.modal-sig-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.modal-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.modal-sub {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
  margin-bottom: 24px;
}

label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
}

.req {
  color: var(--accent);
}

input, select, textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #020b06;
  border: 1px solid var(--border-hi);
  color: var(--text-heading);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: all var(--trans-base);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 230, 92, 0.3);
}

input.invalid, select.invalid, textarea.invalid {
  border-color: #ff5252;
}

select option {
  background: var(--bg-deep);
  color: var(--text-heading);
}

/* Success View */
.success-inner {
  text-align: center;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.success-icon {
  font-size: 3.5rem;
}

.success-inner h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-heading);
}

.success-inner p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.success-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── 21. LIGHTBOX ── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(3, 13, 7, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(12, 40, 24, 0.7);
  border: 1px solid var(--border-hi);
  color: var(--text-heading);
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--trans-fast);
}

.lightbox-close:hover {
  background: var(--accent);
  color: var(--bg-deep);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(12, 40, 24, 0.7);
  border: 1px solid var(--border-hi);
  color: var(--text-heading);
  font-size: 2.2rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--trans-fast);
}

.lb-prev { left: 24px; }
.lb-next { right: 24px; }

.lightbox-nav:hover {
  background: var(--accent);
  color: var(--bg-deep);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-media-wrap {
  max-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lb-img {
  max-height: 76vh;
  max-width: 85vw;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 230, 92, 0.15);
  transition: opacity 0.25s ease;
}

.lb-meta {
  text-align: center;
}

#lb-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.lb-tags-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.lb-client-tag {
  font-size: 0.95rem;
  color: var(--accent-lime);
  font-weight: 600;
}

.lb-tag {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ── 22. FOOTER ── */
.footer {
  padding: 60px 0 40px;
  background: var(--bg-footer);
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

.footer-inner {
  width: var(--container-width);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-tagline {
  font-size: 1.05rem;
  color: var(--text-body);
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-lime);
  transition: color var(--trans-fast);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ── 23. RESPONSIVE BREAKPOINTS (Tested at 1920, 1366, 768, 390px) ── */

/* Laptop & Tablet Landscape (768px – 1199px) */
@media (max-width: 1199px) {
  :root {
    --text-base: 1.05rem;
  }
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .featured-hanging-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tools-row {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cta-card {
    grid-template-columns: 1fr;
  }
  .cta-info {
    border-left: none;
    border-top: 2px solid var(--border-hi);
    padding-left: 0;
    padding-top: 24px;
  }
}

/* Tablet Portrait & Mobile (< 768px) */
@media (max-width: 767px) {
  .work-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 12px !important;
    row-gap: 12px !important;
    column-gap: 12px !important;
  }
  :root {
    --text-base: 1rem;
  }
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(4, 16, 10, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-hi);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--trans-base);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-cta {
    display: none; /* In nav on mobile, hero full-width buttons handle this */
  }

  /* Hero stacks: Card first and centered, then name, typing, buttons */
  .hero-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 36px;
  }
  .hero-right {
    order: -1; /* Card first and centered */
  }
  .hero-left {
    align-items: center;
  }
  .hero-name {
    font-size: clamp(3.2rem, 13vw, 4.5rem);
  }
  .hero-typing {
    justify-content: center;
  }
  .hero-btns {
    width: 100%;
  }
  .hero-btns button {
    width: 100%; /* Full-width buttons on mobile */
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
  .featured-hanging-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
  .logos-masonry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
  .work-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    row-gap: 12px !important;
    column-gap: 12px !important;
  }
  .portfolio-masonry-grid {
    gap: 12px;
  }
  html {
    font-size: 16px;
  }
  .hero-name {
    font-size: clamp(3rem, 14vw, 3.8rem); /* Spec: hero name >= 3rem */
  }
  .portfolio-masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
  .logos-masonry-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .hanging-card {
    width: 290px;
    height: 440px;
  }
}

/* ── 24. ACCESSIBILITY: PREFERS-REDUCED-MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #loader {
    display: none !important;
  }
  #bg-canvas {
    display: none !important;
  }
  .marquee-track {
    animation: none !important;
  }
}

/* ── CHANGE 3: MODAL BRAND NAME BLOCK ── */
.modal-brand {
  margin-bottom: 18px;
}
.modal-brand-name {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-heading);
  text-transform: uppercase;
  line-height: 1.1;
}
.modal-brand-role {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 5px;
}

/* ── CHANGE 1: SUBFOLDER TILES & BREADCRUMBS ── */
.portfolio-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.breadcrumb-item {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--trans-fast);
}
.breadcrumb-item:hover {
  color: var(--text-heading);
  text-decoration: underline;
}
.breadcrumb-sep {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.breadcrumb-current {
  color: var(--text-body);
  font-weight: 500;
}

.client-folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.subfolder-tile {
  background: var(--card-bg);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--trans-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.subfolder-tile:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 230, 92, 0.25);
  transform: translateY(-4px);
}
.subfolder-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}
.subfolder-info {
  flex: 1;
  min-width: 0;
}
.subfolder-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.subfolder-count {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}
.subfolder-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: transform var(--trans-fast), color var(--trans-fast);
}
.subfolder-tile:hover .subfolder-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.carousel-banner {
  background: var(--card-bg);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.carousel-banner-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 6px;
}
.carousel-banner-sub {
  font-size: 0.9rem;
  color: var(--text-body);
}

.carousel-slide-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(4, 16, 10, 0.88);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  z-index: 2;
}

.pdf-media-wrap {
  position: relative;
  background: #04100a;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.pdf-thumb-img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: #020b06;
}
.pdf-fallback-tile {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, #072616 0%, #030d07 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  border-radius: var(--radius-md);
}
.pdf-badge {
  background: #d32f2f !important;
  color: #fff !important;
  border: none !important;
}

/* ── INTERACTIVE STEP-THROUGH CAROUSEL VIEWER ── */
.carousel-step-viewer {
  background: var(--card-bg);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  margin-top: 10px;
  margin-bottom: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 230, 92, 0.15);
}

.carousel-viewport-stage {
  position: relative;
  width: 100%;
  max-width: 860px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.c-slide-frame {
  width: 100%;
  max-width: 680px;
  min-height: 440px;
  max-height: 640px;
  background: #020b06;
  border: 1px solid rgba(0, 230, 92, 0.35);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  user-select: none;
  touch-action: pan-y;
}

.c-stage-img {
  max-width: 100%;
  max-height: 620px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.c-step-arrow {
  background: rgba(7, 26, 15, 0.85);
  border: 1px solid var(--border-hi);
  color: var(--text-heading);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  transition: all var(--trans-fast);
  cursor: pointer;
  z-index: 10;
  flex-shrink: 0;
}

.c-step-arrow:hover {
  background: var(--accent);
  color: #04100a;
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
  transform: scale(1.1);
}

.c-step-arrow.c-step-prev {
  margin-right: 16px;
}

.c-step-arrow.c-step-next {
  margin-left: 16px;
}

.carousel-step-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.c-slide-counter-badge {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(4, 16, 10, 0.85);
  border: 1px solid var(--border-hi);
  padding: 6px 20px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.c-dots-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.c-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(205, 235, 214, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.c-step-dot:hover {
  background: var(--accent-light);
  transform: scale(1.2);
}

.c-step-dot.active {
  width: 24px;
  border-radius: 6px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.c-thumb-nav-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  overflow-x: auto;
  padding: 8px 4px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.c-thumb-nav-item {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  border: 2px solid rgba(0, 230, 92, 0.3);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  background: #020b06;
  transition: all var(--trans-fast);
}

.c-thumb-nav-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-thumb-nav-item .c-thumb-nav-label {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(4, 16, 10, 0.85);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
}

.c-thumb-nav-item:hover {
  border-color: var(--accent-light);
  transform: translateY(-2px);
}

.c-thumb-nav-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(0, 230, 92, 0.5);
  transform: scale(1.05);
}

@media (max-width: 767px) {
  .carousel-viewport-stage {
    flex-direction: column;
    gap: 14px;
  }
  .c-step-arrow.c-step-prev, .c-step-arrow.c-step-next {
    margin: 0 8px;
  }
  .c-slide-frame {
    min-height: 280px;
    max-height: 420px;
  }
}
