/* =====================================================
            TOKENS
===================================================== */
:root {
  --bg: #f5f7fb;
  --bg-elevated: #ffffff;
  --bg-elevated-soft: rgba(248, 250, 252, 0.96);
  --text: #0f172a;
  --muted: #4b5563;
  --muted-soft: #7a879e;
  --accent: #2563ff;
  --accent-2: #7c3aed;
  --accent-soft: rgba(37, 99, 255, 0.08);
  --border: #e5e7eb;
  --border-strong: rgba(148, 163, 184, 0.6);
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-soft: 0 20px 55px rgba(15, 23, 42, 0.08);
  --max-width: 1120px;

  --grad-1: #2563ff;
  --grad-2: #7c3aed;
  --grad-3: #ec4899;

  --transition-theme: background 0.4s ease, color 0.4s ease,
    border-color 0.4s ease, box-shadow 0.4s ease;
}

[data-theme="dark"] {
  --bg: #0a0e1a;
  --bg-elevated: #12172a;
  --bg-elevated-soft: rgba(18, 23, 42, 0.92);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --muted-soft: #64748b;
  --accent: #6d8bff;
  --accent-2: #a78bfa;
  --accent-soft: rgba(109, 139, 255, 0.14);
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(148, 163, 184, 0.3);
  --shadow-soft: 0 20px 55px rgba(0, 0, 0, 0.45);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Highly visible keyboard focus indicators (Task 5) */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Skip to Content Link (Task 5) */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  z-index: 10000;
  transition: top 0.2s ease;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.skip-to-content:focus-visible,
.skip-to-content:focus {
  top: 16px;
}

/* =====================================================
               STUDIO PRELOADER
===================================================== */
#preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease,
    transform 0.5s ease;
  pointer-events: auto;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.03);
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 280px;
  max-width: 90vw;
  text-align: center;
}

.preloader-brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.preloader-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: preloaderPulse 1.2s infinite ease-in-out;
}

@keyframes preloaderPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.4);
    opacity: 1;
    box-shadow: 0 0 20px var(--accent);
  }
}

.preloader-brand span {
  color: var(--accent);
}

.preloader-bar {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.preloader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--grad-1),
    var(--grad-2),
    var(--grad-3)
  );
  border-radius: 999px;
  transition: width 0.12s ease-out;
}

.preloader-status {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* =====================================================
          NATIVE SCROLLBAR STYLING
===================================================== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 8px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

html {
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", sans-serif;
  background: radial-gradient(
      circle at top left,
      rgba(37, 99, 255, 0.10),
      transparent 40%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(124, 58, 237, 0.08),
      transparent 45%
    ),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: var(--transition-theme);
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

@media (hover: none), (pointer: coarse) {
  body {
    cursor: auto;
  }

  #cursor,
  #cursor-dot {
    display: none !important;
  }
}

.project-desc,
.service-desc,
.editorial-excerpt,
.tier-features li {
  font-size: 14px;
}

.project-label,
.service-meta,
.section-label,
.hero-eyebrow,
.hero-tag,
.badge,
.editorial-date {
  font-size: 12.5px;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 16px 0;
  position: relative;
}

/* =====================================================
              CUSTOM CURSOR
===================================================== */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease,
    background 0.2s ease;
}

/* =====================================================
        PREMIUM GHOST TRAIL
===================================================== */
.cursor-trail-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 99999;
  will-change: left, top;
}

#cursor.cursor-video {
  mix-blend-mode: difference;
  background: #fff;
  border-color: transparent;
}

#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
}

#cursor.cursor-hover {
  width: 52px;
  height: 52px;
  background: var(--accent-soft);
  border-color: transparent;
}

/* =====================================================
                  SCROLL PROGRESS
===================================================== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--grad-1),
    var(--grad-2),
    var(--grad-3)
  );
  z-index: 200;
  transition: width 0.05s linear;
}

/* =====================================================
                MOUSE SPOTLIGHT
===================================================== */
#mouse-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 255, 0.15), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 99997;
  opacity: 0;
  transition: opacity 0.3s ease;
}

[data-theme="dark"] #mouse-spotlight {
  background: radial-gradient(
    circle,
    rgba(109, 139, 255, 0.16),
    transparent 70%
  );
}

#mouse-spotlight.active {
  opacity: 1;
}

/* =====================================================
              HERO BACKGROUND CANVAS
===================================================== */
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 720px;
  z-index: -2;
  opacity: 0.55;
  pointer-events: none;
}

/* =====================================================
            PAGE TRANSITION LAYER
===================================================== */
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--accent);
  z-index: 500;
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
}

/* =====================================================
                    NAV
===================================================== */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 999px;
  background: var(--bg-elevated-soft);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease,
    padding 0.25s ease, var(--transition-theme);
  max-width: 100%;
}

.nav.scrolled {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  background: var(--bg-elevated-soft);
  transform: translateY(-2px);
  padding: 9px 14px;
}

.logo {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
  flex-shrink: 0;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active-link::after {
  width: 100%;
}

.nav-links a.active-link {
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition-theme), transform 0.3s ease,
    background-color 0.3s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  transform: rotate(15deg) scale(1.05);
  background: var(--bg-elevated-soft);
  border-color: var(--accent-soft);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.nav-cta {
  display: inline-flex;
}

/* =====================================================
                    HERO
===================================================== */
#heroRight::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 480px;
  height: 480px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(37, 99, 255, 0.18) 0%,
    rgba(124, 58, 237, 0.10) 50%,
    transparent 75%
  );
  border-radius: 50%;
  filter: blur(25px);
  z-index: -1;
  pointer-events: none;
}

[data-theme="dark"] #heroRight::before {
  background: radial-gradient(
    circle,
    rgba(109, 139, 255, 0.20) 0%,
    rgba(167, 139, 250, 0.12) 50%,
    transparent 75%
  );
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 56px 0 64px;
  position: relative;
  min-height: 560px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 10px;
  opacity: 0;
}

.hero-title {
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 16px;
  opacity: 0;
}

.hero-highlight {
  background: linear-gradient(120deg, var(--grad-1), var(--grad-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 22px;
  opacity: 0;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  opacity: 0;
}

.badge {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-theme);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
}

.btn-primary {
  padding: 11px 22px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--grad-1), #1d4ed8);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 20px 45px rgba(37, 99, 255, 0.35);
  transition: box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  transition: var(--transition-theme);
}

.btn-ghost span {
  font-size: 16px;
}

.magnetic-btn {
  transition: transform 0.25s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

/* ---------- Hero Right ---------- */
.hero-right {
  position: relative;
  justify-self: center;
  width: 320px;
  height: 380px;
}

.tech-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
  color: var(--text);
  z-index: 3;
  opacity: 0;
  white-space: nowrap;
  transition: var(--transition-theme);
}

.tfi {
  font-size: 13px;
}

.tf-figma {
  top: 8%;
  left: -22%;
}
.tf-react {
  top: 18%;
  right: -20%;
}
.tf-photoshop {
  top: 46%;
  left: -26%;
}
.tf-ai {
  top: 56%;
  right: -22%;
}
.tf-webgl {
  bottom: 12%;
  left: -15%;
}
.tf-video {
  bottom: 6%;
  right: -8%;
}

.hero-avatar-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 248px;
  height: 248px;
  border-radius: 28px;
  background: radial-gradient(
      circle at 10% 10%,
      var(--accent-soft),
      transparent 60%
    ),
    var(--bg-elevated);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border: 1px solid var(--border);
  transition: var(--transition-theme);
}

.hero-avatar-inner {
  width: 88%;
  height: 88%;
  border-radius: 22px;
  overflow: hidden;
}

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.hero-tag {
  position: absolute;
  left: 4%;
  bottom: 2%;
  background: var(--bg-elevated);
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 7px 10px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
  max-width: 220px;
  z-index: 4;
  opacity: 0;
  transition: var(--transition-theme);
}

.hero-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

/* =====================================================
                    GENERIC SECTION
==================================================== */
section {
  padding: 28px 0;
  position: relative;
}

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--border-strong);
}

.section-heading {
  font-size: clamp(20px, 2.5vw, 24px);
  margin-bottom: 8px;
}

.section-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 540px;
}

/* =====================================================
                  TRUSTED BY
===================================================== */
.trusted {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-elevated);
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
  transition: var(--transition-theme);
}

.trusted-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}

.trusted-pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: var(--transition-theme);
}

/* =====================================================
              SERVICES
===================================================== */
.grid-3 {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, var(--transition-theme);
  min-height: 230px;
}

.service-card-front {
  padding: 18px 18px 20px;
  position: relative;
  z-index: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.service-card-reveal {
  position: absolute;
  inset: 0;
  padding: 18px;
  background: linear-gradient(160deg, var(--accent), var(--accent-2));
  color: #ffffff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
}

.service-card:hover .service-card-front {
  opacity: 0;
  transform: translateY(-6px);
}

.service-card:hover .service-card-reveal {
  opacity: 1;
  transform: translateY(0);
}

.srv-reveal-row h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-bottom: 3px;
}

.srv-reveal-row p {
  font-size: 12.5px;
  line-height: 1.5;
}

.srv-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.srv-tech-pills span {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.service-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 18px;
}

.service-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.service-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.service-meta {
  font-size: 11px;
  color: var(--muted-soft);
}

.service-hover-hint {
  position: absolute;
  left: 18px;
  bottom: 0;
  font-size: 11px;
  color: var(--accent);
}

/* =====================================================
                    PORTFOLIO
===================================================== */
.portfolio-filters {
  display: inline-flex;
  padding: 4px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-elevated-soft);
  gap: 4px;
  margin-bottom: 24px;
  font-size: 12px;
  max-width: 100%;
  flex-wrap: wrap;
  overflow: visible;
}

.filter-pill {
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.filter-pill.active {
  background: var(--bg-elevated);
  color: var(--accent);
  box-shadow: 0 9px 22px rgba(15, 23, 42, 0.08);
}

.chevron {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.filter-group:hover .chevron,
.filter-group.open .chevron,
.filter-group:focus-within .chevron {
  transform: rotate(180deg);
}

/* --- DROPDOWN STYLES --- */
.filter-group {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;

  /* Smooth Hover/State Reveal */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 100;
}

/* Show dropdown model (Task 2 accessibility triggers) */
.filter-group:hover .dropdown-menu,
.filter-group.open .dropdown-menu,
.filter-group:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-theme);
  white-space: nowrap;
}

.dropdown-item:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.dropdown-item.active {
  background: var(--accent);
  color: #fff;
}

/* --- RESPONSIVE PORTFOLIO FILTERS ACCORDION (Task 2 UI/UX) --- */
@media (max-width: 900px) {
  .portfolio-filters {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 8px;
    border-radius: 16px;
    background: var(--bg-elevated-soft);
    border: 1px solid var(--border);
    gap: 8px;
    max-width: 100%;
    margin-bottom: 24px;
    align-items: stretch;
  }

  .portfolio-filters > .filter-pill[data-filter="all"] {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 12px 18px;
    font-size: 13.5px;
    border-radius: 12px;
    font-weight: 500;
  }

  .filter-group {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .filter-group .filter-pill {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    font-size: 13.5px;
    border-radius: 12px;
    font-weight: 500;
  }

  .dropdown-menu {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    min-width: unset;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    padding: 0 10px;
    margin-top: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    transform: translateY(-8px);
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
    gap: 6px;
  }

  .filter-group.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 350px; /* enough to contain items */
    padding: 10px;
    margin-top: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: 12px;
    transform: translateY(0);
  }

  .dropdown-item {
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
  }
}

.grid-3-portfolio {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 12px 12px 16px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-theme);
  transform-style: preserve-3d;
  will-change: transform;
}

.project-thumb {
  border-radius: 14px;
  height: 150px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb:not(.project-thumb--video) {
  background: linear-gradient(
    145deg,
    var(--bg-elevated-soft),
    var(--accent-soft)
  );
}
.project-thumb--video {
  background: linear-gradient(145deg, #1f2540, #11142b);
}

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

.project-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-mute-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  z-index: 2;
  transition: background 0.2s ease, transform 0.15s ease;
}

.video-mute-toggle::before {
  content: "";
  position: absolute;
  inset: -8px;
}

.video-mute-toggle:hover {
  background: rgba(15, 23, 42, 0.8);
  transform: scale(1.08);
}

.project-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.project-thumb-cta {
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  transform: translateY(6px);
  transition: transform 0.25s ease;
}

.project-card:hover .project-thumb-overlay {
  opacity: 1;
}
.project-card:hover .project-thumb-cta {
  transform: translateY(0);
}
.project-card:hover {
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.12);
}

.project-label {
  font-size: 11px;
  color: var(--muted-soft);
  margin-bottom: 2px;
}
.project-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.project-desc {
  font-size: 12px;
  color: var(--muted);
  padding-right: 4px;
}

.portfolio-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* =====================================================
   SHARED MODAL BASE
===================================================== */
.modal-backdrop {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 11, 22, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start !important;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

#scheduleModal {
  position: fixed !important;
  align-items: center !important;
}

.modal-inner {
  width: 100%;
  max-width: 920px;
  background: var(--bg-elevated-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease, var(--transition-theme);
  margin: 0 auto;
  overscroll-behavior: contain;
}

.modal-backdrop.open .modal-inner {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  z-index: 5;
  transition: var(--transition-theme), transform 0.2s ease;
}

.modal-close:hover {
  transform: rotate(90deg);
}

/* ---------- Case Study Modal ---------- */
.case-modal-inner {
  max-width: 920px;
}
.case-modal-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0;
}

.case-modal-left {
  padding: 36px 32px;
}
.case-modal-right {
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg));
  border-radius: 0 24px 24px 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text);
  border-left: 1px solid var(--border);
}

.case-modal-visual {
  width: 100%;
  max-height: 400px;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.modal-visual-media {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   PORTFOLIO HERO BACKGROUND
===================================================== */
#archiveHeroCanvas {
  position: relative;
}
#archiveHeroCanvas::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 480px;
  height: 480px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(37, 99, 255, 0.15) 0%,
    rgba(124, 58, 237, 0.08) 60%,
    transparent 80%
  );
  border-radius: 50%;
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

#torusCanvas {
  filter: none !important;
}

.case-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.case-modal-tags span {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-elevated-soft);
  border: 1px solid var(--border);
  color: var(--text);
}

.case-modal-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 8px;
}
.case-modal-title {
  font-size: 26px;
  margin-bottom: 8px;
}
.case-modal-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.case-modal-body {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.7;
}
.case-modal-list {
  font-size: 13px;
  color: var(--muted);
  padding-left: 18px;
}
.case-modal-list li {
  margin-bottom: 7px;
}

/* ---------- Schedule a Call modal ---------- */
.schedule-modal-inner {
  max-width: 620px;
  border-radius: 24px;
  overflow-x: hidden;
}

.schedule-modal-content {
  padding: 32px 28px;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Host Header Banner */
.schedule-host-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  flex-wrap: wrap;
}

.schedule-host-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.schedule-host-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.schedule-host-details {
  display: flex;
  flex-direction: column;
}

.schedule-host-details strong {
  font-size: 14px;
  line-height: 1.2;
}

.schedule-session-type {
  font-size: 11.5px;
  color: var(--muted);
}

.schedule-host-tags {
  display: flex;
  gap: 6px;
  align-items: center;
}

.schedule-pill-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-strong);
  white-space: nowrap;
}

.schedule-pill-tag--video {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}

.schedule-header-text {
  margin-bottom: 18px;
}

.schedule-modal-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.schedule-modal-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Progress Tracker */
.form-progress-wrap {
  margin-bottom: 18px;
}

.form-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.progress-status-label {
  color: var(--accent);
}

.progress-step-indicator {
  color: var(--muted-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10.5px;
}

.form-progress-track {
  width: 100%;
  height: 5px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.form-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--grad-1), var(--grad-2));
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2-Column Grid Layout */
.form-row-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.req-star {
  color: #ef4444;
  font-weight: 700;
  margin-left: 2px;
}

.field-icon {
  margin-right: 3px;
  font-size: 12px;
}

/* Custom Select Dropdown Wrappers */
.custom-select-wrap {
  position: relative;
  width: 100%;
}

.custom-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 32px;
  cursor: pointer;
  background: var(--bg);
}

.custom-select-wrap::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
  font-size: 12px;
  transition: transform 0.2s ease;
}

.custom-select-wrap:focus-within::after {
  transform: translateY(-50%) rotate(180deg);
  color: var(--accent);
}

/* Actions & Trust Footer */
.schedule-action-wrap {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
}

.schedule-submit-btn {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 13px 20px;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(37, 99, 255, 0.32);
}

.schedule-submit-btn .btn-arrow {
  transition: transform 0.2s ease;
}

.schedule-submit-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.schedule-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
  flex-wrap: wrap;
}

.trust-sep {
  opacity: 0.4;
}

@media (max-width: 580px) {
  .schedule-modal-content {
    padding: 24px 18px;
  }
  .form-row-2col {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .schedule-host-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =====================================================
                      ABOUT
===================================================== */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
}

.about-tag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  font-size: 12px;
}

.about-pill {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 8px 11px;
  background: var(--bg-elevated-soft);
  color: var(--text);
  transition: var(--transition-theme);
}

.about-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.about-card {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--accent-soft), var(--bg-elevated));
  padding: 22px 20px;
  box-shadow: var(--shadow-soft);
  font-size: 12px;
  display: grid;
  gap: 14px;
  transition: var(--transition-theme);
}

.about-metric {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.about-metric strong {
  font-size: 26px;
  min-width: 38px;
}
.about-card-note {
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

/* ---------- Design Process Timeline ---------- */
.process-block {
  margin-top: 8px;
}
.process-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  position: relative;
}

.process-step {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 14px;
  opacity: 0;
  transform: translateY(14px);
  transition: var(--transition-theme);
}

.process-num {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}
.process-step h4 {
  font-size: 13.5px;
  margin-bottom: 4px;
}
.process-step p {
  font-size: 11.5px;
  color: var(--muted);
}
.process-line {
  height: 3px;
  background: var(--border);
  border-radius: 999px;
  margin-top: 16px;
  overflow: hidden;
}
.process-line-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--grad-1), var(--grad-2));
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* =====================================================
                  TECH STACK
===================================================== */
.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tech-cat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.tech-pills-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tpill {
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  opacity: 0;
  transform: translateX(-10px) scale(0.95);
  transition: transform 0.2s ease, box-shadow 0.2s ease, var(--transition-theme);
}

.tpill:hover {
  transform: translateX(2px) scale(1.02);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: var(--border-strong);
}

/* =====================================================
              TESTIMONIALS
===================================================== */
.testimonials {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.testi-stack-wrap {
  position: relative;
}
.testi-shadow {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: var(--transition-theme);
}

.testi-shadow--1 {
  transform: translate(6px, 8px) scale(0.98);
  opacity: 0.6;
  z-index: 1;
}
.testi-shadow--2 {
  transform: translate(12px, 16px) scale(0.96);
  opacity: 0.35;
  z-index: 0;
}

.testi-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 20px 20px 18px;
  background: var(--bg-elevated);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
  font-size: 13px;
  position: relative;
  overflow: hidden;
  z-index: 2;
  transition: var(--transition-theme);
}

.testi-card::before {
  content: "\201C";
  position: absolute;
  font-size: 56px;
  color: var(--accent-soft);
  top: 0px;
  left: 14px;
  font-family: Georgia, serif;
}

.testi-slider {
  position: relative;
  min-height: 150px;
}
.testi-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(16px) scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.testi-slide.active {
  position: relative;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.testi-quote {
  font-size: 14.5px;
  padding-left: 18px;
  margin-bottom: 14px;
  line-height: 1.6;
}
.testi-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  gap: 10px;
  flex-wrap: wrap;
}
.testi-author-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.testi-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.testi-meta {
  font-size: 11.5px;
  color: var(--muted);
}
.testi-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  padding-left: 0;
}
.testi-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-theme), transform 0.15s ease;
}

.testi-arrow:hover {
  transform: scale(1.1);
  border-color: var(--accent);
  color: var(--accent);
}

.testi-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border-strong);
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dot::before {
  content: "";
  position: absolute;
  inset: -8px;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.3);
}
.clients-compact {
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 16px 14px;
  background: var(--bg-elevated-soft);
  font-size: 12px;
  display: grid;
  gap: 10px;
  transition: var(--transition-theme);
}

.clients-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* =====================================================
                    CONTACT
===================================================== */
.availability-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 14px 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  transition: var(--transition-theme);
}

.availability-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.22);
  flex-shrink: 0;
}

.availability-info {
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
  gap: 2px;
  flex: 1;
}

.availability-info strong {
  font-size: 13.5px;
}
.availability-info span {
  color: var(--muted);
}
.avail-cta {
  margin-left: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.info-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--text);
  transition: var(--transition-theme);
}

.info-card-label {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}

.info-card a {
  color: var(--accent);
  word-break: break-word;
}
.info-card a:hover {
  text-decoration: underline;
}
.info-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}
.info-card--badge {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-soft);
  border-color: var(--border-strong);
}

.info-card--badge .info-card-icon {
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}
.info-card--badge p {
  font-weight: 500;
  font-size: 12.5px;
}

.contact-form {
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 18px 18px 20px;
  background: var(--bg-elevated);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  transition: var(--transition-theme);
}

.field {
  margin-bottom: 12px;
  font-size: 13px;
}
.field label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border-radius: 9px;
  border: 1px solid var(--border);
  padding: 9px 10px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease;
  background: var(--bg);
  color: var(--text);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field--highlighted select {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}
.contact-meta {
  font-size: 13px;
  color: var(--muted);
  display: grid;
  gap: 12px;
}
.contact-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.contact-meta-row > span:last-child {
  flex: 1;
  min-width: 0;
  line-height: 1.5;
}
.contact-meta-row a {
  color: var(--accent);
  text-decoration: none;
}
.contact-meta-row a:hover {
  text-decoration: underline;
}

.contact-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated-soft);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
  flex-shrink: 0;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
}

/* =====================================================
                    FAQ
===================================================== */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 760px;
}
.faq-item {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  transition: var(--transition-theme);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-icon {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--accent);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p {
  padding: 0 18px 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* =====================================================
                FINAL CTA BANNER
===================================================== */
.cta-banner {
  margin: 24px 0 0;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  padding: 56px 32px;
  text-align: center;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--grad-1),
    var(--grad-2) 60%,
    var(--grad-3)
  );
  opacity: 0.95;
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 560px;
  margin: 0 auto;
}

.cta-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.85;
  margin-bottom: 10px;
}
.cta-heading {
  font-size: clamp(24px, 3.2vw, 32px);
  margin-bottom: 12px;
  line-height: 1.2;
}
.cta-sub {
  font-size: 14.5px;
  opacity: 0.92;
  margin-bottom: 24px;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn-light {
  background: #fff;
  color: var(--grad-1);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.cta-btn-light:hover {
  filter: none;
  background: #f5f7ff;
}
.cta-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* =====================================================
                  FOOTER
===================================================== */
footer {
  margin-top: 30px;
  border-top: 1px solid var(--border);
  padding: 18px 16px 24px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.social {
  display: flex;
  gap: 8px;
  font-size: 13px;
  flex-wrap: wrap;
}
.social a {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated-soft);
  white-space: nowrap;
  color: var(--text);
}

/* =====================================================
                  BACK TO TOP
===================================================== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  color: #ffffff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(37, 99, 255, 0.35);
  transform: translateY(30px) scale(0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease,
    background 0.3s ease;
  z-index: 50;
}

.back-to-top.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 18px 40px rgba(124, 58, 237, 0.45);
  background: linear-gradient(135deg, var(--grad-2), var(--grad-3));
}

/* =====================================================
        REVEAL ANIMATIONS (fallback / generic)
===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
              ENGAGEMENT MODELS
===================================================== */
.engagement-grid {
  align-items: stretch;
}
.tier-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, var(--transition-theme);
}

.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.12);
}
.tier-card--featured {
  border-color: var(--border-strong);
  box-shadow: 0 20px 48px rgba(37, 99, 255, 0.14);
  background: var(--bg-elevated);
  position: relative;
}

.tier-card--featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--accent-soft), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.tier-card--featured > * {
  position: relative;
  z-index: 1;
}
[data-theme="dark"] .tier-card--featured {
  box-shadow: 0 20px 48px rgba(109, 139, 255, 0.18);
}

.tier-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.tier-icon {
  font-size: 20px;
  line-height: 1;
}
.tier-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: 999px;
}
.tier-badge--scope {
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--muted);
}
.tier-badge--featured {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 255, 0.30);
}

.tier-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.tier-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
}
.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.tier-features li {
  font-size: 12px;
  color: var(--text);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.tier-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.tier-footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}
.tier-cta-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tier-cta {
  font-size: 12.5px;
  padding: 9px 16px;
}
.tier-card--featured .tier-cta {
  width: 100%;
  justify-content: center;
  box-shadow: 0 16px 36px rgba(37, 99, 255, 0.28);
}

/* =====================================================
         INSIGHTS & PHILOSOPHY
===================================================== */
.philosophy-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.philosophy-quote {
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.7;
  font-style: italic;
  color: var(--text);
  margin: 0;
  padding-right: 24px;
  border-right: 2px solid var(--accent);
  quotes: none;
}

.philosophy-quote em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}
.philosophy-body p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
}
.philosophy-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.pillar-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--accent-soft);
  color: var(--accent);
  letter-spacing: 0.03em;
  transition: var(--transition-theme);
}

.insights-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.insights-all-link {
  font-size: 12px;
  color: var(--accent);
  transition: opacity 0.2s ease;
}
.insights-all-link:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.editorial-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    var(--transition-theme);
}

.editorial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--grad-1), var(--grad-2));
  transition: width 0.35s ease;
}

.editorial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
}
.editorial-card:hover::before {
  width: 100%;
}

.editorial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.editorial-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
}

.editorial-date {
  font-size: 11px;
  color: var(--muted-soft);
}
.editorial-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text);
}
.editorial-excerpt {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}
.editorial-read-link {
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 500;
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease, opacity 0.2s ease;
}

.editorial-read-link:hover {
  opacity: 0.75;
  gap: 8px;
}

/* =====================================================
                MOBILE NAVIGATION (Task 1 CSS)
===================================================== */
.menu-toggle {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition-theme), transform 0.2s ease,
    background-color 0.2s ease;
  z-index: 45;
  padding: 0;
  position: relative;
}

.menu-toggle:hover {
  background: var(--bg-elevated-soft);
  border-color: var(--accent-soft);
  transform: scale(1.05);
}

.menu-toggle:active {
  transform: scale(0.95);
}

.hamburger-box {
  width: 18px;
  height: 12px;
  display: inline-block;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 18px;
  height: 2px;
  background-color: var(--text);
  position: absolute;
  left: 0;
  border-radius: 999px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.25s ease, opacity 0.2s ease;
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before {
  content: "";
  top: -5px;
  left: 0;
}

.hamburger-inner::after {
  content: "";
  bottom: -5px;
  left: 0;
}

/* Morphing animation into X when expanded */
.menu-toggle[aria-expanded="true"] .hamburger-inner {
  background-color: transparent !important;
}

.menu-toggle[aria-expanded="true"] .hamburger-inner::before {
  transform: rotate(45deg) translate(3px, 4px);
}

.menu-toggle[aria-expanded="true"] .hamburger-inner::after {
  transform: rotate(-45deg) translate(3px, -4px);
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 22, 0.4);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Drawer Container */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--bg-elevated-soft);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border);
  z-index: 100;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
}

.drawer-logo {
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-logo span {
  color: var(--accent);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 12px;
}

.drawer-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.drawer-links a:hover {
  color: var(--text);
}

/* =====================================================
                REDUCED MOTION
===================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  body {
    cursor: auto;
  }

  #cursor,
  #cursor-dot,
  #mouse-spotlight,
  #hero-canvas,
  #torusCanvas {
    display: none !important;
  }
}

/* =====================================================
                RESPONSIVE BREAKPOINTS
===================================================== */
@media (max-width: 1024px) {
  .grid-3,
  .grid-3-portfolio {
    gap: 14px;
  }

  .process-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tech-stack-grid {
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
    gap: 28px;
    padding-top: 32px;
  }

  .hero-right {
    order: -1;
    justify-self: center;
    width: 280px;
    height: 320px;
  }

  .grid-3,
  .grid-3-portfolio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .philosophy-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .philosophy-quote {
    padding-right: 0;
    border-right: none;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--accent);
  }

  .about,
  .testimonials,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .trusted {
    flex-direction: column;
    align-items: flex-start;
  }

  .case-modal-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-modal-right {
    border-radius: 0 0 24px 24px;
  }

  .nav {
    border-radius: 16px;
  }

  .process-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tech-stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tf-figma {
    left: -5%;
  }
  .tf-react {
    right: -5%;
  }
  .tf-photoshop {
    left: -8%;
  }
  .tf-ai {
    right: -8%;
  }
  .tf-webgl {
    left: 0%;
    bottom: 15%;
  }
  .tf-video {
    right: 0%;
    bottom: 8%;
  }
}

@media (max-width: 768px) {
  .field input,
  .field select,
  .field textarea {
    font-size: 16px !important;
  }
}

@media (max-width: 640px) {
  .project-desc,
  .service-desc,
  .editorial-excerpt {
    font-size: 13.5px;
  }

  .page {
    padding-inline: 14px;
  }

  .nav {
    padding-inline: 10px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-right {
    width: 240px;
    height: 280px;
  }

  .hero-avatar-wrapper {
    width: 200px;
    height: 200px;
  }

  .hero-tag {
    font-size: 10px;
    max-width: 190px;
  }

  .grid-3,
  .grid-3-portfolio {
    grid-template-columns: minmax(0, 1fr);
  }

  .editorial-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tier-cta-group {
    flex-direction: column;
  }

  .tier-cta {
    width: 100%;
    justify-content: center;
  }

  .about-tag-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-info-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-thumb {
    height: 120px;
  }

  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tech-stack-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .availability-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .avail-cta {
    margin-left: 0;
    width: 100%;
  }

  .tf-figma,
  .tf-react,
  .tf-photoshop,
  .tf-ai,
  .tf-webgl,
  .tf-video {
    display: none;
  }
}

@media (max-width: 400px) {
  .logo {
    font-size: 15px;
  }

  .hero-avatar-wrapper {
    width: 180px;
    height: 180px;
  }
}

/* =====================================================
   PORTFOLIO PAGE SPECIFICS
===================================================== */
.portfolio-hero {
  min-height: 65vh;
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.portfolio-hero-content {
  max-width: 720px;
}

.portfolio-hero-title {
  font-size: clamp(30px, 5vw, 52px);
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 16px;
  background: none;
  -webkit-text-fill-color: unset;
}

.webgl-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border-strong);
  border-radius: 24px;
  opacity: 0.6;
  transition: var(--transition-theme);
}

.webgl-placeholder span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.network-card-desc {
  margin-bottom: 12px;
  flex: 1;
}

.network-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: inline-block;
}

#network .info-card {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
  min-height: 220px;
}

#network .editorial-tag {
  align-self: flex-start;
  margin-top: auto;
}

.archive-faq-section {
  margin-top: 40px;
}

.portfolio-hero {
  min-height: 65vh;
}

@media (max-width: 640px) {
  .levels-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =====================================================
   LOAD MORE BLURRED OVERLAY
===================================================== */
#loadMoreContainer {
  position: relative;
  margin-top: 40px;
  padding-bottom: 24px;
  display: flex;
  justify-content: center;
  z-index: 10;
}

#loadMoreContainer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 85%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 75%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 75%);
  z-index: -1;
}

#loadMoreBtn {
  pointer-events: auto;
  position: relative;
}

@media (max-width: 900px) {
  .portfolio-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .webgl-placeholder {
    min-height: 280px;
  }
}

.portfolio-logo-link {
  text-decoration: none;
  color: inherit;
}

.levels-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 640px) {
  .levels-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =====================================================
   FORM VALIDATION STYLES
===================================================== */
.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-select-wrap.input-error select {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.field-error-msg {
  display: none;
  color: #ef4444;
  font-size: 11.5px;
  font-weight: 500;
  margin-top: 5px;
  line-height: 1.35;
  text-align: left;
}

.form-error-message {
  display: none;
  color: #ef4444;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  text-align: left;
}

/* Ensure form containers never overflow horizontally */
.schedule-form,
.contact-form,
.modal-inner {
  max-width: 100%;
  box-sizing: border-box;
}
