/* ============================================
   BLAZE WEB CREATIONS — PREMIUM DESIGN SYSTEM
   Aesthetic: Refined, Spacious, Luxury Agency
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --black: #000000;
  --black-soft: #050505;
  --charcoal: #111111;
  --dark: #1a1a1a;
  --gray-900: #050505;
  --gray-800: #0a0a0a;
  --gray-700: #111111;
  --gray-500: #222222;
  --gray-400: #111111;
  --gray-300: #1a1a1a;
  --gray-200: #cccccc;
  --gray-100: #eaeae5;
  --off-white: #f5f5f0;
  --white: #ffffff;
  --pure-white: #ffffff;

  /* Brand accent — used sparingly */
  --accent: #c8102e;
  --accent-soft: #d4293f;
  --accent-muted: rgba(200, 16, 46, 0.12);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;
  --space-3xl: 160px;

  --container: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration: 0.6s;
  --duration-fast: 0.3s;

  /* Light Theme Values (Default & Permanent) */
  --bg: #f5f5f0;
  --bg-soft: #eaeae5;
  --bg-card: #ffffff;
  --fg: #000000;
  --fg-muted: #111111;
  --fg-dim: #222222;
  --border: #d5d5d0;
  --border-soft: #e0e0db;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  cursor: none;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg-muted, var(--gray-300));
  background: var(--bg, var(--black));
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--pure-white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-fast) ease;
}

ul,
ol {
  list-style: none;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--fg, var(--white));
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

h4 {
  font-size: 1.125rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.section-intro {
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--gray-400);
  line-height: 1.8;
  margin-top: var(--space-md);
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--gray-800);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 0;
  transition: all var(--duration) var(--ease-out);
  position: relative;
}

.btn--primary {
  background: var(--accent);
  color: var(--pure-white);
}

.btn--primary:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--fg);
  color: var(--fg);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
}

.btn--ghost::after {
  content: '→';
  transition: transform var(--duration-fast) ease;
}

.btn--ghost:hover::after {
  transform: translateX(4px);
}

.btn--ghost:hover {
  color: var(--accent);
}

/* ---------- Header ---------- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 var(--space-lg);
  transition: all var(--duration) var(--ease-out);
}

#site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-lg);
  right: var(--space-lg);
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

#site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.header-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 10;
}

.logo img {
  height: 54px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  gap: 1px;
}

.logo-text .brand-main {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
}

.logo-text .brand-sub {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gray-400);
  transition: color var(--duration-fast) ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--fg);
}

.nav-link i {
  font-size: 0.55rem;
  transition: transform var(--duration-fast) ease;
}

.nav-item:hover .nav-link i {
  transform: rotate(180deg);
}

/* Dropdown */
.sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -20px;
  min-width: 260px;
  background: var(--charcoal);
  border: 1px solid var(--gray-800);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--duration-fast) var(--ease-out);
  z-index: 100;
}

.nav-item:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  font-size: 0.82rem;
  color: var(--gray-400);
  transition: all var(--duration-fast) ease;
}

.sub-menu a i {
  font-size: 0.8rem;
  color: var(--gray-500);
  width: 18px;
  text-align: center;
  transition: color var(--duration-fast) ease;
}

.sub-menu a:hover {
  color: var(--fg);
  padding-left: 22px;
}

.sub-menu a:hover i {
  color: var(--accent);
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-cta .btn--outline {
  padding: 10px 28px;
  font-size: 0.72rem;
}

/* Hamburger */
.hamburger {
  display: none;
  width: 24px;
  height: 18px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 10;
}

.hamburger span {
  width: 100%;
  height: 1px;
  background: var(--fg);
  transition: all var(--duration-fast) ease;
  transform-origin: center;
}

.hamburger.active span:first-child {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:last-child {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ---------- Overlay Menu ---------- */
.overlay-menu {
  position: fixed;
  inset: 0;
  background: rgba(245, 245, 240, 0.85);
  /* Semi-transparent light bg */
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.overlay-menu.active {
  opacity: 1;
  visibility: visible;
}

.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--space-lg);
  height: 90px;
  /* Match desktop header height */
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .overlay-header {
    height: 72px;
    /* Match mobile header height */
  }
}

/* Close icon — shared base */
.overlay-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: rgba(10, 10, 10, 0.6);
  /* light black */
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), color var(--duration-fast) ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-close:hover {
  color: var(--accent);
}

.overlay-search-btn:hover {
  color: var(--accent) !important;
}

/* Search overlay close — absolute positioned */
.search-overlay .overlay-close {
  position: absolute;
  top: 32px;
  right: 48px;
  color: #050505;
}

@media (max-width: 768px) {
  .search-overlay .overlay-close {
    top: 14px;
    /* Align with header items */
    right: var(--space-lg);
  }
}

/* Menu overlay close & Search overlay close — rotation on open */
.overlay-menu.active .overlay-close,
.search-overlay.active .overlay-close {
  transform: rotate(90deg);
}

.overlay-center-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 200 5vw 10vh;
}

.overlay-weichie-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2vh;
  margin-bottom: 6vh;
}

/* Base style for nav links */
.weichie-nav-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: rgba(10, 10, 10, 0.6);
  /* light black resting */
  text-decoration: none;
  font-weight: 500;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s var(--ease-out), color 0.3s ease;
  cursor: pointer;
}

/* Staggered animation classes triggered on open */
.overlay-menu.active .weichie-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.overlay-menu.active>.overlay-center-wrap>.overlay-weichie-nav>.weichie-nav-link:nth-child(1) {
  transition-delay: 0.1s;
}

.overlay-menu.active>.overlay-center-wrap>.overlay-weichie-nav>.weichie-nav-link:nth-child(2) {
  transition-delay: 0.15s;
}

.overlay-menu.active>.overlay-center-wrap>.overlay-weichie-nav>.weichie-nav-has-sub {
  transition-delay: 0.2s;
}

.overlay-menu.active>.overlay-center-wrap>.overlay-weichie-nav>.weichie-nav-link:nth-child(4) {
  transition-delay: 0.25s;
}

.overlay-menu.active>.overlay-center-wrap>.overlay-weichie-nav>.weichie-nav-link:nth-child(5) {
  transition-delay: 0.3s;
}

.overlay-menu.active>.overlay-center-wrap>.overlay-weichie-nav>.weichie-nav-link:nth-child(6) {
  transition-delay: 0.35s;
}

.overlay-menu.active .overlay-weichie-cta {
  transition-delay: 0.45s;
}

.weichie-nav-link:hover,
.weichie-nav-has-sub:hover>.weichie-nav-link,
.weichie-nav-has-sub.open>.weichie-nav-toggle {
  color: rgba(10, 10, 10, 0.95);
  /* dark black on hover */
}

/* Submenu Accordion */
.weichie-nav-has-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s var(--ease-out);
}

.overlay-menu.active .weichie-nav-has-sub {
  opacity: 1;
  transform: translateY(0);
}

.weichie-nav-toggle i {
  font-size: 0.5em;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.weichie-nav-has-sub.open .weichie-nav-toggle i {
  transform: rotate(180deg);
}

/* Grid animation for auto-height transition */
.weichie-sub-menu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.35s ease, margin-top 0.35s ease;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
}

.weichie-nav-has-sub.open .weichie-sub-menu {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 1.5vh;
}

.weichie-sub-menu-inner {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5vh;
}

.weichie-sub-menu a {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(10, 10, 10, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.weichie-sub-menu a:hover {
  color: rgba(10, 10, 10, 0.95);
}

/* CTA Pill Button */
.overlay-weichie-cta {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s var(--ease-out);
}

.weichie-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--fg);
  color: var(--bg);
  padding: 10px 10px 10px 24px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.weichie-pill-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.weichie-pill-btn .pill-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.9rem;
}



/* ---------- Search Overlay ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  /* Semi-transparent dark bg */
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 1200;
  /* Higher than menu overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-fast) ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay .overlay-close {
  position: absolute;
  top: 32px;
  right: 48px;
}

.search-wrap {
  width: 100%;
  max-width: 700px;
  padding: 0 var(--space-lg);
}

#search-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--fg);
}

#search-input::placeholder {
  color: var(--gray-700);
}

#search-input:focus {
  border-bottom-color: var(--accent);
}

/* Search Results */
.search-results {
  margin-top: var(--space-md);
  max-height: 50vh;
  overflow-y: auto;
}

.search-hint {
  color: var(--gray-600);
  font-size: 0.9rem;
  padding: var(--space-md) 0;
  text-align: center;
}

.search-result-item {
  display: block;
  padding: 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: background 0.2s ease, padding-left 0.2s ease;
  border-radius: 8px;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.05);
  padding-left: 20px;
}

.search-result-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #050505;
  margin-bottom: 4px;
}

.search-result-item:hover .search-result-title {
  color: var(--accent);
}

.search-result-desc {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-lg);
  align-items: center;
  width: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s var(--ease-in-out);
}

.hero-bg-img.active {
  opacity: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(10, 10, 10, 0.55) 0%,
      rgba(10, 10, 10, 0.45) 35%,
      rgba(10, 10, 10, 0.75) 70%,
      rgba(10, 10, 10, 0.97) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  margin-bottom: var(--space-md);
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--gray-300);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 48px;
  right: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.hero-scroll-indicator span {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--gray-700);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollDown 2s var(--ease-in-out) infinite;
}

@keyframes scrollDown {
  0% {
    top: -100%;
  }

  100% {
    top: 100%;
  }
}

/* Hero slider dots */
.hero-dots {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-700);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.hero-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ---------- Sections ---------- */
section {
  padding: var(--space-3xl) 0;
}

section.compact {
  padding: var(--space-2xl) 0;
}

/* ---------- Services ---------- */
.services-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-800);
  border: 1px solid var(--gray-800);
}

.service-block {
  background: var(--black);
  padding: var(--space-xl) var(--space-lg);
  transition: background var(--duration) var(--ease-out);
  position: relative;
}

.service-block:hover {
  background: var(--charcoal);
}

.service-num {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gray-600);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.service-block h3 {
  margin-bottom: var(--space-sm);
  transition: color var(--duration-fast) ease;
}

.service-block:hover h3 {
  color: var(--accent);
}

.service-block p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.service-block .btn--ghost {
  font-size: 0.82rem;
  color: var(--gray-500);
}

.service-block:hover .btn--ghost {
  color: var(--fg);
}

/* ---------- Split Section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 600px;
}

.split-media {
  position: relative;
  overflow: hidden;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s var(--ease-out);
}

.split-media:hover img {
  transform: scale(1.05);
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--space-xl);
}

.split-content h2 {
  margin-bottom: var(--space-md);
}

.split-content p {
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: var(--space-lg);
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--gray-300);
}

.check-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------- Portfolio Grid ---------- */
.portfolio-filters {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 24px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  background: transparent;
  border: 1px solid var(--border);
  transition: all var(--duration-fast) ease;
  cursor: pointer;
}

.filter-btn:hover {
  color: var(--fg);
  border-color: var(--fg-muted);
}

.filter-btn.active {
  color: var(--pure-white);
  background: var(--accent);
  border-color: var(--accent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: contrast(1.04) brightness(1.02);
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: transform 0.8s var(--ease-out), filter 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay .tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.portfolio-overlay h3 {
  font-size: 1.3rem;
  color: var(--white);
}

/* ---------- Work Showcase (Homepage) ---------- */
.work-showcase {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.work-showcase__link {
  display: block;
  position: relative;
  text-decoration: none;
}

.work-showcase__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  transition: transform 0.8s var(--ease-out);
}

.work-showcase__link:hover .work-showcase__img {
  transform: scale(1.02);
}

.work-showcase__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl) var(--space-lg);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-radius: 0 0 16px 16px;
  transition: padding var(--duration-fast) ease;
}

@media (max-width: 500px) {
  .work-showcase__caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: var(--space-lg) var(--space-md);
  }
}

.work-showcase__count {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #fff;
  font-weight: 600;
}

.work-showcase__cta {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.work-showcase__link:hover .work-showcase__cta {
  color: var(--accent);
}

/* ---------- Scattered Cases (Portfolio Page) ---------- */
.cases-section {
  padding: var(--space-2xl) 0;
}

.cases-row {
  display: grid;
  grid-template-columns: 58% 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  align-items: start;
}

.cases-row--reverse {
  grid-template-columns: 1fr 58%;
}

.cases-row--trio {
  grid-template-columns: repeat(3, 1fr);
}

.case-card {
  position: relative;
}

.case-card--offset {
  padding-top: 80px;
}

.case-card--offset-up {
  align-self: end;
}

.case-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-soft);
}

.case-card__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: contrast(1.03) brightness(1.01);
  backface-visibility: hidden;
  transform: translateZ(0) scale(1);
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.case-card:hover .case-card__media img {
  transform: translateZ(0) scale(1.04);
}

.case-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--fg);
  margin-top: 16px;
  margin-bottom: 4px;
}

.case-card__tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* Responsive scattered layout */
@media (max-width: 900px) {

  .cases-row,
  .cases-row--reverse,
  .cases-row--trio {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .case-card--offset {
    padding-top: 0;
  }
}

/* ---------- About Story (Weichie-inspired) ---------- */
.about-story {
  padding: var(--space-2xl) 0;
}

.about-story__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-story__heading {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--fg);
  margin-bottom: var(--space-xl);
  letter-spacing: -0.02em;
}

.about-story__text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--fg-muted);
  margin-bottom: var(--space-lg);
}

.about-story__text:last-child {
  margin-bottom: 0;
}

/* ---------- Team Section ---------- */
.team-section {
  padding: var(--space-2xl) 0;
  background: var(--bg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.team-card__photo {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3/4;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  filter: grayscale(0.15) contrast(1.05);
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
}

.team-card:hover .team-card__photo img {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1.08);
}

.team-card__info {
  padding: 0;
}

.team-card__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}

.team-card__role {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.team-card__bio {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--fg-muted);
  margin-bottom: var(--space-md);
}

.team-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-card__tags span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  background: transparent;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* ---------- Numbers / Stats ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--gray-800);
  border-bottom: 1px solid var(--gray-800);
}

.stat {
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  border-right: 1px solid var(--gray-800);
}

.stat:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--gray-500);
  letter-spacing: 0.05em;
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: var(--space-md);
}

.cta-section p {
  font-size: 1rem;
  color: var(--gray-400);
  max-width: 480px;
  margin: 0 auto var(--space-lg);
}

/* ---------- Tech Marquee ---------- */
.marquee-section {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--gray-800);
  border-bottom: 1px solid var(--gray-800);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: var(--space-xl);
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--gray-700);
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee-track span .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
  margin: 0 var(--space-lg);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-800);
  border: 1px solid var(--gray-800);
}

.pricing-card {
  background: var(--black);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  transition: background var(--duration) var(--ease-out);
}

.pricing-card:hover {
  background: var(--charcoal);
}

.pricing-card.featured {
  background: var(--charcoal);
  position: relative;
}

.pricing-card.featured::before {
  content: 'Recommended';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 6px;
  background: var(--accent);
  color: var(--pure-white);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
}

.pricing-tier {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-500);
  margin-bottom: var(--space-md);
}

.pricing-amount {
  font-family: var(--font-body);
  font-size: clamp(2.2rem, 3.2vw, 3.0rem);
  font-weight: 800;
  color: var(--fg);
  margin-top: 4px;
  margin-bottom: var(--space-md);
  line-height: 1.1;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.price-val {
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.03em;
}

.pricing-amount span:not(.price-val) {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--gray-800);
  line-height: 1.7;
}

.pricing-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: var(--space-lg);
}

.pricing-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--gray-400);
}

.pricing-list li i {
  font-size: 0.7rem;
  width: 14px;
  text-align: center;
}

.pricing-list li i.fa-check {
  color: var(--accent);
}

.pricing-list li i.fa-xmark {
  color: var(--gray-700);
}

.pricing-list li.off {
  color: var(--gray-700);
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-800);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-300);
  transition: color var(--duration-fast) ease;
}

.faq-question:hover {
  color: var(--fg);
}

.faq-toggle {
  font-size: 1rem;
  color: var(--gray-600);
  transition: transform var(--duration-fast) ease;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-item.open .faq-question {
  color: var(--fg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.faq-answer-text {
  padding-bottom: var(--space-md);
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.8;
  max-width: 640px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  font-size: 0.95rem;
  transition: border-color var(--duration-fast) ease;
}

.form-control:focus {
  border-bottom-color: var(--accent);
}

.form-control::placeholder {
  color: var(--gray-700);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  cursor: pointer;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-details .eyebrow {
  margin-bottom: 0;
}

.contact-block {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.contact-block:last-of-type {
  border-bottom: none;
}

.contact-block h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.contact-block p,
.contact-block a {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

.contact-block a:hover {
  color: var(--accent);
}

/* ---------- Studio Cards (Contact Page) ---------- */
.studio-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.studio-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.35s ease,
    border-color 0.3s ease;
}

.studio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.studio-card--link {
  text-decoration: none;
  cursor: pointer;
  display: block;
}

.studio-card--link:hover {
  border-color: var(--accent);
}

.studio-card__label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.studio-card__icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--fg);
}

.studio-card--link .studio-card__icon {
  color: var(--accent);
}

.studio-card__title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--fg);
  word-break: break-word;
}

.studio-card__sub {
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-top: 4px;
}

@media (max-width: 600px) {
  .studio-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 400px) {
  .studio-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- Page Hero (Inner Pages) ---------- */
.page-hero {
  padding: 200px 0 100px;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(10, 10, 10, 0.72) 0%,
      rgba(10, 10, 10, 0.60) 50%,
      rgba(10, 10, 10, 0.92) 100%);
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin-bottom: var(--space-sm);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--gray-600);
}

.breadcrumb a {
  color: var(--gray-500);
}

.breadcrumb a:hover {
  color: var(--fg);
}

/* ---------- Service Detail ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.service-detail-img {
  overflow: hidden;
}

.service-detail-img img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: var(--space-lg);
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--gray-300);
}

.feature-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------- Mission / Vision ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-800);
  border: 1px solid var(--gray-800);
}

.value-card {
  background: var(--black);
  padding: var(--space-xl);
  transition: background var(--duration) var(--ease-out);
}

.value-card:hover {
  background: var(--charcoal);
}

.value-card h3 {
  margin-bottom: var(--space-sm);
}

.value-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.8;
}

/* ---------- Process ---------- */
.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.process-step {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-800);
  position: relative;
}

.process-step::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.process-step .step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gray-800);
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.process-step h4 {
  margin-bottom: 8px;
  color: var(--fg);
}

.process-step p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ---------- Footer ---------- */
footer {
  padding: var(--space-2xl) 0 var(--space-lg);
  border-top: 1px solid var(--gray-800);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-top: var(--space-md);
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-500);
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--gray-500);
  transition: all var(--duration-fast) ease;
}

.footer-links a:hover {
  color: var(--fg);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--gray-600);
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  color: var(--gray-600);
  font-size: 0.9rem;
  transition: color var(--duration-fast) ease;
}

.footer-social a:hover {
  color: var(--fg);
}

/* ---------- Floating Elements ---------- */
.floating-search {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--charcoal);
  border: 1px solid var(--gray-800);
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: all var(--duration-fast) ease;
  font-size: 0.85rem;
}

.floating-search:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--pure-white);
}

#back-to-top {
  position: fixed;
  bottom: 92px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--charcoal);
  border: 1px solid var(--gray-800);
  color: var(--gray-400);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  font-size: 0.85rem;
  transition: all var(--duration-fast) ease;
  cursor: pointer;
}

#back-to-top.visible {
  display: flex;
}

#back-to-top:hover {
  border-color: var(--fg-muted);
  color: var(--fg);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-cta .btn--outline {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .hero-stage {
    aspect-ratio: 1.2 / 1;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .services-row {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split-media {
    aspect-ratio: 16/9;
  }

  .split-content {
    padding: var(--space-xl) var(--space-lg);
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    border-bottom: 1px solid var(--gray-800);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-detail {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }

  .overlay-body {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .overlay-info {
    flex: 1;
  }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 100px;
    --space-2xl: 80px;
  }

  .header-inner {
    height: 72px;
  }

  .hero {
    padding-bottom: var(--space-xl);
    position: relative;
  }

  .hero-stage {
    position: absolute !important;
    top: 55% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 140vw !important;
    height: 100vh !important;
    max-width: 600px !important;
    max-height: 600px !important;
    opacity: 0.22 !important;
    /* Soft background overlay opacity */
    pointer-events: none !important;
    z-index: 1 !important;
    margin: 0 !important;
  }

  .sphere-label {
    pointer-events: none !important;
    font-size: 0.65rem !important;
    opacity: 0.6 !important;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }

  .process-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .page-hero {
    padding: 140px 0 60px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: none;
  }
}

/* ========== NEW FEATURES ========== */

/* ---------- Custom Cursor ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(200, 16, 46, 0.4);
  border-radius: 50%;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
    border-color 0.3s ease, background 0.3s ease;
}

.cursor-ring.is-hovering {
  width: 60px;
  height: 60px;
  border-color: var(--accent);
  background: rgba(200, 16, 46, 0.06);
}

@media (hover: none) {

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  html {
    cursor: auto;
  }
}

/* ---------- Page Transition ---------- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
  will-change: transform;
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border, var(--gray-800));
  color: var(--fg-dim, var(--gray-400));
  font-size: 0.85rem;
  transition: all var(--duration-fast) ease;
  cursor: none;
}

.theme-toggle:hover {
  border-color: var(--fg-muted, var(--gray-400));
  color: var(--fg, var(--white));
}

/* ---------- Three.js Hero Container ---------- */
.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 600px;
  margin: 0 auto;
  z-index: 1;
  overflow: visible;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#sphere-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sphere-label {
  position: absolute;
  pointer-events: auto;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim, var(--gray-500));
  white-space: nowrap;
  transform: translate(-50%, 0);
  transition: color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  cursor: none;
}

.sphere-label:hover {
  color: var(--accent) !important;
}

/* ---------- Character Split ---------- */
.char-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.char-inner {
  display: inline-block;
  will-change: transform, opacity;
}

body {
  color: var(--fg-muted);
  background-color: var(--bg);
  background-image: radial-gradient(var(--border) 1.2px, transparent 1.2px);
  background-size: 32px 32px;
}

#site-header.scrolled {
  background: rgba(245, 245, 240, 0.95);
}

#site-header::after {
  background: rgba(0, 0, 0, 0.06);
}

.hero-bg::after {
  background: linear-gradient(to bottom,
      rgba(245, 245, 240, 0.55) 0%,
      rgba(245, 245, 240, 0.40) 35%,
      rgba(245, 245, 240, 0.75) 70%,
      rgba(245, 245, 240, 0.97) 100%);
}

.service-block,
.value-card,
.pricing-card,
.pricing-card.featured {
  background: var(--bg-card);
}

.pricing-card:hover,
.pricing-card.featured:hover,
.service-block:hover,
.value-card:hover {
  background: var(--bg-card);
}

/* ---------- Currency Toggle Switch ---------- */
.currency-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.currency-toggle {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  gap: 4px;
}

.currency-btn {
  border: none;
  background: transparent;
  padding: 8px 22px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.currency-btn.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.25);
}

.services-row,
.values-grid,
.pricing-grid {
  background: var(--border);
}

.stat {
  border-color: var(--border);
}

.stats-strip {
  border-color: var(--border);
}

.process-step {
  border-color: var(--border);
}

.divider {
  background: var(--border);
}

footer {
  border-color: var(--border);
}

.faq-item {
  border-color: var(--border);
}

.form-control {
  border-color: var(--border);
  color: var(--fg);
}

.overlay-menu {
  background: rgba(245, 245, 240, 0.85);
  /* Semi-transparent light bg */
}

.search-overlay {
  background: rgba(245, 245, 240, 0.85);
  /* Semi-transparent light bg */
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.sub-menu {
  background: var(--bg-card);
  border-color: var(--border);
}

.nav-link.active,
.nav-link:hover {
  color: var(--fg);
}

.logo-text .brand-main {
  color: var(--fg);
}

.page-hero::before {
  background: linear-gradient(to bottom,
      rgba(245, 245, 240, 0.72) 0%,
      rgba(245, 245, 240, 0.60) 50%,
      rgba(245, 245, 240, 0.92) 100%);
}

.floating-search,
#back-to-top {
  background: var(--bg-card);
  border-color: var(--border);
}

.marquee-track span {
  color: #666666;
}

/* Fix old .reveal class for GSAP compatibility */
.reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Sticky Social Sidebar ---------- */
.sticky-social-bar {
  position: fixed;
  right: 32px;
  top: 55%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 999;
}

.social-bar-icons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.social-bar-icons a {
  color: var(--fg-muted);
  font-size: 0.9rem;
  transition: color var(--duration-fast) ease, transform var(--duration-fast) ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
}

.social-bar-icons a:hover {
  color: var(--accent);
  transform: scale(1.2);
}

.social-bar-line {
  width: 1px;
  height: 60px;
  background: var(--border);
}

.social-bar-text {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  transform: rotate(180deg);
}

@media (max-width: 1024px) {
  .sticky-social-bar {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    gap: 12px;
  }

  .social-bar-line {
    height: 40px;
  }

  .social-bar-icons {
    gap: 16px;
  }

  .social-bar-icons a {
    font-size: 1.05rem;
    /* Larger touch targets for tablet */
  }

  .social-bar-text {
    font-size: 0.5rem;
    letter-spacing: 0.25em;
  }
}

@media (max-width: 500px) {
  .sticky-social-bar {
    right: 8px;
    /* Move closer to edge on very small screens */
    gap: 8px;
  }

  .social-bar-line {
    height: 30px;
  }

  .social-bar-icons {
    gap: 12px;
  }

  .social-bar-icons a {
    font-size: 0.95rem;
    /* Large touch targets for mobile */
  }

  .social-bar-text {
    font-size: 0.5rem;
  }
}

/* ---------- Menu Open Scoping ---------- */
body.nav-open #site-header {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease;
}

body.nav-open .sticky-social-bar {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease;
}

body.nav-open .hero-stage {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease;
}

body.nav-open .cursor-dot,
body.nav-open .cursor-ring {
  opacity: 0 !important;
}

/* ---------- Desktop Narrow Overlap Fix ---------- */
@media (max-width: 1300px) and (min-width: 1025px) {
  .hero-stage {
    max-width: 440px !important;
  }
}