/* ==========================================================================
   COMPONENTS.CSS — Buttons, Cards, Forms, Navbar, Sections, Footer
   Alfiz Ilham Portfolio
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BUTTONS (neumorphism)
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
  will-change: transform;
}

.btn:active {
  transform: scale(0.97);
}

.btn svg,
.btn i {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  box-shadow: var(--neu-shadow-out);
}

.btn-primary:hover {
  background: var(--color-black);
  box-shadow: var(--neu-shadow-out-sm);
  transform: translateY(-1px);
}

.btn-primary:active {
  box-shadow: var(--neu-shadow-in);
  transform: scale(0.97);
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-text);
  border: none;
  padding: 14px 16px;
  box-shadow: var(--neu-shadow-out-sm);
}

.btn-secondary:hover {
  color: var(--color-text-muted);
  box-shadow: var(--neu-shadow-out);
}

.btn-secondary:active {
  box-shadow: var(--neu-shadow-in);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: none;
  padding: 14px 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-ghost:hover {
  color: var(--color-text-muted);
}

.btn-outline {
  background: var(--color-bg);
  color: var(--color-text);
  border: none;
  padding: 10px 20px;
  font-size: var(--fs-body-sm);
  box-shadow: var(--neu-shadow-out-sm);
}

.btn-outline:hover {
  background: var(--color-bg-soft);
  color: var(--color-text);
  box-shadow: var(--neu-shadow-out);
}

.btn-outline:active {
  box-shadow: var(--neu-shadow-in);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 20px;
  font-size: var(--fs-body-sm);
  box-shadow: var(--neu-dark-out);
}

.btn-outline-light:hover {
  background: var(--color-white);
  color: var(--color-text);
  border-color: var(--color-white);
}

.btn-outline-light:active {
  box-shadow: var(--neu-dark-in);
}

/* --------------------------------------------------------------------------
   2. NAVBAR
   -------------------------------------------------------------------------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: transparent;
  z-index: var(--z-sticky);
  transform: translateY(0);
  transition:
    transform 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease,
    -webkit-backdrop-filter 0.35s ease;
}

.navbar.hidden {
  transform: translateY(-100%);
}

/* Glassmorphism once the user scrolls past the intro/hero */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* At the top (intro/hero): transparent + mix-blend-difference so the white
   content auto-inverts against whatever is behind it (black wordmark → light,
   white gaps → dark). */
.navbar.at-top {
  background: transparent;
  mix-blend-mode: difference;
  -webkit-mix-blend-mode: difference;
}

/* Inverted (light) content while transparent over the dark hero wordmark */
.navbar.at-top .navbar-logo,
.navbar.at-top .navbar-links a,
.navbar.at-top .navbar-social a,
.navbar.at-top .navbar-hamburger {
  color: #ffffff;
}

.navbar.at-top .navbar-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.navbar.at-top .navbar-social a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.navbar.at-top .lang-toggle {
  background: transparent;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.navbar.at-top .lang-btn {
  color: rgba(255, 255, 255, 0.8);
}

.navbar.at-top .lang-btn:hover {
  color: #ffffff;
}

.navbar.at-top .lang-btn.active {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: none;
}

.navbar.at-top .navbar-hamburger svg {
  color: #ffffff;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

.navbar-logo {
  font-size: var(--fs-h4);
  font-weight: var(--fw-extrabold);
  color: var(--color-text);
  letter-spacing: var(--ls-tight);
}

.navbar-links {
  display: flex;
  gap: var(--space-5);
}

.navbar-links a {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}

.navbar-links a:hover {
  color: var(--color-text);
}

.navbar-links a.active {
  color: var(--color-text);
  font-weight: var(--fw-semibold);
  position: relative;
}

.navbar-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
}

.navbar.at-top .navbar-links a.active {
  color: #ffffff;
}

.navbar.at-top .navbar-links a.active::after {
  background: #ffffff;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.lang-toggle {
  display: flex;
  border: none;
  border-radius: var(--radius-full);
  overflow: hidden;
  padding: 2px;
  background: var(--color-bg-soft);
  box-shadow: var(--neu-shadow-in-sm);
}

.lang-btn {
  padding: 4px 11px;
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.lang-btn:hover {
  color: var(--color-text);
}

.lang-btn.active {
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: var(--neu-shadow-out-sm);
}

.navbar-social {
  display: flex;
  gap: var(--space-3);
  padding-left: var(--space-3);
  border-left: 1px solid var(--color-border);
}

.navbar-social a {
  font-size: 17px;
  color: var(--color-text);
  transition: color var(--transition-base);
}

.navbar-social a:hover {
  color: var(--color-text-muted);
}

.navbar.at-top .navbar-social {
  border-left-color: rgba(255, 255, 255, 0.35);
}

.navbar-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  background: none;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.navbar-hamburger svg {
  width: 24px;
  height: 24px;
}

/* Mobile Menu */
.mobile-menu {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  z-index: var(--z-overlay);
  padding: 24px;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-7);
}

.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-close svg {
  width: 24px;
  height: 24px;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Stagger entrance when menu opens */
.mobile-menu-links a {
  font-size: var(--fs-h2);
  font-weight: var(--fw-extrabold);
  color: var(--color-text);
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.35s ease, transform 0.35s ease, color var(--transition-base);
}

.mobile-menu.open .mobile-menu-links a {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.open .mobile-menu-links li:nth-child(1) a {
  transition-delay: 0.05s;
}

.mobile-menu.open .mobile-menu-links li:nth-child(2) a {
  transition-delay: 0.1s;
}

.mobile-menu.open .mobile-menu-links li:nth-child(3) a {
  transition-delay: 0.15s;
}

.mobile-menu.open .mobile-menu-links li:nth-child(4) a {
  transition-delay: 0.2s;
}

.mobile-menu.open .mobile-menu-links li:nth-child(5) a {
  transition-delay: 0.25s;
}

.mobile-menu.open .mobile-menu-links li:nth-child(6) a {
  transition-delay: 0.3s;
}

.mobile-menu.open .mobile-menu-links li:nth-child(7) a {
  transition-delay: 0.35s;
}

.mobile-menu-links a.active {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 8px;
}

.mobile-menu-links a:hover {
  transform: translateX(6px);
}

.mobile-menu-lang {
  display: flex;
  gap: 4px;
  margin-top: var(--space-6);
  padding: 2px;
  border-radius: var(--radius-full);
  background: var(--color-bg-soft);
  box-shadow: var(--neu-shadow-in-sm);
  width: fit-content;
}

.mobile-menu-lang .lang-btn {
  padding: 6px 16px;
  font-size: var(--fs-body-sm);
}

.mobile-menu-social {
  display: flex;
  gap: var(--space-5);
  margin-top: auto;
  padding-bottom: 40px;
}

.mobile-menu-social a {
  font-size: 24px;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   3. INTRO SECTION (wordmark besar)
   -------------------------------------------------------------------------- */

.intro {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-wordmark {
  position: absolute;
  top: 50%;
  left: -15%;
  right: -15%;
  display: flex;
  flex-direction: column;
  transform: translateY(-50%) rotate(-10deg);
  user-select: none;
  pointer-events: none;
}

.intro-wordmark-row {
  display: flex;
  width: max-content;
  font-family: var(--font-family);
  font-weight: var(--fw-extrabold);
  line-height: 0.85;
  color: var(--color-text);
  white-space: nowrap;
}

/* Alternate infinite marquee directions */
.intro-marquee-left {
  animation: intro-marquee-left 22s linear infinite both;
}

.intro-marquee-right {
  animation: intro-marquee-right 22s linear infinite both;
}

@keyframes intro-marquee-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-25%);
  }
}

@keyframes intro-marquee-right {
  from {
    transform: translateX(-25%);
  }

  to {
    transform: translateX(0);
  }
}

.intro-mascot {
  position: relative;
  z-index: 2;
  max-height: 420px;
  will-change: transform;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

/* --------------------------------------------------------------------------
   4. HERO SECTION (Hi, My Name Is)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  overflow: hidden;
  background: var(--color-bg);
}

/* Aurora blobs */
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  background: #e0e0e0;
  pointer-events: none;
  z-index: 0;
}

.aurora-blob-left {
  width: 400px;
  height: 400px;
  left: -96px;
  bottom: -96px;
  opacity: 0.3;
  filter: blur(100px);
}

.aurora-blob-right {
  width: 350px;
  height: 350px;
  right: -96px;
  top: -96px;
  opacity: 0.25;
  filter: blur(120px);
}

/* Hero photo — absolute kanan, magnetik + parallax */
.hero-magnet {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: auto;
  display: none;
}

.hero-photo {
  width: clamp(300px, 35vw, 500px);
  height: clamp(450px, 52vh, 750px);
}

.hero-avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Floating icons — white tool cards */
.floating-icon {
  position: absolute;
  z-index: 7;
  width: 60px;
  height: 60px;
  border-radius: var(--neu-radius);
  background: var(--color-bg);
  box-shadow: var(--neu-shadow-out-sm);
  display: none;
  align-items: center;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
}

.floating-icon img {
  width: 32px;
  height: 32px;
}

.hero-icon-1 {
  top: 12%;
  right: 18%;
}

.hero-icon-2 {
  top: 36%;
  right: 25%;
  animation-delay: 1.5s;
}

.hero-icon-3 {
  top: 40%;
  right: 5%;
  animation-delay: 3s;
}

/* Foreground content */
.hero-content {
  position: relative;
  z-index: 20;
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-preheading {
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--space-3);
}

.hero-name {
  font-family: var(--font-family);
  font-weight: var(--fw-extrabold);
  font-size: clamp(56px, 14vw, 160px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  margin-top: var(--space-2);
  color: var(--color-text);
}

.hero-tagline-row {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

.hero-tagline {
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  max-width: 320px;
  line-height: 1.4;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-muted);
}

.hero-ctas {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Info card (stats) */
.hero-stats-card {
  position: absolute;
  bottom: 48px;
  right: 24px;
  z-index: 30;
  width: 210px;
  padding: 20px;
  border-radius: var(--neu-radius);
  background: var(--color-bg);
  border: 3px solid var(--color-bg);
  box-shadow:
    inset 0 8px 12px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.08);
  animation: float 3s ease-in-out infinite;
}

.hero-stats-avatars {
  display: flex;
  margin-bottom: var(--space-3);
}

.hero-stats-avatars img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-bg);
  margin-left: -8px;
  object-fit: cover;
}

.hero-stats-avatars img:first-child {
  margin-left: 0;
}

.hero-stats-info strong {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-bold);
  line-height: 1.3;
}

.hero-stats-info ul {
  margin-top: 6px;
}

.hero-stats-info li {
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  list-style: disc;
  margin-left: 16px;
}

/* Stagger reveal */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal-item.in-view {
  opacity: 1;
  transform: none;
}

@media (min-width: 768px) {

  .hero-magnet,
  .floating-icon {
    display: flex;
  }

  .hero-magnet {
    display: block;
  }

  .hero-tagline-row {
    flex-direction: row;
    align-items: flex-end;
    gap: var(--space-5);
  }
}

/* --------------------------------------------------------------------------
   5. CURVED MARQUEE
   -------------------------------------------------------------------------- */

.curved-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-bg);
  padding: var(--space-7) 0;
}

.curved-loop-jacket {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 0;
}

.curved-loop-svg {
  width: 100%;
  aspect-ratio: 100 / 12;
  overflow: visible;
  display: block;
  font-size: clamp(48px, 8vw, 96px);
  fill: var(--color-text);
  font-weight: var(--fw-extrabold);
  text-transform: uppercase;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
}

/* --------------------------------------------------------------------------
   6. ABOUT ME DETAIL
   -------------------------------------------------------------------------- */

.about-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}

.about-avatar-wrapper {
  position: relative;
}

.about-avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 450px;
}

.about-stat-card {
  position: absolute;
  background: var(--color-bg);
  border-radius: var(--neu-radius);
  padding: 10px 14px;
  box-shadow: var(--neu-shadow-out);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
}

.stat-card-1 {
  top: 10px;
  left: 10px;
  z-index: 0;
  animation: float-y 3.5s ease-in-out infinite;
}

.stat-card-2 {
  top: 10px;
  right: 10px;
  animation: float-y 3.5s ease-in-out infinite;
  animation-delay: -1.75s;
}

@keyframes float-y {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .stat-card-1,
  .stat-card-2 {
    animation: none;
  }
}

.stat-big {
  font-size: var(--fs-h3);
  font-weight: var(--fw-extrabold);
}

.stat-label {
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
}

.about-role-pill {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-bg);
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 20px;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  box-shadow: var(--neu-shadow-out-sm);
  z-index: 2;
}

.eyebrow-pill {
  display: inline-block;
  background: var(--color-bg);
  border: none;
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  box-shadow: var(--neu-shadow-out-sm);
}

.about-heading {
  font-size: var(--fs-h1);
  font-weight: var(--fw-extrabold);
  text-transform: uppercase;
  line-height: var(--lh-tight);
  margin-bottom: var(--space-5);
}

.about-description {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  max-width: 480px;
  margin-bottom: var(--space-6);
}

.about-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Tech Ticker */
.tech-ticker {
  overflow: hidden;
  margin-top: var(--space-8);
  padding: var(--space-4) 0;
}

.tech-ticker-track {
  display: flex;
  gap: var(--space-6);
  width: max-content;
  animation: ticker 30s linear infinite both;
}

.tech-ticker-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.tech-ticker-item img {
  width: 28px;
  height: 28px;
}

.tech-ticker-item span {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   7. BIO STATEMENT + STATS
   -------------------------------------------------------------------------- */

.bio-stats.section-padding {
  padding-top: 72px;
}

.bio-statement {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-7);
}

/* Fold Text entrance (vanilla port of ReactBits FoldText) */
.fold-visual {
  display: inline;
}

.fold-segment {
  display: inline-block;
  perspective: 700px;
}

.fold-piece {
  position: relative;
  display: inline-block;
  line-height: inherit;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.fold-piece::after {
  content: "";
  position: absolute;
  inset: -0.08em -0.02em;
  pointer-events: none;
  opacity: var(--fold-crease, 0);
  mix-blend-mode: multiply;
  border-radius: 0.08em;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.58) 0%,
      rgba(0, 0, 0, 0.22) 42%,
      rgba(255, 255, 255, 0.26) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .fold-piece {
    transform: none !important;
  }

  .fold-piece::after {
    opacity: 0 !important;
  }
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  padding-top: var(--space-6);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.stat-item-label {
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
}

.stat-item-value {
  font-size: var(--fs-h2);
  font-weight: var(--fw-extrabold);
}

/* --------------------------------------------------------------------------
   8. SKILL SET
   -------------------------------------------------------------------------- */

.section-header {
  margin-bottom: var(--space-8);
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: var(--space-4) auto 0;
}

/* Icon Grid */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: var(--space-7);
  column-gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.icon-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  position: relative;
}

.icon-grid-item img {
  width: 48px;
  height: 48px;
}

.icon-grid-item span {
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  text-align: center;
}

/* Hover wiggle */
@keyframes icon-wiggle {

  0%,
  100% {
    transform: rotate(0);
  }

  20% {
    transform: rotate(-6deg);
  }

  40% {
    transform: rotate(5deg);
  }

  60% {
    transform: rotate(-4deg);
  }

  80% {
    transform: rotate(3deg);
  }
}

.icon-grid-item:hover img {
  animation: icon-wiggle 0.5s ease-in-out;
}

/* Category tooltip */
.icon-grid-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--color-black);
  color: var(--color-white);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 5;
}

.icon-grid-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .icon-grid-item:hover img {
    animation: none;
  }

  .icon-grid-item::after {
    transition: opacity 0.2s ease;
  }
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 18px;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-full);
  border: none;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  box-shadow: var(--neu-shadow-out-sm);
}

.filter-pill:hover {
  box-shadow: var(--neu-shadow-out);
}

.filter-pill:active {
  box-shadow: var(--neu-shadow-in-sm);
}

.filter-pill.active {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--neu-shadow-out-sm);
}

.search-box {
  position: relative;
  min-width: 200px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--color-text-faint);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--fs-body-sm);
  background: var(--color-bg);
  outline: none;
  box-shadow: var(--neu-shadow-in-sm);
  transition: box-shadow var(--transition-base);
}

.search-box input:focus {
  box-shadow: var(--neu-shadow-in);
}

.search-box input::placeholder {
  color: var(--color-text-faint);
}

.empty-state {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--fs-body);
  padding: var(--space-8) 0;
}

/* --------------------------------------------------------------------------
   9. PROJECTS TEASER
   -------------------------------------------------------------------------- */

.projects-teaser h1 {
  margin-top: var(--space-3);
  margin-bottom: var(--space-4);
}

/* Circular WebGL Gallery (vanilla port of ReactBits CircularGallery) */
.circular-gallery-wrap {
  margin-top: var(--space-8);
}

.circular-gallery {
  width: 100%;
  height: 420px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  outline: none;
}

.circular-gallery:active {
  cursor: grabbing;
}

.circular-gallery:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.5);
  outline-offset: 4px;
  border-radius: 12px;
}

.circular-gallery canvas {
  display: block;
}

.gallery-fallback {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.gallery-fallback img {
  height: 280px;
  width: auto;
  border-radius: 18px;
  flex-shrink: 0;
}

/* ChromaGrid Showcase (admin-curated cards) */
.chroma-grid-wrap {
  margin-top: var(--space-8);
  padding: 0 24px;
}

.chroma-grid {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 320px);
  grid-auto-rows: auto;
  justify-content: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
  --x: 50%;
  --y: 50%;
  --r: 220px;
}

.chroma-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 320px;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  cursor: pointer;
  box-shadow: var(--neu-shadow-out);

  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(0, 0, 0, 0.06);
}

.chroma-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--neu-shadow-out-lg);
}

.chroma-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.chroma-card:hover::before {
  opacity: 1;
}

.chroma-img-wrapper {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 10px;
  box-sizing: border-box;
  background: transparent;
  overflow: hidden;
  transition: background 0.3s ease;
}

.chroma-img-wrapper img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.chroma-info {
  position: relative;
  z-index: 1;
  padding: 12px 16px 16px;
  color: #0a0a0a;
  display: grid;
  row-gap: 4px;
}

.chroma-info .name {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
}

.chroma-info .role {
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.chroma-card.chroma-extra {
  display: none;
}

.chroma-load-more {
  text-align: center;
  margin-top: var(--space-6);
}

/* Feature highlights (below ChromaGrid) */
.feature-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-7);
  max-width: 720px;
  margin: var(--space-8) auto 0;
  text-align: center;
}

.feature-highlight-title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-2);
}

.feature-highlight-desc {
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  max-width: 46ch;
  margin-inline: auto;
}

.chroma-overlay,
.chroma-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  backdrop-filter: grayscale(1);
  -webkit-backdrop-filter: grayscale(1);
  background: rgba(0, 0, 0, 0.001);
}

.chroma-overlay {
  z-index: 3;
  mask-image: radial-gradient(circle var(--r) at var(--x) var(--y),
      transparent 0%,
      transparent 15%,
      rgba(0, 0, 0, 0.1) 30%,
      rgba(0, 0, 0, 0.22) 45%,
      rgba(0, 0, 0, 0.35) 60%,
      rgba(0, 0, 0, 0.5) 75%,
      rgba(0, 0, 0, 0.68) 88%,
      white 100%);
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y),
      transparent 0%,
      transparent 15%,
      rgba(0, 0, 0, 0.1) 30%,
      rgba(0, 0, 0, 0.22) 45%,
      rgba(0, 0, 0, 0.35) 60%,
      rgba(0, 0, 0, 0.5) 75%,
      rgba(0, 0, 0, 0.68) 88%,
      white 100%);
}

.chroma-fade {
  z-index: 4;
  opacity: 1;
  transition: opacity 0.25s ease;
  mask-image: radial-gradient(circle var(--r) at var(--x) var(--y),
      white 0%,
      white 15%,
      rgba(255, 255, 255, 0.9) 30%,
      rgba(255, 255, 255, 0.78) 45%,
      rgba(255, 255, 255, 0.65) 60%,
      rgba(255, 255, 255, 0.5) 75%,
      rgba(255, 255, 255, 0.32) 88%,
      transparent 100%);
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y),
      white 0%,
      white 15%,
      rgba(255, 255, 255, 0.9) 30%,
      rgba(255, 255, 255, 0.78) 45%,
      rgba(255, 255, 255, 0.65) 60%,
      rgba(255, 255, 255, 0.5) 75%,
      rgba(255, 255, 255, 0.32) 88%,
      transparent 100%);
}

/* Kebab menu (editor mode only) */
.chroma-menu-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(18, 20, 26, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.chroma-menu-btn svg {
  width: 18px;
  height: 18px;
}

body.editor-mode .chroma-menu-btn {
  display: flex;
}

.chroma-menu {
  position: absolute;
  top: 48px;
  right: 10px;
  z-index: 7;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  padding: 6px;
  display: none;
  flex-direction: column;
  min-width: 140px;
}

.chroma-menu.open {
  display: flex;
}

.chroma-menu button {
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: var(--fs-body-sm);
  background: none;
  border: none;
  cursor: pointer;
}

.chroma-menu button:hover {
  background: var(--color-bg-soft);
}

.chroma-menu button.danger {
  color: #dc2626;
}

/* Editor toolbar */
.editor-toolbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 80px));
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

body.editor-mode .editor-toolbar {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Toolbar slides away while the card form modal is open */
body.card-form-open .editor-toolbar,
body.bulk-import-open .editor-toolbar {
  transform: translateX(-50%) translateY(calc(100% + 80px));
  opacity: 0;
  pointer-events: none;
}

.editor-toolbar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 6px;
}

.editor-toolbar-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 1.5s ease-in-out infinite;
}

.editor-toolbar-label {
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.editor-toolbar-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.14);
}

.editor-toolbar-cta,
.editor-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: var(--fs-caption);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.editor-toolbar-cta {
  background: #fff;
  color: #0a0a0a;
  border: 1px solid #fff;
  font-weight: var(--fw-bold);
}

.editor-toolbar-cta:hover {
  background: var(--color-bg-soft);
}

.editor-toolbar-cta svg,
.editor-toolbar-btn svg {
  width: 14px;
  height: 14px;
}

.editor-toolbar-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.editor-toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.editor-toolbar-muted {
  color: rgba(255, 255, 255, 0.55);
}

/* Editor modals */
.editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.editor-overlay[hidden] {
  display: none;
}

.editor-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.editor-modal::-webkit-scrollbar {
  display: none;
}

.editor-modal-wide {
  max-width: 520px;
}

.bulk-import-modal {
  max-width: 500px;
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .28);
}

.bulk-import-eyebrow {
  margin: 0 0 8px;
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: .16em;
}

.bulk-import-field {
  margin-top: 18px;
}

.bulk-import-field label,
.bulk-import-label {
  margin: 0 0 7px;
}

.bulk-import-select-wrap {
  position: relative;
}

.bulk-import-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 42px 13px 14px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-soft);
  color: var(--color-text);
  text-align: left;
  font: inherit;
  font-size: var(--fs-body-sm);
  cursor: pointer;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.bulk-import-select-trigger:hover,
.bulk-import-select-trigger:focus,
.bulk-import-select-trigger[aria-expanded="true"] {
  border-color: var(--color-text);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.bulk-import-select-trigger svg {
  width: 17px;
  flex: 0 0 auto;
  color: var(--color-text-muted);
  transition: transform .2s ease;
}

.bulk-import-select-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.bulk-import-options {
  position: absolute;
  z-index: 5;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
}

.bulk-import-options[hidden] {
  display: none;
}

.bulk-import-options button {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--color-text);
  text-align: left;
  font: inherit;
  font-size: var(--fs-body-sm);
  cursor: pointer;
}

.bulk-import-options button:hover,
.bulk-import-options button[aria-selected="true"] {
  background: var(--color-bg-soft);
  font-weight: var(--fw-semibold);
}

.bulk-import-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.bulk-import-file {
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
  padding: 14px;
  border: 1px dashed #b8b8b8;
  border-radius: 14px;
  background: linear-gradient(135deg, #fafafa, #f2f2f2);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.bulk-import-file:hover,
.bulk-import-file:focus-within {
  border-color: var(--color-text);
  background: #fff;
  transform: translateY(-1px);
}

.bulk-import-file-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
  background: #111;
  color: #fff;
}

.bulk-import-file-icon svg {
  width: 19px;
}

.bulk-import-file-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.bulk-import-file-copy strong {
  font-size: var(--fs-body-sm);
}

.bulk-import-file-copy small,
.bulk-import-file-name {
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: var(--fs-caption);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bulk-import-file-name {
  grid-column: 2;
  margin-top: -5px;
}

.bulk-import-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bulk-import-submit svg {
  width: 16px;
}

.editor-modal h2 {
  font-size: var(--fs-h3);
  margin-bottom: 4px;
}

.editor-modal-sub {
  color: var(--color-text-muted);
  font-size: var(--fs-body-sm);
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.editor-modal label {
  display: block;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  margin: 14px 0 6px;
}

.editor-modal input[type="text"],
.editor-modal input[type="url"],
.editor-modal input[type="password"],
.editor-modal textarea {
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-radius: 12px;
  background: var(--color-bg-soft);
  outline: none;
  font-size: var(--fs-body-sm);
  box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.06), inset -2px -2px 6px rgba(255, 255, 255, 0.8);
}

.editor-modal textarea {
  resize: vertical;
  min-height: 84px;
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 18px;
}

.form-error {
  color: #dc2626;
  font-size: var(--fs-caption);
  min-height: 16px;
  display: block;
  margin-top: 4px;
}

/* Delete confirmation modal */
.editor-modal-sm {
  max-width: 380px;
  text-align: center;
}

.delete-icon {
  width: 64px;
  height: 64px;
  margin: 4px auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fef2f2;
  color: #dc2626;
}

.delete-icon svg {
  width: 28px;
  height: 28px;
}

.delete-card-name {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delete-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.delete-actions .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
  box-shadow: var(--neu-shadow-out-sm);
}

.btn-danger:hover {
  background: #b91c1c;
  box-shadow: var(--neu-shadow-out);
  transform: translateY(-1px);
}

.btn-danger:active {
  box-shadow: var(--neu-shadow-in);
  transform: scale(0.97);
}

/* Dropzone */
.dropzone {
  border: 2px dashed var(--color-border);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
}

.dropzone.dragover {
  border-color: #0a0a0a;
  background: var(--color-bg-soft);
}

.dropzone-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
}

.dropzone-empty svg {
  width: 34px;
  height: 34px;
}

.dropzone-empty p {
  font-size: var(--fs-body-sm);
}

.dropzone-browse {
  color: #0a0a0a;
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  font-size: var(--fs-body-sm);
}

.dropzone-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.dropzone-preview img {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}

.dropzone-name {
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Lightbox — macOS-style viewer */
.lb-viewer {
  position: fixed;
  inset: 0;
  z-index: 8500;
  background: rgba(8, 8, 10, 0.96);
  display: flex;
  flex-direction: column;
}

.lb-viewer[hidden] {
  display: none;
}

.lb-counter {
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 20;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-body-sm);
  letter-spacing: var(--ls-wide);
  font-variant-numeric: tabular-nums;
}

.lb-actions {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 20;
  display: flex;
  gap: 8px;
}

.lb-action {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: background 0.2s ease;
}

.lb-action:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lb-action[hidden] {
  display: none;
}

.lb-action svg {
  width: 17px;
  height: 17px;
}

.lb-stage {
  position: relative;
  margin: auto;
  width: auto;
  max-width: calc(100vw - 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-viewer:not([hidden]) .lb-stage {
  animation: lb-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes lb-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

#lightboxImage {
  max-width: calc(100vw - 4rem);
  max-height: calc(100vh - 110px - 2rem);
  max-height: calc(100dvh - 110px - 2rem);
  object-fit: contain;
  display: block;
  border-radius: 14px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}

.lb-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 46px 28px 20px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
  border-radius: 0 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.lb-scrim h3 {
  color: #fff;
  font-size: var(--fs-h3);
}

.lb-scrim p {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-body-sm);
  max-width: 70ch;
}

.lb-scrim a {
  margin-top: 6px;
  align-self: start;
  color: #fff;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lb-scrim a:hover {
  border-color: #fff;
}

.lb-scrim a[hidden] {
  display: none;
}

.lb-scrim a svg {
  width: 13px;
  height: 13px;
}

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lb-arrow:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lb-arrow svg {
  width: 20px;
  height: 20px;
}

.lb-arrow--prev {
  left: 26px;
}

.lb-arrow--next {
  right: 26px;
}

.lb-filmstrip {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  margin: 0 auto 18px;
  max-width: 92vw;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  scrollbar-width: thin;
}

.lb-thumb {
  flex: 0 0 auto;
  width: 86px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.55;
  cursor: pointer;
  padding: 0;
  background: #111;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lb-thumb:hover {
  opacity: 0.85;
}

.lb-thumb.is-active {
  border-color: #fff;
  opacity: 1;
}

@media (max-width: 768px) {
  #lightboxImage {
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 120px - 1rem);
    max-height: calc(100dvh - 120px - 1rem);
  }

  .lb-arrow {
    width: 38px;
    height: 38px;
  }

  .lb-arrow--prev {
    left: 10px;
  }

  .lb-arrow--next {
    right: 10px;
  }
}

@media (max-width: 1124px) {
  .chroma-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 320px));
    gap: 8px;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .chroma-grid {
    grid-template-columns: minmax(0, 320px);
    gap: 12px;
    padding: 12px;
  }

  .chroma-card {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   11. SERVICES
   -------------------------------------------------------------------------- */

.services-heading {
  font-size: clamp(48px, 7vw, 90px);
  font-weight: var(--fw-extrabold);
  text-transform: uppercase;
  line-height: var(--lh-tight);
  margin-bottom: var(--space-6);
}

.services-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-6);
  padding: var(--space-6) 0;
}

.services-tagline {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  max-width: 480px;
}

.services-top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
  text-align: right;
}

.services-caption {
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
  max-width: 280px;
}

/* Accordion Gallery (services) */
.services-accordion-wrap {
  padding: var(--space-6) 0;
}

.accordion-gallery {
  --ag-accent: #ffffff;
  --ag-overlay: #000000;
  --ag-text: #ffffff;
  --ag-gap: 10px;
  --ag-radius: 16px;
  --ag-media-size: 320px;

  display: flex;
  flex-direction: row;
  gap: var(--ag-gap);
  width: 100%;
  max-width: 100%;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}

.ag-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--ag-radius);
  cursor: pointer;
  display: block;
  text-decoration: none;
  outline: none;
  transform-style: preserve-3d;
  transform-origin: center center;
  background: #0a0713;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
  will-change: flex-grow, transform;
  -webkit-tap-highlight-color: transparent;
}

.ag-panel:focus-visible {
  box-shadow:
    0 0 0 2px var(--ag-accent),
    0 10px 30px -18px rgba(0, 0, 0, 0.8);
}

.ag-panel__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.ag-panel__media {
  --ag-gray: 1;
  --ag-dim: 0.35;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--ag-media-size);
  height: 100%;
  filter: grayscale(var(--ag-gray));
  will-change: transform, filter;
}

.ag-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.ag-panel__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.78) 100%),
    rgba(0, 0, 0, var(--ag-dim, 0.35));
}

.ag-panel__label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  z-index: 2;
}

.ag-panel__bar {
  flex: 0 0 auto;
  width: 3px;
  height: 26px;
  border-radius: 3px;
  background: var(--ag-accent);
  opacity: 0;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.ag-panel__text {
  color: var(--ag-text);
  font-family: inherit;
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  letter-spacing: 0.01em;
  overflow: hidden;
  opacity: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.ag-panel__title {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-panel__desc {
  display: block;
  font-weight: 400;
  font-size: var(--fs-body-sm);
  opacity: 0.75;
  margin-top: 4px;
  white-space: normal;
  line-height: var(--lh-body);
}

/* Accordion gallery: mobile stacking */
@media (max-width: 520px) {
  .accordion-gallery {
    flex-direction: column;
    perspective: none;
    height: auto !important;
  }

  .ag-panel {
    height: 200px;
    min-height: 0;
    flex: none;
    transform: none !important;
  }

  .accordion-gallery .ag-panel__media {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    top: 0;
    left: 0;
  }

  .ag-panel__label {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {

  .ag-panel,
  .ag-panel__media {
    will-change: auto;
  }
}

/* --------------------------------------------------------------------------
   12. TECH MARQUEE (DARK)
   -------------------------------------------------------------------------- */

.tech-marquee {
  background: var(--color-bg-dark);
  overflow: hidden;
  padding: 0;
}

.tech-marquee-row {
  padding: 14px 0;
  overflow: hidden;
}

.tech-marquee-row-1 {
  border-bottom: 1px solid var(--color-border-dark);
}

.marquee-dark-track {
  display: flex;
  width: max-content;
}

.marquee-dark-track span {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  white-space: nowrap;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding-right: var(--space-4);
  flex-shrink: 0;
}

.marquee-left {
  animation: marquee-dark 30s linear infinite both;
}

.marquee-right {
  animation: marquee-dark-reverse 30s linear infinite both;
}

@keyframes marquee-dark {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee-dark-reverse {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

/* --------------------------------------------------------------------------
   13. GALLERY
   -------------------------------------------------------------------------- */

.gallery-masonry {
  column-count: 4;
  column-gap: 16px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
  filter: grayscale(100%);
  transition: transform var(--transition-slow), filter var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* --------------------------------------------------------------------------
   14. CTA SECTION
   -------------------------------------------------------------------------- */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.testimonial-card {
  background: var(--color-bg);
  border-radius: var(--neu-radius);
  padding: var(--space-5);
  box-shadow: var(--neu-shadow-out-sm);
  border: none;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
}

.testimonial-stars i {
  font-size: 16px;
  color: var(--color-text);
}

.testimonial-text {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin-bottom: var(--space-5);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
}

.testimonial-role {
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */

.faq-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-6);
  margin-top: var(--space-7);
}

.faq-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-category {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 0;
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-base);
}

.faq-category:hover {
  color: var(--color-text);
}

.faq-category.active {
  color: var(--color-text);
  font-weight: var(--fw-bold);
}

.faq-panel {
  background: var(--color-bg);
  border-radius: var(--neu-radius-lg);
  padding: var(--space-6) var(--space-7);
  max-height: 440px;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: var(--neu-shadow-out);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: var(--space-4);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform var(--transition-slow);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding-bottom: 20px;
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  line-height: var(--lh-body);
}

.faq-item.hidden {
  display: none;
}

/* --------------------------------------------------------------------------
   15B. CERTIFICATES
   -------------------------------------------------------------------------- */

.certificates-heading {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: var(--fw-extrabold);
  text-transform: uppercase;
  line-height: var(--lh-tight);
  margin-bottom: var(--space-3);
  text-align: center;
}

.certificates-subtitle {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  max-width: 560px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.certificates .eyebrow {
  text-align: center;
}

.certificates-grid-wrap {
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: var(--space-8);
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

/* Certificate card */
.cert-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  cursor: default;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.cert-card img {
  width: 100%;
  display: block;
}

/* Expand info on hover */
.cert-card-info {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 16px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.06);
}

.cert-card:hover .cert-card-info {
  max-height: 240px;
  padding: 16px;
}

.cert-card-title {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: #0a0a0a;
  margin-bottom: 2px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

/* Pagination hides cards beyond the active public-page threshold. */
.chroma-extra,
.cert-extra {
  display: none !important;
}

.cert-card-company {
  font-size: var(--fs-body-sm);
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 4px;
}

.cert-card-credential {
  font-size: var(--fs-caption);
  color: rgba(0, 0, 0, 0.4);
}

.cert-card-credential a {
  color: rgba(0, 0, 0, 0.5);
  text-decoration: underline;
}

.cert-card-credential a:hover {
  color: #0a0a0a;
}

/* Load more */
.cert-load-more {
  text-align: center;
  margin-top: var(--space-6);
}

/* Certificate kebab menu (editor mode only) */
.cert-menu-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(18, 20, 26, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

body.editor-mode .cert-menu-btn {
  display: flex;
}

.cert-menu {
  position: absolute;
  top: 48px;
  right: 10px;
  z-index: 7;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  padding: 6px;
  display: none;
  flex-direction: column;
  min-width: 120px;
}

.cert-menu.open {
  display: flex;
}

.cert-menu button {
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: var(--fs-body-sm);
  background: none;
  border: none;
  cursor: pointer;
}

.cert-menu button:hover {
  background: var(--color-bg-soft);
}

.cert-menu button.danger {
  color: #dc2626;
}

/* --------------------------------------------------------------------------
   16. CONTACT
   -------------------------------------------------------------------------- */

.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}

.contact-header h1 {
  line-height: var(--lh-tight);
}

.contact-subtext {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  max-width: 320px;
  text-align: right;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.contact-form {
  background: var(--color-bg);
  border: none;
  border-radius: var(--neu-radius-lg);
  padding: var(--space-6);
  box-shadow: var(--neu-shadow-out);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group label {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: none;
  border-radius: var(--neu-radius-sm);
  background: var(--color-bg);
  font-size: var(--fs-body);
  outline: none;
  box-shadow: var(--neu-shadow-in-sm);
  transition: box-shadow var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  box-shadow: var(--neu-shadow-in);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a5a5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  font-size: var(--fs-caption);
  color: #ef4444;
  min-height: 16px;
}

.form-status {
  margin-top: var(--space-4);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
}

.form-status.success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.form-status.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Custom Dropdown */
.custom-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: var(--neu-radius-sm);
  background: var(--color-bg);
  font-size: var(--fs-body);
  cursor: pointer;
  box-shadow: var(--neu-shadow-in-sm);
  transition: box-shadow var(--transition-base);
  text-align: left;
}

.dropdown-trigger:hover {
  box-shadow: var(--neu-shadow-in);
}

.dropdown-value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-chevron {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
  margin-left: 8px;
}

.custom-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-popup {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-bg);
  border-radius: var(--neu-radius-sm);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  max-height: 240px;
}

.dropdown-popup:not([hidden]) {
  display: flex;
  flex-direction: column;
}

.dropdown-search {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  font-size: var(--fs-body-sm);
  outline: none;
}

.dropdown-items {
  overflow-y: auto;
  flex: 1;
}

.dropdown-item {
  padding: 10px 14px;
  font-size: var(--fs-body-sm);
  cursor: pointer;
  transition: background var(--transition-base);
}

.dropdown-item:hover {
  background: var(--color-bg-soft);
}

.dropdown-item.active {
  color: var(--color-accent);
  font-weight: var(--fw-semibold);
}

.dropdown-item.hidden {
  display: none;
}

/* Timeline DateTime Picker (Calendar + Clock) — modal overlay */
.timeline-modal {
  width: min(360px, calc(100vw - 32px));
}

.dt-step {
  min-height: 300px;
}

/* Calendar */
.dt-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dt-cal-title {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
}

.dt-nav-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--neu-shadow-out-sm);
  transition: box-shadow var(--transition-base);
}

.dt-nav-btn:hover {
  box-shadow: var(--neu-shadow-in-sm);
}

.dt-cal-weekdays,
.dt-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.dt-cal-weekdays span {
  text-align: center;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  padding: 6px 0;
  text-transform: uppercase;
}

.dt-cal-day {
  aspect-ratio: 1;
  border: none;
  border-radius: 50%;
  background: none;
  font-size: var(--fs-body-sm);
  font-family: inherit;
  color: var(--color-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition-base);
}

.dt-cal-day:hover:not(:disabled) {
  background: var(--color-bg-soft);
}

.dt-cal-day.today {
  box-shadow: inset 0 0 0 1px var(--color-border);
}

.dt-cal-day.selected {
  background: var(--color-accent);
  color: #fff;
}

.dt-cal-day:disabled {
  color: var(--color-text-faint);
  cursor: not-allowed;
}

/* Clock */
.dt-clock-digital {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 30px;
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}

.dt-clock-seg {
  padding: 2px 8px;
  border-radius: 8px;
  color: var(--color-text-faint);
  cursor: pointer;
  transition: color var(--transition-base), background var(--transition-base);
}

.dt-clock-seg.active {
  color: var(--color-accent);
  background: var(--color-bg-soft);
}

.dt-clock-sep {
  color: var(--color-text-faint);
}

.dt-clock-face {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: var(--neu-shadow-in);
  touch-action: none;
}

.dt-clock-num {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  transform: translate(-50%, -50%);
  user-select: none;
  transition: background var(--transition-base), color var(--transition-base);
}

.dt-clock-num:hover {
  background: var(--color-bg-soft);
}

.dt-clock-num.selected {
  background: var(--color-accent);
  color: #fff;
}

/* Footer buttons */
.dt-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.dt-btn {
  padding: 8px 18px;
  border: none;
  border-radius: var(--neu-radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  box-shadow: var(--neu-shadow-out-sm);
  transition: box-shadow var(--transition-base);
}

.dt-btn:hover {
  box-shadow: var(--neu-shadow-in-sm);
}

.dt-btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.dt-btn-primary:hover {
  box-shadow: var(--neu-shadow-out-sm);
}

/* Compound input groups (phone + budget) */
.phone-input-group,
.budget-input-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.phone-input-group .custom-dropdown,
.budget-input-group .custom-dropdown {
  flex: 0 0 120px;
}

.phone-input-group input[type="tel"],
.budget-input-group input[type="number"] {
  flex: 1;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: var(--neu-radius-sm);
  background: var(--color-bg);
  font-size: var(--fs-body);
  outline: none;
  box-shadow: var(--neu-shadow-in-sm);
  transition: box-shadow var(--transition-base);
}

.phone-input-group input[type="tel"]:focus,
.budget-input-group input[type="number"]:focus {
  box-shadow: var(--neu-shadow-in);
}

/* Map */
.contact-map-column {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: var(--space-4);
}

.contact-map-card {
  border-radius: var(--neu-radius-lg);
  overflow: hidden;
  min-height: 280px;
  background: var(--color-bg);
  box-shadow: var(--neu-shadow-out);
}

#contact-map {
  width: 100%;
  height: 100%;
  min-height: 280px;
}

/* QR Cards */
.contact-qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.qr-card {
  aspect-ratio: 1 / 1;
  border-radius: var(--neu-radius);
  background: var(--color-bg);
  box-shadow: var(--neu-shadow-in);
  padding: 16px;
  display: grid;
  place-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--neu-shadow-in), 0 8px 20px rgba(0, 0, 0, 0.08);
}

.qr-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Contact Info Strip */
.contact-info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.contact-info-item i {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-info-item strong {
  display: block;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  margin-bottom: 2px;
}

.contact-info-item span {
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
}

/* Col 1: icon vertically centered, whole block is a link */
.contact-info-center {
  align-items: center;
}

.contact-info-link {
  text-decoration: none;
  color: inherit;
}

.contact-info-link:hover strong {
  text-decoration: underline;
}

/* Col 3: right-aligned, icon on the right */
.contact-info-right {
  justify-content: flex-end;
  text-align: right;
  align-items: center;
}

.contact-info-right .contact-info-text {
  order: -1;
}

/* Col 2: Newsletter */
.contact-info-newsletter {
  align-items: center;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  width: 100%;
  align-items: stretch;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: none;
  border-radius: var(--neu-radius-sm);
  background: var(--color-bg);
  font-size: var(--fs-body-sm);
  font-family: inherit;
  outline: none;
  box-shadow: var(--neu-shadow-in-sm);
  transition: box-shadow var(--transition-base);
}

.newsletter-form input[type="email"]:focus {
  box-shadow: var(--neu-shadow-in);
}

.newsletter-form .btn {
  flex-shrink: 0;
  padding: 12px 18px;
  font-size: var(--fs-body-sm);
}

.newsletter-form .form-status {
  flex-basis: 100%;
  font-size: var(--fs-caption);
}

/* --------------------------------------------------------------------------
   17. CLOSING CTA
   -------------------------------------------------------------------------- */

.cta-closing {
  position: relative;
  overflow: hidden;
}

.cta-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.cta-clock {
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  font-variant-numeric: tabular-nums;
}

.cta-headline {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: var(--ls-tight);
  max-width: 780px;
  margin: 0 auto var(--space-6);
}

/* Cards Fan */
.cards-wrap {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
}

.fan-card {
  position: absolute;
  left: 50%;
  margin-left: -59px;
  width: 118px;
  height: 118px;
  border-radius: var(--neu-radius-sm);
  background: var(--color-bg);
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.28), 0 4px 10px -4px rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  transform: translateX(var(--tx)) rotate(var(--rot));
  transition: transform 0.35s ease;
  will-change: transform;
}

.fan-card:hover {
  transform: translateX(var(--tx)) rotate(var(--rot)) translateY(-12px);
}

.fan-card img {
  width: 52px;
  height: 52px;
  pointer-events: none;
}

/* Skill tooltip on hover */
.fan-card::after {
  content: attr(data-skill);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0a0a0a;
  color: #fff;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 20;
}

.fan-card:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cta-description {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  max-width: 460px;
  margin: 0 auto var(--space-6);
  line-height: var(--lh-body);
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.btn-pill {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-pill:hover {
  background: #1f1f1f;
  transform: translateY(-2px);
}

.btn-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  text-decoration: none;
  transition: opacity var(--transition-base);
}

.btn-text-link svg {
  width: 14px;
  height: 14px;
}

.btn-text-link:hover {
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   18. FOOTER
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: var(--space-8);
}

.footer-wordmark-wrapper {
  overflow: hidden;
  padding: 0 48px;
  margin-bottom: -11px;
}

.footer-wordmark {
  font-size: clamp(80px, 16vw, 220px);
  font-weight: var(--fw-black);
  line-height: 0.9;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-shadow:
    2px -2px 0 #e5e5e5,
    3px -3px 0 #e0e0e0,
    4px -4px 0 #d8d8d8,
    5px -5px 0 #d0d0d0,
    6px -6px 0 #c8c8c8,
    7px -7px 0 #c0c0c0,
    8px -8px 0 #b8b8b8,
    9px -9px 0 #adadad,
    10px -10px 0 #a0a0a0;
}

.footer-dark {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: var(--space-8) 0 var(--space-5);
  box-shadow:
    2px -2px 0 #e5e5e5,
    3px -3px 0 #e0e0e0,
    4px -4px 0 #d8d8d8,
    5px -5px 0 #d0d0d0,
    6px -6px 0 #c8c8c8,
    7px -7px 0 #c0c0c0,
    8px -8px 0 #b8b8b8,
    9px -9px 0 #adadad,
    10px -10px 0 #a0a0a0;
}

.footer-dark-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
}

.footer-col h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-5);
}

.footer-col h4 {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-footer-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--space-5);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: var(--fs-body);
  color: var(--color-footer-muted);
  transition: color var(--transition-base);
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-social {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-footer-muted);
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--color-white);
  color: var(--color-text);
  border-color: var(--color-white);
}

/* Visitor Widget */
.visitor-widget {
  background: #000000;
  border-radius: var(--neu-radius);
  padding: 16px;
  margin-top: var(--space-4);
  box-shadow: var(--neu-dark-out);
}

.visitor-widget-top {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.visitor-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-live-green);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.visitor-live-label {
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  color: var(--color-white);
}

.visitor-count-text {
  font-size: var(--fs-caption);
  color: var(--color-footer-muted);
  margin-left: auto;
}

.visitor-widget-chart {
  width: 100%;
  height: 120px;
  margin-bottom: var(--space-4);
  position: relative;
}

.visitor-widget-chart canvas {
  width: 100% !important;
  height: 100% !important;
}

.visitor-widget-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.visitor-widget-bottom span {
  font-size: var(--fs-caption);
  color: var(--color-footer-muted);
}

.visitor-badge {
  background: #333;
  color: var(--color-white);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: var(--fw-semibold);
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border-dark);
  font-size: var(--fs-body-sm);
  color: var(--color-footer-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-3);
}

.footer-legal a {
  color: var(--color-footer-muted);
  transition: color var(--transition-base);
}

.footer-legal a:hover {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   20. SCROLL REVEAL
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   21. EDUCATION TIMELINE
   -------------------------------------------------------------------------- */

.education {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 60px 50px;
  overflow: hidden;
}

.education::before {
  content: "EDU";
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 120px;
  font-weight: 800;
  color: var(--color-bg-soft);
  z-index: 0;
  letter-spacing: -2px;
}

.education-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--color-text-muted);
  font-size: var(--fs-body-sm);
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.education-eyebrow-line {
  width: 34px;
  height: 1px;
  background: var(--color-border);
}

.education-title {
  text-align: center;
  font-size: clamp(36px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 70px;
  position: relative;
  z-index: 1;
}

.education-diagram {
  position: relative;
  height: 380px;
  margin-bottom: 40px;
}

.education-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.education-wave path {
  fill: none;
  stroke: var(--color-border-dark);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: edu-draw-line 1.8s cubic-bezier(0.65, 0.05, 0.36, 1) 0.2s forwards;
}

@keyframes edu-draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

.education-ghost-num {
  position: absolute;
  font-size: 110px;
  font-weight: 800;
  color: var(--color-bg-soft);
  z-index: 0;
  line-height: 1;
  user-select: none;
}

.education-ghost-num-1 {
  left: 4%;
  top: 8%;
}

.education-ghost-num-2 {
  left: 32%;
  top: 36%;
}

.education-ghost-num-3 {
  left: 58%;
  top: 8%;
}

.education-ghost-num-4 {
  left: 84%;
  top: 42%;
}

.education-step {
  position: absolute;
  width: 240px;
  z-index: 2;
  opacity: 0;
  transform: translateY(14px);
  animation: edu-step-in 0.6s ease forwards;
}

.education-step h3 {
  font-size: var(--fs-h4);
  font-weight: 700;
  margin-bottom: 2px;
}

.education-step-location {
  display: block;
  font-size: var(--fs-caption);
  color: var(--color-text-faint);
  margin-bottom: 8px;
}

.education-step p {
  font-size: var(--fs-body-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
}

@keyframes edu-step-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.education-step-1 {
  left: 2%;
  top: 24%;
  text-align: left;
  animation-delay: 0.35s;
}

.education-step-2 {
  left: 28%;
  top: 68%;
  text-align: left;
  animation-delay: 1.0s;
}

.education-step-3 {
  left: 56%;
  top: 15%;
  text-align: left;
  animation-delay: 1.6s;
}

.education-step-4 {
  left: 78%;
  top: 62%;
  text-align: left;
  animation-delay: 2.2s;
}

/* Portfolio chatbot */
.chatbot {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1001;
}

.chatbot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 17px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.chatbot-toggle:hover,
.chatbot-toggle:focus-visible {
  background: #292929;
}

.chatbot-toggle svg {
  width: 18px;
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: min(380px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 100px));
  max-height: min(640px, calc(100dvh - 100px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .2);
}

.chatbot-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--color-border);
  background: #111;
  color: #fff;
}

.chatbot-header strong {
  display: block;
  font-size: 15px;
}

.chatbot-header p {
  margin: 2px 0 0;
  color: #c7c7c7;
  font-size: 12px;
}

.chatbot-header button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.chatbot-header svg {
  width: 18px;
}

.chatbot-messages {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  max-height: 370px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #bdbdbd transparent;
  padding: 16px;
  background: #fafafa;
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border-radius: 999px;
}

.chatbot-message {
  max-width: 88%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.chatbot-message--assistant {
  align-self: flex-start;
  background: #eaeaea;
  color: #161616;
}

.chatbot-message--visitor {
  align-self: flex-end;
  background: #111;
  color: #fff;
}

.chatbot-message.is-pending {
  opacity: .65;
  font-style: italic;
}

.chatbot-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--color-border);
  background: #fff;
}

.chatbot-form textarea {
  flex: 1;
  min-height: 22px;
  max-height: 100px;
  resize: vertical;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 13px;
}

.chatbot-form button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  cursor: pointer;
}

.chatbot-form button svg {
  width: 15px;
}

.chatbot-panel.t-panel-slide {
  transform: translateY(var(--panel-translate-y));
  opacity: 0;
  filter: blur(var(--panel-blur));
  pointer-events: none;
  transition: transform var(--panel-close-dur) var(--panel-ease), opacity var(--panel-close-dur) var(--panel-ease), filter var(--panel-close-dur) var(--panel-ease);
  will-change: transform, opacity, filter;
}

.chatbot-panel.t-panel-slide[data-open="true"] {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
  transition-duration: var(--panel-open-dur);
}

.chatbot-thinking {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 16px;
}

.chatbot-thinking-label {
  display: inline-block;
  margin-right: 8px;
}

.chatbot-thinking i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .35;
  animation: chatbot-dot 1.1s ease-in-out infinite;
}

.chatbot-thinking i:nth-child(2) {
  animation-delay: 150ms;
}

.chatbot-thinking i:nth-child(3) {
  animation-delay: 300ms;
}

@keyframes chatbot-dot {

  0%,
  60%,
  100% {
    opacity: .3;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.chatbot-rich {
  white-space: normal;
}

.chatbot-rich p {
  margin: 0 0 10px;
}

.chatbot-rich p:last-child {
  margin-bottom: 0;
}

.chatbot-rich strong {
  font-weight: 800;
}

.chatbot-rich em {
  font-style: italic;
}

.chatbot-list {
  margin: 0 0 10px;
  padding-left: 18px;
  list-style: disc;
}

.chatbot-list:last-child {
  margin-bottom: 0;
}

.chatbot-list li {
  margin: 4px 0;
}

.chatbot-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(5px);
  animation: chatbot-word-in 280ms var(--panel-ease) forwards;
  animation-delay: var(--word-delay);
}

@keyframes chatbot-word-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .chatbot-panel.t-panel-slide,
  .chatbot-panel.t-panel-slide[data-open="true"] {
    transition: none !important;
    transform: none;
    filter: none;
  }

  .chatbot-thinking i,
  .chatbot-word {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

.service-other-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg-soft);
  font-size: var(--fs-body-sm);
  outline: none;
}

.service-other-input:focus {
  border-color: var(--color-text);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .08);
}

.form-status.success {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: contact-success-in 420ms cubic-bezier(.22, 1, .36, 1) both;
}

.form-status.success::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 800;
  animation: contact-success-check 500ms cubic-bezier(.34, 1.56, .64, 1) 80ms both;
}

@keyframes contact-success-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes contact-success-check {
  from {
    opacity: 0;
    transform: rotate(-18deg) scale(.5);
  }

  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {

  .form-status.success,
  .form-status.success::before {
    animation: none;
  }
}
