/* ==========================================================================
   Kornercases — Studio Design System & Kinetic Motion Stylesheet (Light Mode)
   Palette extracted directly from the official Kornercases Gold Emblem:
   - Highlight:    #DEC39A
   - Champagne:    #D5B57A
   - Core Gold:    #C9A26A
   - Rich Gold:    #B79249
   - Deep Bronze:  #A17739
   ========================================================================== */

:root {
  /* Official Brand Antique Brass Gradient Palette */
  --gold-highlight: #E7D39F;
  --gold-champagne: #D4B96E;
  --gold-core:      #B8933A;
  --gold-rich:      #997626;
  --gold-deep:      #6B5014;
  --gold-ink:       #6B5014;

  /* Antique Brass Linear Gradients */
  --gradient-gold: linear-gradient(135deg, #E7D39F 0%, #D4B96E 35%, #B8933A 75%, #997626 100%);
  --gradient-gold-hover: linear-gradient(135deg, #EFE0B8 0%, #DFC884 35%, #C7A34C 75%, #A88432 100%);
  --gradient-gold-text: linear-gradient(135deg, #997626 0%, #6B5014 60%, #4E390B 100%);

  /* Light Mode Alabaster & Warm Ivory Surfaces */
  --bg-light:       #FAF8F4;
  --bg-surface:     #F3EFE7;
  --bg-surface-elevated: #FFFFFF;
  --bg-card:        #FFFFFF;
  --bg-card-hover:  #FDFBF7;

  /* Text & Border Contrasts */
  --text-primary:   #161513;
  --text-secondary: #4E4A43;
  --text-muted:     #7A746B;
  --border-gold:    rgba(161, 119, 57, 0.28);
  --border-gold-subtle: rgba(161, 119, 57, 0.14);
  --border-subtle:  rgba(22, 21, 19, 0.08);

  /* Status Colors */
  --status-green:   #059669;
  --status-red:     #EF4444;
  --status-yellow:  #F59E0B;

  /* Dynamic Inertia Mouse Coordinates (Updated via RAF loop) */
  --mx: 0;
  --my: 0;

  /* Typography */
  --font-display: "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 84px;
  font-size: 16px;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: clip;
}

body {
  margin: 0;
  background-color: var(--bg-light);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
   Ambient Background & Grid Backdrop
   ========================================================================== */

.grid-backdrop {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(161, 119, 57, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(161, 119, 57, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.25) 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.25) 80%);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(250, 248, 244, 0.86);
  border-bottom: 1px solid var(--border-gold-subtle);
  transition: background-color 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-emblem {
  display: block;
  height: 38px;
  width: auto;
  filter: drop-shadow(0 4px 10px rgba(161, 119, 57, 0.2));
  transition: transform 0.3s ease;
}

.brand-link:hover .brand-emblem {
  transform: scale(1.05) rotate(3deg);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.gold-text {
  color: var(--gold-ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-item:hover {
  color: var(--gold-ink);
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--gradient-gold-text);
  transition: width 0.25s ease;
}

.nav-item:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--status-green);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.pulse-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--status-green);
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  transform: translate(var(--tx, 0px), var(--ty, 0px));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.25s ease,
              background 0.2s ease,
              border-color 0.2s ease;
}

.btn-large {
  padding: 13px 26px;
  font-size: 15px;
  border-radius: 11px;
}

.btn-gold {
  background: var(--gradient-gold);
  color: #161513;
  box-shadow: 0 6px 20px rgba(161, 119, 57, 0.28);
}

.btn-gold:hover {
  background: var(--gradient-gold-hover);
  box-shadow: 0 8px 28px rgba(161, 119, 57, 0.42);
}

.btn-outline {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid var(--border-gold);
  box-shadow: 0 2px 10px rgba(90, 68, 35, 0.05);
}

.btn-outline:hover {
  background: #FDF9F2;
  border-color: var(--gold-deep);
  color: var(--gold-ink);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  z-index: 1;
  padding: 70px 24px 60px;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.shimmer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(201, 162, 106, 0.08);
  border: 1px solid var(--border-gold-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--gold-ink);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-deep);
}

/* Hero Title & Kinetic Typography */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.6vw, 80px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.032em;
  max-width: 1040px;
  margin: 0 0 24px;
  color: var(--text-primary);
}

.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.08em 0.06em 0.14em;
  margin: -0.08em -0.06em -0.14em;
}

.word > span {
  display: inline-block;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.gold-gradient-text {
  display: inline-block;
  padding: 0.08em 0.04em 0.14em 0;
  margin: -0.08em -0.04em -0.14em 0;
  color: var(--gold-ink);
}

html.dark-theme .gold-text,
html.dark-theme .gold-gradient-text {
  color: var(--gold-highlight);
}

.gold-highlight {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.gold-highlight::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1em;
  height: 0.35em;
  background: rgba(213, 181, 122, 0.45);
  border-radius: 4px;
  z-index: -1;
  transform-origin: left center;
  transition: transform 0.85s cubic-bezier(0.7, 0, 0.2, 1) 0.95s;
}

/* Entrance Animations */
.anim .words:not(.in) .word > span {
  transform: translateY(115%);
}

.anim .words:not(.in) .gold-highlight::before {
  transform: scaleX(0);
}

.reveal {
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms),
              translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms);
}

.anim .reveal:not(.in) {
  opacity: 0;
  translate: 0 24px;
}

.hero-lede {
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.6;
  margin: 0 0 36px;
}

.hero-lede strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

/* ==========================================================================
   3D INTERACTIVE ENGINE STAGE (The Kornercases Console)
   ========================================================================== */

.stage-wrapper {
  width: 100%;
  max-width: 1120px;
  position: relative;
}

.engine-stage {
  position: relative;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 20%, #F5EFE4 0%, #EAE1D2 100%);
  border: 1px solid var(--border-gold);
  box-shadow: 0 32px 70px -25px rgba(90, 68, 35, 0.16),
              inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  min-height: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  overflow: hidden;
  padding: 34px 24px 48px;
}

/* Interactive Constellation Node Mesh Canvas */
.stage-constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

/* Interactive Platform Switcher Pill */
.showcase-switcher {
  position: relative;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(90, 68, 35, 0.1);
  flex-wrap: wrap;
  justify-content: center;
}

.s-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s cubic-bezier(0.22, 1, 0.36, 1), color 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.s-tab:hover {
  color: var(--text-primary);
}

.s-tab .s-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-gold);
  transition: all 0.25s ease;
}

.s-tab.active {
  background: var(--text-primary);
  color: #FAF8F4;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(22, 21, 19, 0.2);
}

.s-tab.active .s-dot {
  background: var(--gold-champagne);
  box-shadow: 0 0 8px var(--gold-champagne);
}

/* Layered 3D Device Showcase Arena */
.showcase-arena {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 880px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

/* LAYER 1: Desktop Web Browser Mockup */
.device-browser {
  width: min(88%, 660px);
  margin-right: 90px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  box-shadow: 0 28px 60px -15px rgba(70, 52, 24, 0.22),
              0 0 30px -5px rgba(201, 162, 106, 0.16);
  overflow: hidden;
  text-align: left;
  transform: perspective(1100px)
             translateY(calc(var(--sy, 0) * 16px))
             rotateX(calc(var(--my) * -7deg + var(--sy, 0) * 4deg))
             rotateY(calc(var(--mx) * 9deg));
  will-change: transform;
  transition: box-shadow 0.3s ease;
}

.browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: #F8F5EE;
  border-bottom: 1px solid var(--border-gold-subtle);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.browser-dots .red { background: #FF5F56; }
.browser-dots .yellow { background: #FFBD2E; }
.browser-dots .green { background: #27C93F; }

.browser-url {
  flex: 1;
  max-width: 340px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--status-green);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-green);
  animation: pulse-beacon 1.8s infinite;
}

.browser-screen {
  display: none;
  padding: 22px 24px 26px;
  animation: screen-fade 0.35s ease;
}

.browser-screen.active {
  display: block;
}

@keyframes screen-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ui-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ui-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ui-big-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
}

.ui-muted {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}

.ui-chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.ui-chip.green {
  background: rgba(5, 150, 105, 0.1);
  color: var(--status-green);
}

.ui-chip.gold {
  background: rgba(201, 162, 106, 0.16);
  color: var(--gold-ink);
}

.ui-chart-box {
  height: 86px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: #FAF8F4;
  border: 1px solid var(--border-subtle);
  padding: 8px 0 0;
  overflow: hidden;
}

.ui-sparkline {
  width: 100%;
  height: 100%;
  display: block;
}

.ui-route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.ui-stat-card {
  background: #FAF8F4;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
}

.ui-stat-card strong {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-primary);
}

.ui-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ui-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #FAF8F4;
  border: 1px solid var(--border-subtle);
  font-size: 12.5px;
}

.ui-row-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.ui-row-dot.gold { background: var(--gold-deep); }
.ui-row-dot.green { background: var(--status-green); }

.ui-row-title {
  flex: 1;
  color: var(--text-secondary);
  font-weight: 500;
}

.ui-row-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

/* LAYER 2: Floating Mobile Phone Mockup */
.device-phone {
  position: absolute;
  right: 12px;
  bottom: -6px;
  width: 236px;
  background: #161513;
  border-radius: 32px;
  padding: 9px;
  border: 2px solid var(--gold-champagne);
  box-shadow: 0 30px 60px -12px rgba(45, 32, 12, 0.42),
              0 0 24px rgba(201, 162, 106, 0.25);
  z-index: 8;
  transform: perspective(1000px)
             translate(calc(var(--mx) * 18px), calc(var(--my) * 14px + var(--sy, 0) * -28px))
             rotateX(calc(var(--my) * -12deg + var(--sy, 0) * 5deg))
             rotateY(calc(var(--mx) * 14deg));
  will-change: transform;
  text-align: left;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 14px;
  background: #161513;
  border-radius: 999px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
}

.phone-cam {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2C2A26;
}

.phone-screen-wrap {
  background: #FAF8F4;
  border-radius: 24px;
  padding: 28px 14px 16px;
  min-height: 315px;
  overflow: hidden;
}

.phone-screen {
  display: none;
  animation: screen-fade 0.35s ease;
}

.phone-screen.active {
  display: block;
}

.ph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ph-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-ink);
  background: rgba(201, 162, 106, 0.18);
  padding: 3px 7px;
  border-radius: 999px;
}

.ph-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--gold-highlight);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-badge-ok {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--status-green);
}

.ph-wallet-card {
  background: var(--gradient-gold);
  border-radius: 14px;
  padding: 14px;
  color: #161513;
  margin-bottom: 12px;
  box-shadow: 0 8px 18px rgba(161, 119, 57, 0.25);
}

.ph-compose-hero {
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 13px;
  margin-bottom: 12px;
}

.ph-card-lbl {
  display: block;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.78;
  margin-bottom: 2px;
}

.ph-card-amt {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ph-card-amt.dark {
  color: var(--text-primary);
}

.ph-card-num {
  font-family: var(--font-mono);
  font-size: 10px;
  margin-top: 8px;
  opacity: 0.75;
}

.ph-progress {
  height: 6px;
  border-radius: 999px;
  background: #EFEAE0;
  margin-top: 10px;
  overflow: hidden;
}

.ph-progress span {
  display: block;
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 999px;
}

.ph-nodes {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.ph-nodes span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(5, 150, 105, 0.1);
  color: var(--status-green);
}

.ph-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.ph-act {
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  padding: 6px 4px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.ph-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ph-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 9px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-secondary);
}

.ph-item strong {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-primary);
}

.ph-item strong.pos {
  color: var(--status-green);
}

/* Rotating Circular Gold Badge */
.gold-badge {
  position: absolute;
  right: 28px;
  top: 28px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid var(--border-gold);
  color: var(--gold-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 10;
  box-shadow: 0 12px 28px rgba(90, 68, 35, 0.16), 0 0 20px rgba(201, 162, 106, 0.18);
  transform: translate(var(--tx, 0px), var(--ty, 0px));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s ease;
}

.gold-badge:hover {
  border-color: var(--gold-deep);
}

.ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 18s linear infinite;
}

.badge-center-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 6px rgba(161, 119, 57, 0.25));
  transition: transform 0.3s ease;
}

.gold-badge:hover .badge-center-icon {
  transform: scale(1.1);
}

/* Floating Pill */
.floating-pill {
  position: absolute;
  left: 28px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  transform: translate(calc(var(--mx) * 14px), calc(var(--my) * 14px));
  box-shadow: 0 8px 24px rgba(90, 68, 35, 0.14);
  z-index: 10;
}

.pill-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-deep);
}

/* ==========================================================================
   TRUST METRICS & CLIENT TESTIMONIALS MARQUEE
   ========================================================================== */

.section-trust {
  position: relative;
  z-index: 1;
  padding: 20px 0 40px;
}

.trust-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 24px 20px;
  margin: 0 24px 36px;
  box-shadow: 0 12px 32px -15px rgba(90, 68, 35, 0.1);
}

.trust-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 4px 12px;
  position: relative;
}

.trust-metric:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-gold-subtle);
}

.trust-num {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.trust-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* Side-Fanned Stacked Review Card Deck */
.review-spotlight {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 56px 0;
  outline: none;
}

.card-deck {
  display: grid;
  position: relative;
  touch-action: pan-y;
  user-select: none;
  opacity: calc(0.15 + 0.85 * var(--deck-enter, 1));
  transform: translateY(calc((1 - var(--deck-enter, 1)) * 42px)) scale(calc(0.93 + 0.07 * var(--deck-enter, 1)));
  will-change: transform, opacity;
}

.deck-card {
  grid-area: 1 / 1;
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  padding: 32px 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 18px 42px -18px rgba(90, 68, 35, 0.16);
  transform-origin: center center;
  will-change: transform, opacity;
  transition: transform 0.52s cubic-bezier(0.22, 1.15, 0.36, 1),
              opacity 0.42s ease,
              box-shadow 0.4s ease,
              border-color 0.35s ease;
}

.deck-card[data-pos="0"] {
  z-index: 4;
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1) rotate(0deg);
  box-shadow: 0 24px 54px -18px rgba(90, 68, 35, 0.22),
              0 0 28px -8px rgba(201, 162, 106, 0.2);
}

.deck-card[data-pos="1"] {
  z-index: 3;
  opacity: 0.9;
  cursor: pointer;
  transform: translateX(calc(36px * var(--deck-enter, 1))) translateY(calc(6px * var(--deck-enter, 1))) scale(calc(1 - 0.06 * var(--deck-enter, 1))) rotate(calc(2.6deg * var(--deck-enter, 1)));
}

.deck-card[data-pos="2"] {
  z-index: 2;
  opacity: 0.68;
  cursor: pointer;
  transform: translateX(calc(66px * var(--deck-enter, 1))) translateY(calc(12px * var(--deck-enter, 1))) scale(calc(1 - 0.12 * var(--deck-enter, 1))) rotate(calc(4.8deg * var(--deck-enter, 1)));
}

.deck-card[data-pos="3"] {
  z-index: 1;
  opacity: 0.78;
  cursor: pointer;
  transform: translateX(calc(-32px * var(--deck-enter, 1))) translateY(calc(8px * var(--deck-enter, 1))) scale(calc(1 - 0.08 * var(--deck-enter, 1))) rotate(calc(-2.6deg * var(--deck-enter, 1)));
}

.deck-card.is-shuffling-next {
  z-index: 5 !important;
  opacity: 0.35 !important;
  transform: translateX(-115px) translateY(-10px) scale(0.95) rotate(-7deg) !important;
}

.deck-card.is-shuffling-prev {
  z-index: 5 !important;
  opacity: 0.35 !important;
  transform: translateX(115px) translateY(-10px) scale(0.95) rotate(7deg) !important;
}

html.dark-theme .deck-card {
  background: var(--bg-card);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.65);
}

html.dark-theme .deck-card[data-pos="0"] {
  box-shadow: 0 26px 60px -18px rgba(0, 0, 0, 0.8),
              0 0 32px -8px rgba(201, 162, 106, 0.16);
}

.quote-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.quote-meta-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slide-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.quote-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-ink);
  background: rgba(201, 162, 106, 0.14);
  border: 1px solid var(--border-gold-subtle);
  padding: 4px 11px;
  border-radius: 999px;
}

.quote-stars {
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--gold-rich);
}

.spotlight-quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.48;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-author .author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quote-author strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.quote-author span:not(.author-avatar) {
  font-size: 12px;
  color: var(--text-muted);
}

/* Carousel Controls */
.spotlight-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.spotlight-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: #FAF8F4;
  color: var(--gold-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translate(var(--tx, 0px), var(--ty, 0px));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.2s ease,
              color 0.2s ease,
              border-color 0.2s ease;
}

.spotlight-nav-btn:hover {
  background: var(--gradient-gold);
  border-color: transparent;
  color: #161513;
}

.spotlight-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spotlight-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: var(--border-gold);
  cursor: pointer;
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease;
}

.spotlight-dot.active {
  width: 26px;
  background: var(--gold-deep);
}

html.dark-theme .spotlight-nav-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-champagne);
}

html.dark-theme .spotlight-dot.active {
  background: var(--gold-champagne);
}

@media (max-width: 600px) {
  .review-spotlight {
    padding: 8px 26px 0;
  }

  .deck-card {
    padding: 22px 20px 20px;
    border-radius: 20px;
  }

  .deck-card[data-pos="1"] {
    transform: translateX(calc(18px * var(--deck-enter, 1))) translateY(calc(5px * var(--deck-enter, 1))) scale(calc(1 - 0.05 * var(--deck-enter, 1))) rotate(calc(2deg * var(--deck-enter, 1)));
  }

  .deck-card[data-pos="2"] {
    transform: translateX(calc(30px * var(--deck-enter, 1))) translateY(calc(10px * var(--deck-enter, 1))) scale(calc(1 - 0.1 * var(--deck-enter, 1))) rotate(calc(3.8deg * var(--deck-enter, 1)));
  }

  .deck-card[data-pos="3"] {
    transform: translateX(calc(-16px * var(--deck-enter, 1))) translateY(calc(6px * var(--deck-enter, 1))) scale(calc(1 - 0.07 * var(--deck-enter, 1))) rotate(calc(-2deg * var(--deck-enter, 1)));
  }
}

/* ==========================================================================
   BENTO GRID SECTION
   ========================================================================== */

.section-bento {
  position: relative;
  z-index: 1;
  padding: 100px 24px;
  overflow-x: clip;
}

.section-container {
  max-width: 1240px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--gold-ink);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.12;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.section-desc {
  font-size: 16.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  position: relative;
  grid-column: span 6;
  background: var(--bg-card);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 22px;
  padding: 34px;
  overflow: hidden;
  box-shadow: 0 10px 30px -15px rgba(90, 68, 35, 0.08);
  opacity: calc(0.1 + 0.9 * var(--bento-enter, 1));
  transform: translate3d(calc((1 - var(--bento-enter, 1)) * 76px * var(--bento-dir, 1)), calc((1 - var(--bento-enter, 1)) * 16px), 0);
  will-change: transform, opacity;
  transition: border-color 0.35s ease,
              background-color 0.35s ease,
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento-card:nth-child(odd) {
  --bento-dir: -1;
}

.bento-card:nth-child(even) {
  --bento-dir: 1;
}

/* Diagonal Metallic Gold Shimmer Sweep */
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 55%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(222, 195, 154, 0.24) 50%,
    transparent 100%
  );
  transform: translateX(-160%) skewX(-20deg);
  pointer-events: none;
  z-index: 2;
}

.bento-card:hover::before {
  transform: translateX(280%) skewX(-20deg);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento-card-large {
  grid-column: span 6;
}

.bento-card:hover {
  transform: translate3d(calc((1 - var(--bento-enter, 1)) * 76px * var(--bento-dir, 1)), -6px, 0);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  box-shadow: 0 26px 52px -15px rgba(90, 68, 35, 0.16),
              0 0 32px -8px rgba(201, 162, 106, 0.24);
}

/* Interactive Cursor-Tracking Spotlight */
.card-glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--bx, 50%) var(--by, 0%),
    rgba(222, 195, 154, 0.34),
    transparent 65%
  );
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.bento-card:hover .card-glow {
  opacity: 1;
}

.bento-card > *:not(.card-glow) {
  position: relative;
  z-index: 1;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-surface);
  background-origin: border-box;
  background-clip: border-box;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease,
              border-color 0.3s ease,
              color 0.3s ease,
              box-shadow 0.3s ease;
}

.card-icon svg {
  overflow: visible;
  display: block;
}

.card-icon.gold-icon {
  background: rgba(201, 162, 106, 0.14);
  border-color: var(--border-gold);
  color: var(--gold-ink);
}

.bento-card:hover .card-icon {
  transform: rotate(-6deg) scale(1.1);
  background: var(--gradient-gold);
  background-origin: border-box;
  background-clip: border-box;
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(161, 119, 57, 0.28);
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold-ink);
  background: rgba(201, 162, 106, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-gold-subtle);
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.bento-card:hover .card-tag {
  border-color: var(--border-gold);
  background: rgba(201, 162, 106, 0.2);
  transform: translateY(-1px);
}

.bento-card .pill-item {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}

.bento-card:hover .pill-item {
  transform: translateY(-2px);
}

.card-title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.card-text {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 24px;
}

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

.pill-item {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 6px;
  background: #F6F2EA;
  border: 1px solid var(--border-gold-subtle);
  color: var(--text-secondary);
}

.pill-item.pill-featured {
  background: linear-gradient(135deg, rgba(222, 195, 154, 0.32) 0%, rgba(201, 162, 106, 0.2) 100%);
  border: 1px solid var(--gold-deep);
  color: var(--gold-ink);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(161, 119, 57, 0.12);
}

.highlight-gold {
  color: var(--gold-ink);
  font-weight: 600;
  background: linear-gradient(180deg, transparent 60%, rgba(222, 195, 154, 0.45) 60%);
  padding: 0 2px;
  border-radius: 2px;
}

/* ==========================================================================
   PORTFOLIO / SELECTED WORK SECTION
   ========================================================================== */

.section-portfolio {
  position: relative;
  z-index: 1;
  padding: 20px 24px 90px;
}

.portfolio-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.p-filter {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-gold-subtle);
  background: #FFFFFF;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s cubic-bezier(0.22, 1, 0.36, 1), color 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.p-filter:hover {
  border-color: var(--border-gold);
  color: var(--text-primary);
}

.p-filter.active {
  background: var(--text-primary);
  color: #FAF8F4;
  border-color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(22, 21, 19, 0.16);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 440px));
  justify-content: center;
  gap: 20px;
}

.portfolio-grid.portfolio-grid-centered {
  grid-template-columns: repeat(auto-fit, minmax(300px, 560px));
  justify-content: center;
}

.portfolio-empty {
  text-align: center;
  margin: 24px auto 0;
  padding: 28px 20px;
  max-width: 560px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px dashed var(--border-gold);
  font-size: 14.5px;
  color: var(--text-secondary);
}

.portfolio-empty a {
  font-weight: 600;
  text-decoration: none;
}

.portfolio-view-all {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

/* Dedicated Portfolio Page Header */
.portfolio-page-hero {
  position: relative;
  z-index: 1;
  padding: 54px 24px 16px;
  text-align: center;
}

.portfolio-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-ink);
  text-decoration: none;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(184, 147, 58, 0.1);
  border: 1px solid var(--border-gold-subtle);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.portfolio-back-link:hover {
  border-color: var(--border-gold);
  transform: translateX(-3px);
}

.cs-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cs-modal-actions .btn-submit {
  flex: 1 1 170px;
  width: auto;
}

.portfolio-card {
  background: #FFFFFF;
  border: 1px solid var(--border-gold-subtle);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px -15px rgba(90, 68, 35, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card.is-hidden {
  display: none;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: 0 24px 48px -15px rgba(90, 68, 35, 0.16);
  outline: none;
}

.portfolio-card:hover .p-arrow {
  transform: translateX(4px);
  color: var(--gold-ink);
}

.p-preview {
  position: relative;
  height: 210px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, #F7F1E6 0%, #ECE3D3 100%);
  border-bottom: 1px solid var(--border-gold-subtle);
  overflow: hidden;
}

.p-preview-android {
  background: radial-gradient(circle at 70% 20%, #F3EFE7 0%, #E7DFCF 100%);
}

.p-preview-web {
  background: radial-gradient(circle at 40% 20%, #F4F5F2 0%, #E8EAE3 100%);
}

.p-preview-velo {
  background: radial-gradient(circle at 60% 25%, #F8F2E7 0%, #EADEC9 100%);
}

.p-preview-phones {
  height: auto;
  min-height: 255px;
  padding: 44px 16px 18px;
  align-items: center;
  background: radial-gradient(circle at 50% 20%, #F8F3EA 0%, #EAE0CE 100%);
}

.p-phones-fan {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-phone-frame {
  width: 84px;
  aspect-ratio: 9 / 19.5;
  height: auto;
  border-radius: 13px;
  background: #161513;
  padding: 4px;
  border: 1.5px solid var(--gold-champagne);
  box-shadow: 0 14px 28px -8px rgba(45, 32, 12, 0.32);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.p-phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 9px;
  display: block;
}

.p-phone-left {
  transform: translateX(14px) translateY(6px) rotate(-7deg);
  z-index: 1;
  opacity: 0.92;
}

.p-phone-center {
  width: 96px;
  height: auto;
  z-index: 3;
  box-shadow: 0 18px 36px -8px rgba(45, 32, 12, 0.42);
}

.p-phone-right {
  transform: translateX(-14px) translateY(6px) rotate(7deg);
  z-index: 2;
  opacity: 0.92;
}

.portfolio-card:hover .p-phone-left {
  transform: translateX(10px) translateY(4px) rotate(-10deg);
}

.portfolio-card:hover .p-phone-center {
  transform: translateY(-6px) scale(1.03);
}

.portfolio-card:hover .p-phone-right {
  transform: translateX(-10px) translateY(4px) rotate(10deg);
}

/* Web App Browser Preview inside Portfolio Card */
.p-preview-browser {
  height: 255px;
  min-height: 255px;
  padding: 44px 18px 18px;
  align-items: center;
}

.p-browser-frame {
  width: 100%;
  max-width: 310px;
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  box-shadow: 0 16px 32px -10px rgba(70, 52, 24, 0.18);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-card:hover .p-browser-frame {
  transform: translateY(-3px);
}

.p-browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: #F8F5EE;
  border-bottom: 1px solid var(--border-gold-subtle);
}

.p-browser-url {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  padding: 2px 10px;
  border-radius: 5px;
}

.p-browser-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-browser-img {
  width: 100%;
  height: 165px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.p-browser-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.p-browser-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}

.p-browser-chart {
  width: 100%;
  height: 52px;
  display: block;
  background: #FAF8F4;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.p-screenshot {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.p-preview.has-screenshot .p-screenshot {
  display: block;
}

.p-preview.has-screenshot .p-mini-ui {
  display: none;
}

.portfolio-card:hover .p-preview.has-screenshot .p-screenshot {
  transform: scale(1.04);
}

.p-mini-ui {
  width: min(88%, 270px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 16px 32px -12px rgba(70, 52, 24, 0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-card:hover .p-mini-ui {
  transform: scale(1.03) translateY(-2px);
}

.mini-card-gold {
  background: var(--gradient-gold);
  border-radius: 10px;
  padding: 12px;
  color: #161513;
}

.mini-card-dark {
  background: #161513;
  border-radius: 10px;
  padding: 12px;
  color: #FAF8F4;
}

.mini-card-dark span {
  color: var(--gold-champagne);
}

.mini-card-gold span,
.mini-card-dark span,
.mini-compose-box span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 2px;
}

.mini-card-gold strong,
.mini-card-dark strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.mini-compose-box {
  background: #FAF8F4;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 11px 12px;
}

.mini-bar {
  height: 6px;
  border-radius: 999px;
  background: #EAE3D5;
  margin-top: 8px;
  overflow: hidden;
}

.mini-bar span {
  display: block;
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 999px;
  margin: 0;
}

.mini-chart {
  width: 100%;
  height: 56px;
  display: block;
}

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
  padding: 6px 8px;
  background: #FAF8F4;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
}

.mini-row strong.ok {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--status-green);
}

.p-metric-chip {
  position: absolute;
  top: 14px;
  left: 16px;
  bottom: auto;
  z-index: 10;
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--gold-ink);
  box-shadow: 0 4px 12px rgba(70, 52, 24, 0.1);
}

.p-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.p-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.p-cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-ink);
}

.p-arrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}

.p-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--text-primary);
}

.p-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 14px;
  flex: 1;
}

/* Case Study Modal Styles */
.modal-box.cs-modal-box {
  width: min(92%, 680px);
  max-height: 90vh;
  padding: 24px 28px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-box.cs-modal-box::-webkit-scrollbar {
  display: none;
}

.cs-modal-box .modal-header {
  margin-bottom: 16px;
}

.cs-gallery-wrap {
  margin-bottom: 16px;
}

.cs-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cs-gallery::-webkit-scrollbar {
  display: none;
}

.cs-gallery img {
  height: 175px;
  width: auto;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-gold);
  object-fit: cover;
  scroll-snap-align: start;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(70, 52, 24, 0.12);
}

.cs-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.cs-metric {
  background: var(--bg-light);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
}

.cs-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-ink);
}

.cs-metric span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.cs-blocks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.cs-block {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-light);
  border: 1px solid var(--border-subtle);
}

.cs-block-highlight {
  background: rgba(222, 195, 154, 0.16);
  border-color: var(--border-gold);
}

.cs-block-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold-ink);
  margin-bottom: 6px;
}

.cs-block p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.cs-stack-wrap {
  margin-bottom: 16px;
}

/* ==========================================================================
   HOW WE SHIP (4-STEP DELIVERY PROCESS)
   ========================================================================== */

.section-process {
  position: relative;
  z-index: 1;
  padding: 30px 24px 90px;
  overflow-x: clip;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.process-step {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 20px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px -15px rgba(90, 68, 35, 0.08);
  opacity: calc(0.1 + 0.9 * var(--process-enter, 1));
  transform: translate3d(0, calc((1 - var(--process-enter, 1)) * 52px), 0) scale(calc(0.92 + 0.08 * var(--process-enter, 1)));
  will-change: transform, opacity;
  transition: border-color 0.35s ease,
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.35s ease;
}

.process-step::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 55%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(222, 195, 154, 0.24) 50%,
    transparent 100%
  );
  transform: translateX(-160%) skewX(-20deg);
  pointer-events: none;
  z-index: 2;
}

.process-step:hover::before {
  transform: translateX(280%) skewX(-20deg);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-step:hover .card-glow {
  opacity: 1;
}

.process-step > *:not(.card-glow) {
  position: relative;
  z-index: 1;
}

.process-step:hover {
  transform: translate3d(0, calc((1 - var(--process-enter, 1)) * 52px - 6px), 0) scale(calc(0.92 + 0.08 * var(--process-enter, 1)));
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  box-shadow: 0 26px 52px -15px rgba(90, 68, 35, 0.16),
              0 0 32px -8px rgba(201, 162, 106, 0.24);
}

.process-step .pill-item {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}

.process-step:hover .pill-item {
  transform: translateY(-2px);
}

.process-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.process-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(184, 147, 58, 0.14);
  background-origin: border-box;
  background-clip: border-box;
  border: 1px solid var(--border-gold);
  color: var(--gold-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease,
              color 0.3s ease,
              border-color 0.3s ease;
}

.process-step:hover .process-num {
  transform: rotate(-6deg) scale(1.08);
  background: var(--gradient-gold);
  background-origin: border-box;
  background-clip: border-box;
  border-color: transparent;
  color: #FFFFFF;
}

.process-time {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.process-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--text-primary);
}

.process-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 20px;
  flex: 1;
}

.process-deliverable {
  display: flex;
  flex-wrap: wrap;
}

html.dark-theme .process-step {
  box-shadow: 0 12px 30px -15px rgba(0, 0, 0, 0.55);
}

html.dark-theme .process-step:hover {
  box-shadow: 0 22px 44px -15px rgba(0, 0, 0, 0.72),
              0 0 26px -8px rgba(184, 147, 58, 0.18);
}

@media (max-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ARCHITECTURAL BANNER CTA SECTION
   ========================================================================== */

.section-cta {
  position: relative;
  z-index: 1;
  padding: 40px 24px 100px;
}

.cta-box {
  max-width: 1240px;
  margin: 0 auto;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(222, 195, 154, 0.28) 0%, #FFFFFF 100%);
  border: 1px solid var(--border-gold);
  padding: 70px 36px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(90, 68, 35, 0.1);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(213, 181, 122, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.cta-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--gold-ink);
  margin-bottom: 16px;
}

.cta-status-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--text-primary);
}

.cta-desc {
  font-size: 16.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 36px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */

.site-footer {
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-gold-subtle);
  padding: 60px 24px 30px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto 40px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 380px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links-group {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.f-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.f-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-ink);
  margin-bottom: 4px;
}

.f-col a {
  color: var(--text-secondary);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.f-col a:hover {
  color: var(--gold-ink);
}

.f-muted,
.f-address {
  font-style: normal;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.copy-text {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #FFFFFF;
  background-origin: border-box;
  background-clip: border-box;
  border: 1px solid var(--border-gold-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-ink);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  transform: translate(var(--tx, 0px), var(--ty, 0px));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.25s ease,
              color 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}

.footer-socials a svg {
  overflow: visible;
  display: block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-socials a:hover {
  background: var(--gradient-gold);
  background-origin: border-box;
  background-clip: border-box;
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(161, 119, 57, 0.35);
}

.footer-socials a:hover svg {
  transform: scale(1.12);
}

/* ==========================================================================
   Custom Trailing Gold Multiply Cursor (Light Mode)
   ========================================================================== */

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  background: var(--gold-champagne);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transform: translate3d(-200px, -200px, 0);
  transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              margin 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.3s ease;
}

body.has-pointer .cursor {
  opacity: 0.75;
}

body.is-hover .cursor {
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  opacity: 0.4;
  background: var(--gold-highlight);
}

/* ==========================================================================
   Project Scope Modal Drawer
   ========================================================================== */

.modal-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: none;
  background: transparent;
  padding: 0;
  overflow: hidden;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}

.modal-dialog[open] {
  display: flex;
}

.modal-dialog::backdrop {
  background: transparent;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal-box {
  position: relative;
  background: var(--bg-surface-elevated);
  width: min(92%, 580px);
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 24px;
  padding: 34px;
  border: 1px solid var(--border-gold);
  box-shadow: 0 30px 80px rgba(40, 30, 15, 0.22), 0 0 30px rgba(201, 162, 106, 0.15);
  z-index: 2;
  animation: modal-enter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-box::-webkit-scrollbar {
  display: none;
}

@keyframes modal-enter {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-ink);
  letter-spacing: 0.12em;
}

.modal-title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--gold-core);
  color: #161513;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pill-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-check {
  cursor: pointer;
}

.pill-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-check span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.pill-check input:checked + span {
  background: rgba(201, 162, 106, 0.2);
  color: var(--gold-ink);
  border-color: var(--gold-deep);
  font-weight: 600;
}

.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-light);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}

.modal-form input:focus,
.modal-form textarea:focus {
  border-color: var(--gold-deep);
  background: #FFFFFF;
}

.modal-actions {
  margin-top: 6px;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  min-height: 50px;
}

/* ==========================================================================
   Keyframes
   ========================================================================== */

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .bento-card, .bento-card-large {
    grid-column: span 12;
  }

  .engine-stage {
    min-height: 440px;
    padding: 26px 14px 36px;
    gap: 20px;
  }

  .showcase-arena {
    flex-direction: column;
    gap: 20px;
  }

  .device-browser {
    width: 100%;
    margin-right: 0;
  }

  .device-phone {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(86%, 260px);
  }

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

  .gold-badge {
    width: 92px;
    height: 92px;
    right: 16px;
    top: auto;
    bottom: 16px;
  }

  .floating-pill {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 12px 16px;
    gap: 12px;
  }

  .trust-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 0 16px 28px;
    padding: 20px 16px;
  }

  .trust-metric:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .brand-link {
    gap: 9px;
  }

  .brand-emblem {
    height: 30px;
  }

  .brand-text {
    font-size: 16px;
  }

  .header-actions .btn {
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .p-preview-phones,
  .p-preview-browser {
    min-height: 220px;
    padding: 42px 12px 16px;
  }

  .p-phone-frame {
    width: 74px;
    height: auto;
  }

  .p-phone-center {
    width: 86px;
    height: auto;
  }

  .form-row,
  .cs-metrics-row {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 40px;
  }

  .cta-box {
    padding: 44px 20px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (hover: none) {
  .cursor {
    display: none;
  }
}

/* ==========================================================================
   Theme Toggle Button & Dark Mode Support (html.dark-theme)
   ========================================================================== */

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
  background: #FFFFFF;
  color: var(--gold-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease;
}

.theme-toggle:hover {
  background: #FDF9F2;
  border-color: var(--gold-deep);
}

.theme-toggle .icon-sun {
  display: none;
}

html.dark-theme .theme-toggle .icon-moon {
  display: none;
}

html.dark-theme .theme-toggle .icon-sun {
  display: block;
}

@media (max-width: 600px) {
  .theme-toggle {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }
}

html.dark-theme {
  --gold-ink:       #E7D39F;
  --gradient-gold-text: linear-gradient(135deg, #E7D39F 0%, #D4B96E 50%, #B8933A 100%);

  --bg-light:       #090A0D;
  --bg-surface:     #0F1116;
  --bg-surface-elevated: #151820;
  --bg-card:        #12141A;
  --bg-card-hover:  #181B23;

  --text-primary:   #F5F5F7;
  --text-secondary: #A6ACB8;
  --text-muted:     #707687;
  --border-gold:    rgba(201, 162, 106, 0.24);
  --border-gold-subtle: rgba(201, 162, 106, 0.13);
  --border-subtle:  rgba(255, 255, 255, 0.08);

  --status-green:   #10B981;
}

html.dark-theme .glow-1 {
  background: radial-gradient(circle, rgba(201, 162, 106, 0.18) 0%, rgba(9, 10, 13, 0) 70%);
}

html.dark-theme .glow-2 {
  background: radial-gradient(circle, rgba(161, 119, 57, 0.12) 0%, rgba(9, 10, 13, 0) 70%);
}

html.dark-theme .grid-backdrop {
  background-image:
    linear-gradient(to right, rgba(201, 162, 106, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201, 162, 106, 0.04) 1px, transparent 1px);
}

html.dark-theme .site-header {
  background: rgba(9, 10, 13, 0.78);
}

html.dark-theme .theme-toggle {
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-champagne);
}

html.dark-theme .theme-toggle:hover {
  background: rgba(201, 162, 106, 0.14);
  border-color: var(--gold-champagne);
}

html.dark-theme .btn-outline {
  background: rgba(18, 20, 26, 0.9);
  color: var(--text-primary);
}

html.dark-theme .btn-outline:hover {
  background: rgba(201, 162, 106, 0.12);
  color: #FFFFFF;
}

html.dark-theme .gold-highlight::before {
  background: rgba(201, 162, 106, 0.28);
}

/* Dark Stage & 3D Showcase */
html.dark-theme .engine-stage {
  background: radial-gradient(circle at 50% 20%, #151821 0%, #0C0E13 100%);
  box-shadow: 0 32px 80px -25px rgba(0, 0, 0, 0.75),
              0 0 40px -10px rgba(201, 162, 106, 0.15);
}

html.dark-theme .showcase-switcher {
  background: rgba(14, 16, 22, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

html.dark-theme .s-tab.active {
  background: var(--gradient-gold);
  color: #090A0D;
}

html.dark-theme .s-tab.active .s-dot {
  background: #090A0D;
  box-shadow: none;
}

html.dark-theme .device-browser,
html.dark-theme .p-browser-frame {
  background: rgba(14, 16, 22, 0.94);
  box-shadow: 0 28px 60px -15px rgba(0, 0, 0, 0.8);
}

html.dark-theme .browser-bar,
html.dark-theme .p-browser-bar {
  background: rgba(22, 25, 34, 0.9);
}

html.dark-theme .browser-url,
html.dark-theme .p-browser-url,
html.dark-theme .ui-chart-box,
html.dark-theme .ui-stat-card,
html.dark-theme .ui-row,
html.dark-theme .p-browser-chart,
html.dark-theme .mini-row {
  background: rgba(9, 10, 13, 0.75);
}

html.dark-theme .phone-screen-wrap {
  background: #12141A;
}

html.dark-theme .ph-compose-hero,
html.dark-theme .ph-act,
html.dark-theme .ph-item {
  background: #181B23;
}

html.dark-theme .ph-progress {
  background: rgba(255, 255, 255, 0.08);
}

html.dark-theme .gold-badge,
html.dark-theme .floating-pill {
  background: rgba(14, 16, 22, 0.9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

html.dark-theme .ring-svg text {
  fill: #E7D39F;
}

/* Dark Trust Metrics */
html.dark-theme .trust-metrics-bar {
  background: var(--bg-card);
  box-shadow: 0 12px 32px -15px rgba(0, 0, 0, 0.55);
}

/* Dark Bento & Pills */
html.dark-theme .bento-card {
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.55);
}

html.dark-theme .bento-card:hover {
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7),
              0 0 28px -10px rgba(201, 162, 106, 0.18);
}

html.dark-theme .card-glow {
  background: radial-gradient(
    420px circle at var(--bx, 50%) var(--by, 0%),
    rgba(201, 162, 106, 0.18),
    transparent 65%
  );
}

html.dark-theme .bento-card::before,
html.dark-theme .process-step::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(222, 195, 154, 0.1) 50%,
    transparent 100%
  );
}

html.dark-theme .pill-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.09);
  color: #C0C5D2;
}

html.dark-theme .pill-item.pill-featured {
  background: rgba(201, 162, 106, 0.14);
  border-color: var(--border-gold);
  color: var(--gold-highlight);
}

html.dark-theme .highlight-gold {
  color: var(--gold-highlight);
  background: linear-gradient(180deg, transparent 60%, rgba(201, 162, 106, 0.25) 60%);
}

/* Dark Portfolio Section */
html.dark-theme .p-filter {
  background: var(--bg-card);
}

html.dark-theme .p-filter.active {
  background: var(--gradient-gold);
  color: #090A0D;
  border-color: transparent;
}

html.dark-theme .portfolio-card,
html.dark-theme .portfolio-empty {
  background: var(--bg-card);
  box-shadow: 0 12px 32px -15px rgba(0, 0, 0, 0.6);
}

html.dark-theme .p-preview,
html.dark-theme .p-preview-phones,
html.dark-theme .p-preview-browser {
  background: radial-gradient(circle at 50% 20%, #171A23 0%, #0D0F14 100%);
}

html.dark-theme .p-metric-chip {
  background: rgba(14, 16, 22, 0.92);
  color: var(--gold-highlight);
}

/* Dark CTA, Footer, Cursor & Modals */
html.dark-theme .cta-box {
  background: linear-gradient(135deg, rgba(201, 162, 106, 0.14) 0%, rgba(14, 16, 22, 0.9) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

html.dark-theme .site-footer {
  background: #07080A;
}

html.dark-theme .footer-socials a {
  background: rgba(255, 255, 255, 0.03);
  color: var(--gold-champagne);
}

html.dark-theme .footer-socials a:hover {
  background: var(--gradient-gold);
  color: #FFFFFF;
}

html.dark-theme .cursor {
  mix-blend-mode: screen;
  box-shadow: 0 0 20px 2px rgba(217, 181, 122, 0.6);
}

html.dark-theme .modal-backdrop {
  background: transparent;
}

html.dark-theme .modal-box {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(201, 162, 106, 0.16);
}

html.dark-theme .modal-form input[type="text"],
html.dark-theme .modal-form input[type="email"],
html.dark-theme .modal-form textarea {
  background: rgba(10, 11, 15, 0.8);
}

html.dark-theme .modal-form input:focus,
html.dark-theme .modal-form textarea:focus {
  background: rgba(10, 11, 15, 0.95);
}

/* ==========================================================================
   Scroll Progress Bar & Scroll-Triggered Reveal Animations
   ========================================================================== */

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2.5px;
  background: var(--gradient-gold);
  transform-origin: left center;
  transform: scaleX(var(--scroll-progress, 0));
  will-change: transform;
  pointer-events: none;
  z-index: 5;
}

.anim .scroll-reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1) var(--sd, 0ms),
              transform 0.78s cubic-bezier(0.22, 1, 0.36, 1) var(--sd, 0ms);
  will-change: opacity, transform;
}

.anim .scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   Scroll-to-Top Button with Circular Gold Progress Ring
   ========================================================================== */

.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.94);
  color: var(--gold-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px -6px rgba(70, 52, 24, 0.22),
              0 0 0 1px var(--border-gold-subtle);
  opacity: 0;
  pointer-events: none;
  transform: translate(var(--tx, 0px), calc(var(--ty, 0px) + 20px)) scale(0.85);
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease,
              background-color 0.25s ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(1);
}

.scroll-top-btn:hover {
  background: #FFFFFF;
  box-shadow: 0 16px 34px -6px rgba(161, 119, 57, 0.32),
              0 0 0 1px var(--border-gold);
}

.scroll-top-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.scroll-top-ring .ring-track {
  fill: none;
  stroke: var(--border-gold-subtle);
  stroke-width: 2.2;
}

.scroll-top-ring .ring-fill {
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 132;
  stroke-dashoffset: calc(132 * (1 - var(--scroll-progress, 0)));
  transition: stroke-dashoffset 0.08s linear;
}

.scroll-top-arrow {
  position: relative;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-top-btn:hover .scroll-top-arrow {
  transform: translateY(-3px);
}

html.dark-theme .scroll-top-btn {
  background: rgba(18, 20, 26, 0.9);
  color: var(--gold-champagne);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.65),
              0 0 0 1px var(--border-gold-subtle);
}

html.dark-theme .scroll-top-btn:hover {
  background: rgba(24, 27, 35, 0.98);
  box-shadow: 0 16px 34px -6px rgba(201, 162, 106, 0.25),
              0 0 0 1px var(--border-gold);
}

html.dark-theme .scroll-top-ring .ring-fill {
  stroke: var(--gold-champagne);
}

@media (max-width: 600px) {
  .scroll-top-btn {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   Reduced Motion Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    display: none !important;
  }

  .anim .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .ring-svg,
  .cursor-caret,
  .pulse-beacon,
  .pill-pulse,
  .live-dot,
  .spotlight-slide.active {
    animation: none !important;
  }

  .cursor {
    display: none !important;
  }

  .word > span,
  .gold-highlight::before,
  .reveal {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
