/* ==========================================================================
   PLINTH Visual Studio Portfolio Styles — Upgraded Awwwards-Level Edition
   Design Language: Dim Studio at 2 AM (Expensive, Intentional, Quiet Confidence)
   ========================================================================== */

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

:root {
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Color Palette */
  --bg-color-base: #0d0d0d;
  --text-heading: rgba(255, 255, 255, 0.88);
  --text-body: rgba(255, 255, 255, 0.45);
  --text-label: rgba(255, 255, 255, 0.22);
  --text-em: rgba(255, 255, 255, 0.55);
  
  --border-color: rgba(255, 255, 255, 0.07);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-radius: 14px;
}

/* Base Settings */
html {
  background-color: var(--bg-color-base);
}

/* Enable smooth scrolling hook for Lenis */
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: hidden;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  
  /* Base Background: Deep dark canvas (glowing halos animated dynamically on top) */
  background: #060609;
}

/* 1b. Ambient Halo Background */
#halo-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7; /* Soft global opacity */
  mix-blend-mode: screen;
}

.halo-circle {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

/* Typography Rules */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 300; /* Strict requirement: no font weight above 400 */
  color: var(--text-heading);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 6.5vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

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

/* Emphasized Text: Muted, floating, uncertain tone */
em {
  font-style: italic;
  font-weight: 300;
  color: var(--text-em);
}

/* Labels: 11px, uppercase, letter-spacing 0.14em */
.section-label {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-label);
  display: block;
  margin-bottom: 1.25rem;
}

/* Nav Links & CTA Labels */
.nav-link, .card-tag, .footer-link, .hero-tag {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Hide scrollbar since Lenis does smooth scroll */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #0a0a0f;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Awwwards Interactive Layer Features
   ========================================================================== */

/* 1. Grain Noise Overlay */
.noise-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* 2. macOS Cursor Pack */
html, body {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 3V18.2L8.3 14.4L11.2 21.2L13.8 20.1L10.8 13.3H16.5L4.5 3Z' fill='%23000000' stroke='%23ffffff' stroke-width='1.5' stroke-linejoin='miter'/%3E%3C/svg%3E") 4 3, auto;
}

a, button, [role="button"], input[type="submit"], input[type="button"], .btn, .work-card, .top-nav-link, .top-nav-cta, #close-case, #next-project-btn, .footer-link, .nav-btn {
  cursor: pointer;
}

input[type="text"], input[type="email"], input[type="search"], textarea, [contenteditable="true"] {
  cursor: text;
}

/* 3. Structural Editorial Gridlines */
.grid-lines-container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1300px;
  height: 100vh;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 1;
  padding: 0 2rem;
}

.grid-line {
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.025);
}

/* 4. Text Reveal Mask Utilities */
.reveal-line-wrapper {
  overflow: hidden;
  display: block;
}

.reveal-line {
  display: inline-block;
  transform: translateY(105%);
  will-change: transform;
}

.reveal-char-wrapper {
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
}

.reveal-char {
  display: inline-block;
  transform: translateY(105%);
  will-change: transform;
}

/* 5. Awwwards Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #060608;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.preloader-inner {
  width: 100%;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.preloader-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  opacity: 0;
  transform: translateY(80px);
  will-change: transform, opacity;
  user-select: none;
}

.preloader-counter-wrapper {
  overflow: hidden;
  height: clamp(1.5rem, 5vw, 3rem);
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader-counter {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text-label);
  line-height: 1;
}

/* ==========================================================================
   Layout & Components
   ========================================================================== */

/* Floating Top Apple-Style Glassmorphic Nav */
.top-nav-container {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 9999;
  pointer-events: none; /* Allows clicks to pass through around the header */
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1.75rem;
  border-radius: 9999px; /* Pill capsule */
  background: rgba(10, 10, 15, 0.45);
  backdrop-filter: blur(28px) saturate(180%) brightness(0.95);
  -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 0 0 0.5px rgba(0, 0, 0, 0.4),
    0 16px 36px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  pointer-events: auto; /* Re-enable pointer events on the nav bar */
  position: relative;
  overflow: visible;
}

.top-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-heading);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.top-nav-logo-svg {
  width: 16px;
  height: 16px;
  color: var(--text-heading);
}

.top-nav-links {
  display: flex;
  position: relative;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 9999px;
}

.top-nav-link {
  color: var(--text-body);
  text-decoration: none;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.top-nav-link:hover,
.top-nav-link.is-active {
  color: var(--text-heading);
}

/* Sliding active pill indicator */
.nav-active-indicator {
  position: absolute;
  height: calc(100% - 8px);
  top: 4px;
  left: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 9999px;
  pointer-events: none;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  opacity: 0;
}

.top-nav-cta {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-heading);
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.top-nav-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Mobile Responsive adjustment */
@media (max-width: 600px) {
  .top-nav-container {
    top: 1rem;
    width: 95%;
  }
  .top-nav {
    padding: 0.5rem 1rem;
  }
  .top-nav-logo span {
    display: none; /* Hide brand name text, show only logo symbol on tiny screens */
  }
  .top-nav-links {
    gap: 0.15rem;
    padding: 2px;
  }
  .top-nav-link {
    font-size: 9px;
    padding: 0.4rem 0.75rem;
  }
  .top-nav-cta {
    font-size: 9px;
    padding: 0.4rem 0.75rem;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
}

.nav-cta {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-heading);
  border: 1px solid var(--border-color);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-cta:hover {
  background: var(--card-bg);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-primary {
  color: var(--text-heading);
  border: 1px solid var(--border-color);
}

.btn-primary:hover {
  background: var(--card-bg);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-pill {
  color: var(--text-heading);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.01);
  padding: 1rem 2.5rem;
}

.btn-pill:hover {
  background: var(--card-bg);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
  z-index: 2;
  
  /* Layered Hero Glow: Subtle violet glow to hint at depth */
  background: radial-gradient(circle at 50% 35%, rgba(81, 74, 157, 0.08) 0%, transparent 65%);
}

.hero-container {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 760px;
}

.hero-title {
  font-size: clamp(2.25rem, 6vw + 0.5rem, 5.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
}

.hero-description {
  font-size: clamp(0.95rem, 1vw + 0.25rem, 1.2rem);
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 2.5rem;
}

.hero-video-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.hero-showreel-card {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16 / 10;
  position: relative;
  cursor: pointer;
  overflow: visible; /* Let the glow bleed out */
}

.ambilight-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ambilight-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18); /* spread */
  filter: blur(55px) saturate(1.8) brightness(1.5); /* blur, saturate, brightness */
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.ambilight-glow.is-playing {
  opacity: 0.9;
}

.ambilight-video-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); /* Luxury shadow */
  transition: border-color 0.4s ease;
  z-index: 1;
}

.hero-showreel-card:hover .ambilight-video-container {
  border-color: rgba(255, 255, 255, 0.18);
}

.ambilight-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.1) contrast(1.02) brightness(0.95);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hero-showreel-card:hover .ambilight-video {
  transform: scale(1.03);
}

.video-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 10, 15, 0) 0%, rgba(10, 10, 15, 0.45) 100%);
  z-index: 2;
  pointer-events: none;
}



/* Looping Marquee */
.marquee-section {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
  overflow: hidden;
  background: rgba(10, 10, 15, 0.2);
  position: relative;
  z-index: 2;
}

.marquee-wrapper {
  display: flex;
  width: 100%;
}

.marquee-content {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: marquee-scroll 45s linear infinite;
  padding-right: 4rem;
}

.marquee-content span {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-label);
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Section Common Styles */
.section-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 8rem 2rem;
  position: relative;
  z-index: 2;
}

.section-header {
  margin-bottom: 5rem;
  max-width: 650px;
}

.section-title {
  margin-top: 0.5rem;
}

/* Work Grid */
.work {
  border-bottom: 1px solid var(--border-color);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.work-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s ease;
  cursor: pointer;
}

.work-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Upgraded Parallax Image Wrapper */
.card-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.card-image {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%; /* Taller to allow parallax translation */
  object-fit: cover;
  will-change: transform;
  filter: grayscale(0.2) contrast(1.05) brightness(0.9);
}

.card-meta {
  padding: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 1.15rem;
  color: var(--text-heading);
}

.card-tag {
  color: var(--text-label);
}

/* Principles Grid */
.principles {
  border-bottom: 1px solid var(--border-color);
}

/* ComfyUI Node-Based Workflow Styling */
.node-canvas-container {
  position: relative;
  width: 100%;
  margin-top: 3.5rem;
  padding: 4rem 2rem;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  overflow-x: auto; /* Allow horizontal scroll for canvas representation */
  scrollbar-width: thin; /* Show thin scrollbar on Firefox */
  scrollbar-color: rgba(255, 255, 255, 0.1) rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
  cursor: grab;
  user-select: none;
}

.node-canvas-container:active {
  cursor: grabbing;
}

.node-canvas-container::-webkit-scrollbar {
  display: block; /* Show scrollbar Chrome/Safari */
  height: 6px;
}

.node-canvas-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
  border-radius: 999px;
}

.node-canvas-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  transition: background 0.3s;
}

.node-canvas-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.node-canvas-grid {
  display: grid;
  grid-template-columns: 20px 1fr 50px 1fr 50px 1fr 50px 1fr 20px;
  align-items: start; /* Align tops of nodes to keep sockets at identical height */
  position: relative;
  width: 100%;
  min-width: 1150px; /* Locked desktop proportions that fit on standard screens */
}

.side-wire-col {
  width: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 2.2rem; /* Matches ports container height */
  margin-top: 2.4rem; /* Aligns with ports container starting position */
  align-self: start; /* Enforce straight top level alignment */
}

/* Base Node Styling */
.workflow-node {
  position: relative;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: visible; /* Need overflow visible so sockets can protrude */
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: border-color 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, border-color, box-shadow;
  min-width: 220px; /* Compacted node width to comfortably fit standard screen widths */
  align-self: start; /* Enforce straight top level alignment */
}

.workflow-node:hover {
  transform: translateY(-2px);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Node Headers and Themes */
.node-header {
  display: flex;
  align-items: center;
  height: 2.4rem; /* Compact fixed header height */
  padding: 0 0.8rem; /* Compact padding */
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  gap: 0.5rem;
  user-select: none;
}

.node-status-dot {
  width: 5px; /* Compact status dot */
  height: 5px;
  border-radius: 50%;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  background-color: rgba(255, 255, 255, 0.2);
}

.node-num {
  font-size: 10px; /* Compact number font size */
  font-weight: 400;
  opacity: 0.5;
  letter-spacing: 0.05em;
}

.node-title {
  font-size: 14px; /* Compact title font size */
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text-heading);
}

/* Theme Configurations */
.node-purple { --theme-color: #b388ff; }
.node-blue   { --theme-color: #82b1ff; }
.node-orange { --theme-color: #ff8a80; }
.node-green  { --theme-color: #b9f6ca; }

.node-purple .node-header {
  background: rgba(179, 136, 255, 0.08);
  border-bottom: 1px solid rgba(179, 136, 255, 0.2);
}
.node-blue .node-header {
  background: rgba(130, 177, 255, 0.08);
  border-bottom: 1px solid rgba(130, 177, 255, 0.2);
}
.node-orange .node-header {
  background: rgba(255, 138, 128, 0.08);
  border-bottom: 1px solid rgba(255, 138, 128, 0.2);
}
.node-green .node-header {
  background: rgba(185, 246, 202, 0.08);
  border-bottom: 1px solid rgba(185, 246, 202, 0.2);
}

/* Active Highlight States */
.workflow-node.is-active {
  border-color: var(--theme-color);
  box-shadow: 0 0 25px rgba(var(--active-glow-rgb, 255, 255, 255), 0.15),
              0 10px 30px rgba(0, 0, 0, 0.5);
}
.node-purple.is-active { 
  border-color: rgba(179, 136, 255, 0.5);
  box-shadow: 0 0 20px rgba(179, 136, 255, 0.15), 0 10px 30px rgba(0, 0, 0, 0.5);
}
.node-blue.is-active { 
  border-color: rgba(130, 177, 255, 0.5);
  box-shadow: 0 0 20px rgba(130, 177, 255, 0.15), 0 10px 30px rgba(0, 0, 0, 0.5);
}
.node-orange.is-active { 
  border-color: rgba(255, 138, 128, 0.5);
  box-shadow: 0 0 20px rgba(255, 138, 128, 0.15), 0 10px 30px rgba(0, 0, 0, 0.5);
}
.node-green.is-active { 
  border-color: rgba(185, 246, 202, 0.5);
  box-shadow: 0 0 20px rgba(185, 246, 202, 0.15), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.workflow-node.is-active .node-status-dot {
  background-color: var(--theme-color);
  box-shadow: 0 0 8px var(--theme-color);
  animation: pulseDot 2s infinite alternate;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 1; }
}

/* Ports & Sockets Layout */
.node-ports-container {
  display: flex;
  justify-content: space-between;
  height: 2.2rem; /* Precise fixed height aligning with connector columns */
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.01);
  position: relative;
}

.node-ports-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  width: 50%;
}

.node-ports-column.inputs {
  align-items: flex-start;
}

.node-ports-column.outputs {
  align-items: flex-end;
}

.node-port-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 0.6rem; /* Compact padding */
}

.port-label {
  font-size: 10px; /* Compact port label text size */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-label);
  user-select: none;
  white-space: nowrap; /* Prevents text wrapping */
}

.port-socket {
  width: 8px; /* Compact socket size */
  height: 8px; /* Compact socket size */
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 15, 20, 1);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.inputs .port-socket {
  left: 0;
  margin-left: -4px; /* Protrudes half out the card */
}

.outputs .port-socket {
  right: 0;
  margin-right: -4px; /* Protrudes half out the card */
}

/* Port sockets match node color */
.node-purple .port-socket { border-color: rgba(179, 136, 255, 0.4); }
.node-blue .port-socket   { border-color: rgba(130, 177, 255, 0.4); }
.node-orange .port-socket { border-color: rgba(255, 138, 128, 0.4); }
.node-green .port-socket  { border-color: rgba(185, 246, 202, 0.4); }

.node-purple.is-active .port-socket { background: #b388ff; border-color: #b388ff; box-shadow: 0 0 8px #b388ff; }
.node-blue.is-active .port-socket   { background: #82b1ff; border-color: #82b1ff; box-shadow: 0 0 8px #82b1ff; }
.node-orange.is-active .port-socket { background: #ff8a80; border-color: #ff8a80; box-shadow: 0 0 8px #ff8a80; }
.node-green.is-active .port-socket  { background: #b9f6ca; border-color: #b9f6ca; box-shadow: 0 0 8px #b9f6ca; }

/* Node Body Content */
.node-body {
  padding: 0.9rem; /* Compact padding */
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* Compact gap */
}

.node-desc {
  font-size: 12px; /* Compact desc font size */
  line-height: 1.5; /* Compact line height */
  color: var(--text-body);
  font-weight: 300;
  margin: 0;
}

.node-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.node-tag {
  font-size: 9px; /* Compact tag font size */
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-label);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.5rem; /* Compact padding */
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}

/* Node Connectors / SVG Wires */
.node-connector-col {
  width: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 2.2rem; /* Matches ports container height */
  margin-top: 2.4rem; /* Aligns with ports container starting position */
  align-self: start; /* Enforce straight top level alignment */
}

.node-connector-svg {
  width: 50px;
  height: 2.2rem; /* Scaled up height */
  overflow: visible;
  display: block;
}

.wire-bg {
  stroke: rgba(255, 255, 255, 0.06); /* Slightly more visible wire background */
  stroke-width: 5; /* Thicker backdrop wire */
  fill: none;
  stroke-linecap: round;
}

.wire-fg {
  stroke-width: 3.2; /* Thicker wire path */
  fill: none;
  stroke-linecap: round;
  opacity: 0.45; /* Much brighter inactive wire path for high visibility */
  transition: opacity 0.5s ease, stroke-width 0.5s ease, filter 0.5s ease;
}

.wire-1-2 { stroke: #b388ff; }
.wire-2-3 { stroke: #82b1ff; }
.wire-3-4 { stroke: #ff8a80; }

/* Active flowing wires - Thick and Glowing */
.wire-fg.is-active {
  opacity: 1.0; /* Full brightness active */
  stroke-width: 5; /* Strong, thicker wire path */
}

.wire-1-2.is-active {
  filter: drop-shadow(0 0 6px #b388ff) drop-shadow(0 0 12px #b388ff);
}
.wire-2-3.is-active {
  filter: drop-shadow(0 0 6px #82b1ff) drop-shadow(0 0 12px #82b1ff);
}
.wire-3-4.is-active {
  filter: drop-shadow(0 0 6px #ff8a80) drop-shadow(0 0 12px #ff8a80);
}
.wire-out.is-active {
  filter: drop-shadow(0 0 6px #b9f6ca) drop-shadow(0 0 12px #b9f6ca);
}

/* Ambient running current dash pulse */
.wire-fg.ambient-flow {
  stroke-dasharray: 8 16;
  animation: flowCurrent 2s linear infinite;
  opacity: 0.65; /* Brighter default flow pulse */
}

.wire-fg.is-active.ambient-flow {
  opacity: 1.0;
  stroke-width: 5.2;
}

@keyframes flowCurrent {
  to {
    stroke-dashoffset: -48;
  }
}

/* Signal Pulse Dot */
.signal-dot {
  opacity: 0;
  transform-origin: center;
  filter: drop-shadow(0 0 5px currentColor);
  transition: opacity 0.3s ease;
}

.signal-dot.is-active {
  opacity: 1;
  filter: drop-shadow(0 0 6px currentColor) drop-shadow(0 0 12px currentColor);
}

/* Mobile & Tablet Responsive Stacking */
@media (max-width: 1024px) {
  /* Retain larger spacing with container scrollbar on tablet view */
}

@media (max-width: 768px) {
  .node-canvas-container {
    padding: 3rem 1.5rem;
    margin-top: 2rem;
  }
  
  .node-canvas-grid {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    align-items: center;
    min-width: auto;
  }
  
  .node-connector-col, .side-wire-col {
    display: none;
  }
  .workflow-node {
    width: 100%;
    max-width: 380px;
  }
  
  /* Vertical visual connections on mobile */
  .workflow-node:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: -3.5rem;
    left: 50%;
    width: 1px;
    height: 3.5rem;
    background: linear-gradient(to bottom, var(--theme-color) 0%, rgba(255, 255, 255, 0.05) 100%);
    transform: translateX(-50%);
    z-index: 1;
  }
  
  .workflow-node:not(:last-child).is-active::after {
    width: 2px;
    background: linear-gradient(to bottom, var(--theme-color) 0%, rgba(var(--active-glow-rgb, 255, 255, 255), 0.1) 100%);
    filter: drop-shadow(0 0 2px var(--theme-color));
  }
}

/* Footer Section */
.footer {
  padding: 8rem 2rem 4rem;
  position: relative;
  z-index: 2;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
}

.footer-cta-wrapper {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-title {
  margin: 1rem 0 2.5rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-label);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  color: var(--text-label);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--text-heading);
}

/* ==========================================================================
   Anti-Gravity Float Keyframe Animations
   ========================================================================== */

/* floatA: rising 16px over 5 seconds */
@keyframes floatA {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-16px);
  }
}

/* floatB: rising 10px over 6.5 seconds */
@keyframes floatB {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}

/* floatC: rising 22px over 4.5 seconds */
@keyframes floatC {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-22px);
  }
}

.float-a {
  animation: floatA 5s ease-in-out infinite alternate;
}

.float-b {
  animation: floatB 6.5s ease-in-out infinite alternate;
}

.float-c {
  animation: floatC 4.5s ease-in-out infinite alternate;
}
/* ==========================================================================
   Page Transitions & Case Study View
   ========================================================================== */

/* Page Transition Overlay */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #08080c;
  z-index: 99998;
  transform: translateY(100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.transition-logo {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--text-heading);
  text-transform: uppercase;
}

/* Case Study Layout */
.case-study-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 10rem 2rem 6rem;
  position: relative;
  z-index: 2;
}

.case-header {
  margin-bottom: 5rem;
}

.btn-back {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  color: var(--text-heading);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.btn-back:hover {
  background: var(--card-bg);
  border-color: rgba(255, 255, 255, 0.15);
}

.case-hero {
  margin-bottom: 5rem;
}

.case-title {
  font-size: clamp(2.25rem, 6.5vw, 4.8rem);
  font-weight: 300;
  color: var(--text-heading);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 3.5rem;
}

.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 2.25rem 0;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meta-label {
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-label);
}

.meta-value {
  font-size: 14px;
  color: var(--text-heading);
  font-weight: 300;
}

.case-media-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-color);
  margin-bottom: 6rem;
  background: var(--card-bg);
}

.case-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.05) brightness(0.9);
}

.case-content {
  max-width: 760px;
  margin: 0 auto 8rem;
}

.case-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.case-paragraph-lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: var(--text-heading);
  font-weight: 300;
}

.case-paragraph {
  font-size: clamp(0.95rem, 1.25vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-body);
  font-weight: 300;
}

.case-next-project-section {
  border-top: 1px solid var(--border-color);
  padding: 6rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.next-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--text-heading);
  margin-top: 1rem;
  transition: color 0.3s, transform 0.3s;
}

.next-title:hover {
  color: var(--text-em);
}

@media (max-width: 768px) {
  .case-meta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .case-study-container {
    padding: 8rem 1.5rem 4rem;
  }
  .case-media-wrapper {
    margin-bottom: 4rem;
  }
  .case-content {
    margin-bottom: 5rem;
  }
}



/* ==========================================================================
   Responsive Settings
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-video-container {
    justify-content: center;
    margin-top: 1.5rem;
  }
  .hero-showreel-card {
    max-width: 100%;
  }
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Custom cursor is disabled on touch-enabled devices for better UX */
  #custom-cursor {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* simple mobile nav: hide links, keep logo and CTA */
  }
  .work-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .section-container {
    padding: 5rem 1.5rem;
  }
  .footer {
    padding: 6rem 1.5rem 3rem;
  }
  .grid-lines-container {
    padding: 0 1.5rem;
  }
}

/* ==========================================================================
   Testimonials Section (Aceternity UI Animated Testimonials Style)
   ========================================================================== */
.testimonials {
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.testimonials-image-stack {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  perspective: 1000px;
}

.testimonial-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  transform-origin: bottom center;
  will-change: transform, opacity;
  background: #0a0a0f;
  border: 1px solid var(--border-color);
}

.testimonial-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  filter: grayscale(0.2) contrast(1.05) brightness(0.95);
}

.testimonial-logo-fit {
  object-fit: contain !important;
  padding: 3.5rem; /* Elegant padding to prevent cropping and center it */
}

.testimonials-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  min-height: 320px;
}

.testimonial-quote-wrapper {
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
  min-height: 120px;
}

.testimonial-quote {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 1.6;
  font-weight: 300;
  color: var(--text-heading);
}

.quote-word {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.testimonial-meta {
  margin-bottom: 2.5rem;
  will-change: transform, opacity;
}

.testimonial-name {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

.testimonial-role {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-label);
  margin-top: 0.25rem;
}

.testimonials-nav {
  display: flex;
  gap: 1.25rem;
}

.nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-label);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-heading);
}

.nav-btn svg {
  transition: transform 0.3s ease;
}

.nav-btn.prev:hover svg {
  transform: translateX(-3px);
}

.nav-btn.next:hover svg {
  transform: translateX(3px);
}

@media (max-width: 1024px) {
  .testimonials-grid {
    gap: 3.5rem;
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .testimonials-image-stack {
    max-width: 290px;
  }
  .testimonial-quote {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   Subtle Metallic Sweep Text Effect
   ========================================================================== */
.sweep-text {
  display: inline-block;
  background: linear-gradient(
    to right, 
    #9a9a9f 0%, 
    #9a9a9f 35%, 
    #ffffff 50%, 
    #9a9a9f 65%, 
    #9a9a9f 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: metallic-sweep 6s linear infinite;
  will-change: background-position;
}

.sweep-text:hover {
  animation: metallic-sweep 2.8s linear infinite;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
}

@keyframes metallic-sweep {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* ==========================================================================
   Playground / Creations Page Styles
   ========================================================================== */
.playground-hero {
  position: relative;
  padding: 7.5rem 2rem 1.5rem;
  overflow: hidden;
  z-index: 2;
}

.playground-header-centered {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.playground-typewriter-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 400;
  color: var(--text-heading);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.2em;
}

#typewriter-cursor {
  display: inline-block;
  width: 0.22em;
  height: 0.9em;
  background: linear-gradient(180deg, #ff8a80 0%, #ff3b30 100%);
  margin-left: 0.35em;
  vertical-align: middle;
  border-radius: 1px;
  box-shadow: 
    0 0 6px rgba(255, 59, 48, 0.9), 
    0 0 14px rgba(255, 59, 48, 0.5);
}

#typewriter-cursor.blink {
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

.cinematic-slideshow {
  position: relative;
  width: 100%;
  max-width: 650px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: #09090c;
  overflow: hidden;
  margin: 0;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.6), 
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.slideshow-images-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slideshow-image-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.slideshow-image-slide.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.slideshow-image-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.1) contrast(1.02) brightness(1.0);
  transform: scale(1.08);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.slideshow-image-slide.active img {
  transform: scale(1);
}

.slideshow-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 2;
  pointer-events: none;
}

.slideshow-text-container {
  position: relative;
  margin-top: 1.25rem;
  width: 100%;
  text-align: center;
  min-height: 70px; /* prevent layout shift */
  z-index: 3;
}

.slideshow-text-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slideshow-text-slide.active {
  opacity: 1;
  transform: translateY(0);
}

.slideshow-text-slide .slide-tag {
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-label); /* soft muted color for metadata style */
  display: block;
  margin-bottom: 0.4rem;
}

.slideshow-text-slide .slide-title {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 400;
  color: var(--text-heading);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.slideshow-progress-container {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  width: 220px;
  z-index: 4;
}

.slideshow-progress-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
}

.slideshow-progress-bar:hover {
  background: rgba(255, 255, 255, 0.35);
}

.slideshow-progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: #FFFFFF;
  border-radius: 999px;
  will-change: width;
}

@media (max-width: 768px) {
  .playground-hero {
    padding: 6.5rem 1.5rem 1rem;
  }
  .playground-header-centered {
    margin-bottom: 1.5rem;
  }
  .cinematic-slideshow {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
  }
  .slideshow-progress-container {
    bottom: 25px;
    width: 220px;
  }
  .slideshow-text-slide .slide-title {
    font-size: 1.2rem;
  }
}

/* Custom spec work positioning for Nike slide to preserve the runner in top-right */
.slideshow-image-slide img[src*="nike_spec"],
.slideshow-glow-slide img[src*="nike_spec"] {
  object-position: top right;
  transform-origin: top right;
}

/* Custom brightness boost for Solene spec ad to prevent details from washing out in dark tones */
.slideshow-image-slide img[src*="solene_spec"] {
  filter: grayscale(0.1) contrast(1.02) brightness(1.08);
}

/* Ambilight Slideshow Wrapper */
.ambilight-slideshow-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 1.5rem auto 0;
  overflow: visible;
  z-index: 2;
}

.slideshow-glow-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.slideshow-glow-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slideshow-glow-slide.active {
  opacity: 0.85; /* Soft glowing brightness */
}

.slideshow-glow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transform: scale(1.15); /* bleed/spread outside the main card */
  filter: blur(50px) saturate(1.8) brightness(1.4); /* blur, saturate, brightness */
}

/* ==========================================================================
   Brief Collection Modal (Interactive Contact Form)
   ========================================================================== */
.brief-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 4, 6, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  padding: 2rem 1.5rem;
}

.brief-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.brief-modal-card {
  width: 100%;
  max-width: 580px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 3.25rem 2.75rem;
  position: relative;
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brief-modal-overlay.is-active .brief-modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.brief-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--text-label);
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease, transform 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brief-modal-close:hover {
  color: var(--text-heading);
  transform: rotate(90deg);
}

.brief-modal-header {
  margin-bottom: 2.25rem;
}

.brief-modal-header h2 {
  font-size: 1.85rem;
  font-weight: 300;
  color: var(--text-heading);
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.brief-modal-header p {
  font-size: 0.95rem;
  color: var(--text-body);
  font-weight: 300;
  line-height: 1.5;
}

.brief-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-label);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-heading);
  outline: none;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.15);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.02);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none'%3E%3Cpath d='M2 4L5 7L8 4' stroke='rgba(255,255,255,0.35)' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 1rem) center;
  padding-right: 2.25rem;
}

.form-group select option {
  background-color: #0d0d13;
  color: var(--text-heading);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  max-height: 180px;
}

.form-submit-btn {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
  height: 46px;
  font-size: 11px;
}

.brief-success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0;
}

.brief-success-state h3 {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-heading);
  letter-spacing: -0.01em;
  margin: 1.5rem 0 0.5rem;
}

.brief-success-state p {
  font-size: 0.95rem;
  color: var(--text-body);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 2rem;
  max-width: 320px;
}

.success-close-btn {
  height: 46px;
  font-size: 11px;
  padding: 0 2rem;
}

.success-checkmark {
  width: 60px;
  height: 60px;
  margin: 0 auto;
}

.checkmark-circle {
  stroke: rgba(185, 246, 202, 0.2);
  stroke-width: 2;
  stroke-miterlimit: 10;
  fill: none;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke: #b9f6ca;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheckmark 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.3s forwards;
  filter: drop-shadow(0 0 6px #b9f6ca);
}

@keyframes strokeCheckmark {
  100% {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 768px) {
  .brief-modal-overlay {
    padding: 1rem;
  }
  .brief-modal-card {
    padding: 2.25rem 1.75rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .brief-modal-header h2 {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   Coming Soon Page Styling
   ========================================================================== */
.coming-soon-page {
  background-color: #060609;
}

.coming-soon-page .section-label {
  display: block;
  margin-bottom: 2rem;
  color: var(--text-label);
}

.coming-soon-main {
  position: relative;
  z-index: 2;
  width: 100%;
}

.cs-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.cs-hero {
  padding-top: 12rem;
  padding-bottom: 8rem;
  text-align: center;
}

.cs-hero .cs-container {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status-pill-container {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #b9f6ca;
  box-shadow: 0 0 8px #b9f6ca;
  animation: pulseDot 2s infinite alternate;
}

.status-text {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-heading);
}

.cs-headline {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 300;
  color: var(--text-heading);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.cs-headline em {
  font-family: serif;
  font-style: italic;
  font-weight: 300;
  opacity: 0.9;
  color: var(--text-heading);
}
.typewriter-cursor {
  display: inline-block;
  margin-left: 0.15em;
  color: #b9f6ca; /* Emerald green cursor */
  font-weight: 300;
  animation: typewriterCursorBlink 0.8s infinite;
  vertical-align: middle;
}

@keyframes typewriterCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cs-subline {
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-body);
  max-width: 760px;
  margin: 0 auto 3.5rem;
  font-weight: 300;
}

/* Email Capture Capsule */
.email-capture-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.email-capture-form {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  padding: 4px 4px 4px 1.5rem;
  gap: 0.5rem;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.email-capture-form:focus-within {
  border-color: rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.02);
}

.email-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-heading);
  padding: 0.5rem 0;
  width: 100%;
  font-weight: 300;
}

.email-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.email-submit-btn {
  border-radius: 9999px !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  height: auto;
  padding: 0.75rem 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 400;
  cursor: pointer;
  background: #FFFFFF;
  color: #000000;
  border: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.email-submit-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.02);
}

.inline-success-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #b9f6ca;
  font-size: 13px;
  font-weight: 300;
  padding: 1rem 0;
}

.success-icon {
  width: 16px;
  height: 16px;
}

/* Section 2: Problem */
.cs-problem {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.problem-statement {
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-heading);
  letter-spacing: -0.01em;
  max-width: 960px;
  margin-top: 1rem;
  word-break: break-word;
}

.highlight-text {
  background-color: rgba(255, 187, 0, 0); /* Start transparent */
  color: inherit;
  border-radius: 6px;
  padding: 0.15em 0.45em;
  margin: 0 -0.15em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  display: inline;
  transition: background-color 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), 
              color 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: background-color, color;
}

.highlight-text.active {
  background-color: #ffbb00; /* Framer HighlightText color */
  color: #0d0d0d; /* High-contrast text color */
}

/* Section 3: Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.feature-card {
  position: relative;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
}

.card-glow-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--x, 0) var(--y, 0), rgba(255, 255, 255, 0.015), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.feature-card:hover .card-glow-bg {
  opacity: 1;
}

.feature-title {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-heading);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
  font-weight: 300;
}

/* Section 4: Credibility */
.cs-credibility {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.credibility-text {
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-heading);
  letter-spacing: -0.015em;
  max-width: 900px;
  margin-top: 1rem;
  margin-bottom: 3.5rem;
}

.inline-agency-link {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}

.inline-agency-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Campaign Optimization Pipeline Dashboard */
.dashboard-visualizer {
  position: relative;
  width: 100%;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 2.5rem;
  margin-top: 3.5rem;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8),
              0 0 100px -30px rgba(139, 92, 246, 0.05);
}

.dashboard-glow-accent {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  transition: opacity 1s ease, transform 1s ease;
}

.glow-violet {
  width: 300px;
  height: 300px;
  background: #8b5cf6;
  top: -10%;
  right: 5%;
}

.glow-gold {
  width: 350px;
  height: 350px;
  background: #FFD700;
  bottom: -20%;
  left: -10%;
}

.dashboard-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.dashboard-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-badge {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b9f6ca;
  background: rgba(185, 246, 202, 0.06);
  border: 1px solid rgba(185, 246, 202, 0.15);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 0 15px rgba(185, 246, 202, 0.05);
}

.dashboard-title {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-heading);
  font-family: var(--font-sans);
}

.dashboard-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  padding: 3px;
}

.dashboard-tab {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.dashboard-tab:hover {
  color: var(--text-heading);
}

.dashboard-tab.active {
  background: #ffffff;
  color: #000000;
  font-weight: 400;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.dashboard-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 3rem;
}

.dashboard-panel {
  display: flex;
  flex-direction: column;
}

.panel-config {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding-right: 3rem;
}

.config-header {
  margin-bottom: 1.5rem;
}

.config-label {
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-label);
}

.config-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.config-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  opacity: 0.3;
  transition: all 0.5s ease;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
}

.config-item.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.04);
}

.config-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 0.4rem;
  flex-shrink: 0;
}

.dot-amber {
  background-color: #FFD700;
  box-shadow: 0 0 10px #FFD700;
}

.dot-violet {
  background-color: #8b5cf6;
  box-shadow: 0 0 10px #8b5cf6;
}

.dot-emerald {
  background-color: #b9f6ca;
  box-shadow: 0 0 10px #b9f6ca;
}

.config-item-text h5 {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.config-item-text p {
  font-size: 11px;
  color: var(--text-body);
  line-height: 1.4;
}

.panel-telemetry {
  justify-content: space-between;
  gap: 2rem;
}

.telemetry-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
}

.metric-num {
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-heading);
  font-family: var(--font-sans);
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.metric-name {
  font-size: 11px;
  color: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.telemetry-chart-wrapper {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chart-header {
  margin-bottom: 1.25rem;
}

.chart-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-label);
}

.chart-canvas {
  flex: 1;
  position: relative;
  min-height: 120px;
}

.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

#chart-path-plinth {
  filter: drop-shadow(0px 4px 12px rgba(185, 246, 202, 0.3));
  transition: d 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (max-width: 992px) {
  .dashboard-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .panel-config {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-right: 0;
    padding-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .dashboard-visualizer {
    padding: 1.5rem;
  }
  .telemetry-metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Section 5: The Ask */
.cs-ask {
  padding-bottom: 8rem;
}

.ask-text {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.6;
  color: var(--text-heading);
  font-weight: 600;
  max-width: 850px;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}

.ask-ctas {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.open-ask-trigger {
  font-size: 11px;
  padding: 0.8rem 2rem;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-heading);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.open-ask-trigger:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.bullet-separator {
  color: rgba(255, 255, 255, 0.1);
  font-size: 12px;
}


/* Coming Soon Footer */
.cs-footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
  background: #060609;
  position: relative;
  z-index: 2;
}

.cs-footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.3);
}

.footer-model {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.3);
}

/* Responsive Coming Soon */
@media (max-width: 992px) {
  .cs-container.grid-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .cs-hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .feature-card {
    padding: 2.5rem 2rem;
  }

  .ask-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .bullet-separator {
    display: none;
  }
}

@keyframes pulseDot {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(185, 246, 202, 0.4);
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 0 10px 4px rgba(185, 246, 202, 0.2);
  }
}

/* Stats Grid Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 1rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 3rem 2.25rem;
  text-align: left;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
}

.stat-number {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 300;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
}

.stat-prefix, .stat-suffix {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8em;
}

.stat-label {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-body);
  font-weight: 300;
}

.layer-tag {
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-label);
  display: block;
  margin-bottom: 0.75rem;
}

.inline-founders-link {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
  margin-top: 1.75rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  padding-bottom: 3px;
}

.inline-founders-link:hover {
  color: var(--text-heading);
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.cs-footer-quote-section {
  border-top: 1px solid var(--border-color);
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
  background: #060609;
}

.last-line-quote {
  font-size: clamp(1.4rem, 2.5vw, 2.25rem);
  line-height: 1.5;
  color: var(--text-heading);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  transition: opacity 0.25s ease;
  will-change: opacity;
}

.quote-author {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-body);
  margin-top: 1.5rem;
  opacity: 0.65;
  display: block;
}

/* FontChanger Typography Styles */
.font-style-1 {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.font-style-2 {
  font-family: 'Space Mono', monospace;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.font-style-3 {
  font-family: 'Syne', sans-serif;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.font-style-4 {
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-weight: 300;
  letter-spacing: -0.015em;
}

.font-style-5 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .cs-footer-quote-section {
    padding: 6rem 1.5rem;
  }
}

/* ==========================================================================
   14. Campaign Slot Machine Styles
   ========================================================================== */
.slot-machine-container {
  margin-top: 4.5rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.slot-machine-header h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.slot-machine-header p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-body);
  margin-bottom: 1.5rem;
}

.slot-machine-game {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 1.5rem;
}

.slot-reels-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
  margin-bottom: 1.5rem;
}

.slot-win-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(255, 215, 0, 0.25);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 3;
}

.slot-reel {
  height: 60px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.slot-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  will-change: transform;
}

.slot-item {
  height: 60px;
  line-height: 60px;
  font-size: 2.2rem;
  text-align: center;
  user-select: none;
}

.slot-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.slot-status-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.slot-credits-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-body);
}

.slot-feedback-msg {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.slot-spin-btn {
  padding: 0.6rem 1.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  background: #ffbb00;
  color: #0d0d0d;
  border: none;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.slot-spin-btn:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-label);
  cursor: not-allowed;
}

.slot-win-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.95);
  border-radius: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(12px);
  animation: fadeIn 0.4s ease forwards;
}

.slot-win-card {
  width: 100%;
  max-width: 400px;
  text-align: left;
}

.slot-win-crown {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 0.25rem;
  animation: crownFloat 3s ease-in-out infinite;
}

@keyframes crownFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(3deg); }
}

.slot-win-title {
  font-family: 'Instrument Serif', serif;
  font-size: 2.5rem;
  font-weight: 400;
  font-style: italic;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 10%, #f3c347 60%, #c49624 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.slot-win-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  text-align: center;
}

.slot-claim-success {
  text-align: center;
  padding: 1.5rem 0;
}

.slot-claim-success svg {
  width: 48px;
  height: 48px;
  color: #b9f6ca;
  margin-bottom: 1rem;
}

.slot-claim-success span {
  font-size: 0.95rem;
  color: var(--text-heading);
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.slot-terms {
  font-size: 0.75rem;
  color: var(--text-body);
  margin-top: 1.5rem;
  opacity: 0.7;
  text-align: center;
}




