/* ========================================
   Preloader
   ======================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.preloader-logo {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-text);
  opacity: 0;
  transform: scale(0.85);
  animation: preloaderLogoIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

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

@keyframes preloaderLogoIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.preloader-bar {
  width: 160px;
  height: 2px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  animation: preloaderFadeIn 0.3s ease 0.4s forwards;
}

.preloader-bar-fill {
  width: 0;
  height: 100%;
  background: var(--color-accent);
  border-radius: 2px;
  animation: preloaderFill 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

@keyframes preloaderFill {
  to { width: 100%; }
}

@keyframes preloaderFadeIn {
  to { opacity: 1; }
}

.preloader-sub {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-light);
  opacity: 0;
  transform: translateY(8px);
  animation: preloaderSubIn 0.5s ease 0.6s forwards;
}

@keyframes preloaderSubIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (pointer: fine) {
  .cursor-dot {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
  }

  .cursor-ring {
    display: block;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--color-accent);
    opacity: 0.5;
    transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
  }

  .cursor-ring.hover {
    width: 56px;
    height: 56px;
    opacity: 0.3;
    border-color: var(--color-accent);
  }
}

/* ========================================
   Scroll Animations
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .preloader { display: none !important; }
  .fade-in, .fade-in-left, .fade-in-right, .scale-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .stagger-children .fade-in { transition-delay: 0s !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
  .hero-shapes .shape { animation: none !important; }
  .hero-gradient { animation: none !important; }
  .hero-previews,
  .hero-cta,
  .hero .subtitle {
    opacity: 1 !important;
    animation: none !important;
  }
  .preview-square * {
    opacity: 1 !important;
    animation: none !important;
  }
  .service-card-highlight {
    animation: none !important;
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 4px rgba(232, 114, 12, 0.2) !important;
    transition: border-color 1.5s ease, box-shadow 1.5s ease !important;
  }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Animated gradient background */
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232, 114, 12, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(232, 114, 12, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 20% 60%, rgba(232, 114, 12, 0.03) 0%, transparent 50%);
  animation: gradientShift 12s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.8; transform: scale(1.02); }
}

/* Floating geometric shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation-fill-mode: forwards;
}

.shape-1 {
  width: 300px;
  height: 300px;
  border: 1px solid rgba(232, 114, 12, 0.1);
  top: 10%;
  right: -5%;
  animation: floatShape1 20s ease-in-out infinite, shapeAppear 1s ease 0.5s forwards;
}

.shape-2 {
  width: 200px;
  height: 200px;
  border: 1px solid rgba(232, 114, 12, 0.08);
  bottom: 15%;
  left: -3%;
  animation: floatShape2 16s ease-in-out infinite, shapeAppear 1s ease 0.8s forwards;
}

.shape-3 {
  width: 120px;
  height: 120px;
  background: rgba(232, 114, 12, 0.03);
  top: 60%;
  right: 15%;
  animation: floatShape3 14s ease-in-out infinite, shapeAppear 1s ease 1.1s forwards;
}

.shape-4 {
  width: 80px;
  height: 80px;
  border: 1px solid rgba(232, 114, 12, 0.06);
  top: 25%;
  left: 10%;
  animation: floatShape2 18s ease-in-out infinite reverse, shapeAppear 1s ease 1.4s forwards;
}

@keyframes shapeAppear { to { opacity: 1; } }
@keyframes floatShape1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-20px, 30px) rotate(120deg); }
  66% { transform: translate(15px, -20px) rotate(240deg); }
}
@keyframes floatShape2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(30px, -25px) rotate(180deg); }
}
@keyframes floatShape3 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(15px, 20px); }
  50% { transform: translate(-10px, 35px); }
  75% { transform: translate(-20px, 10px); }
}

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

/* Text reveal animation */
.hero h1 {
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 0.3rem;
  overflow: hidden;
}

.hero-title-line {
  display: block;
  animation: revealUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-title-line:nth-child(2) {
  animation-delay: 0.15s;
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 .accent {
  color: var(--color-accent);
}

.hero .subtitle {
  display: inline-block;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 500;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  max-width: 720px;
  margin: 1.5rem auto 2.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 14px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  box-shadow: 0 14px 36px rgba(232, 114, 12, 0.28),
              inset 0 1px 0 rgba(255, 255, 255, 0.18);
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Hero Animated Service Previews
   ======================================== */
.hero-previews {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem auto 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

/* Carousel dots — hidden on desktop, visible on mobile */
.carousel-dots {
  display: none;
}

/* Unified portrait scene — mobile only (see mobile media query) */
.hero-scene {
  display: none;
}

.hero-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hero-preview:active .preview-square {
  transform: translateY(-2px) scale(0.97);
  transition-duration: 0.15s;
}

.preview-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
}

.preview-square {
  width: 160px;
  height: 160px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color var(--transition);
}

.preview-square:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--color-accent);
}

/* --- Website Preview --- */
.preview-web .pw-bar {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 6px 8px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.pw-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-border);
}

.pw-dot:first-child { background: #ff5f57; }
.pw-dot:nth-child(2) { background: #febc2e; }
.pw-dot:nth-child(3) { background: #28c840; }

.pw-url {
  flex: 1;
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  margin-left: 6px;
}

.pw-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pw-nav {
  height: 4px;
  width: 60%;
  background: var(--color-border);
  border-radius: 2px;
  animation: pwSlideIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) 1s both;
}

.pw-hero-block {
  height: 36px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  border-radius: 4px;
  opacity: 0;
  position: relative;
  overflow: hidden;
  animation: pwFadeScale 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.3s forwards,
             pwHeroPulse 3.5s ease-in-out 3s infinite;
}

.pw-hero-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: pwHeroShine 4.5s ease-in-out 3.5s infinite;
}

@keyframes pwHeroPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 114, 12, 0); }
  50% { box-shadow: 0 0 12px 2px rgba(232, 114, 12, 0.35); }
}

@keyframes pwHeroShine {
  0% { transform: translateX(-120%); }
  40%, 100% { transform: translateX(120%); }
}

.pw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.pw-card {
  height: 28px;
  background: var(--color-bg-alt);
  border-radius: 3px;
  border: 1px solid var(--color-border);
  opacity: 0;
  animation: pwFadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.pw-card:nth-child(1) { animation-delay: 1.6s; }
.pw-card:nth-child(2) { animation-delay: 1.75s; }
.pw-card:nth-child(3) { animation-delay: 1.9s; }

.pw-footer {
  height: 4px;
  width: 80%;
  margin: 2px auto 0;
  background: var(--color-border);
  border-radius: 2px;
  opacity: 0;
  animation: pwFadeIn 0.6s ease 2.1s forwards;
}

@keyframes pwSlideIn {
  from { width: 0; opacity: 0; }
  to { width: 60%; opacity: 1; }
}

@keyframes pwFadeScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes pwFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Branding Preview --- */
.preview-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  gap: 10px;
}

/* Abstract logo mark: two overlapping shapes */
.pb-mark {
  position: relative;
  width: 56px;
  height: 56px;
}

.pb-shape {
  position: absolute;
  opacity: 0;
}

.pb-shape1 {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  top: 4px;
  left: 2px;
  animation: pbPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards;
}

.pb-shape2 {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 2px solid var(--color-text);
  bottom: 2px;
  right: 2px;
  animation: pbPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.45s forwards;
}

/* Text lines (font specimen) */
.pb-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  animation: pwFadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1.7s forwards;
}

.pb-line {
  height: 4px;
  border-radius: 2px;
  background: var(--color-border);
}

.pb-l1 { width: 52px; }
.pb-l2 { width: 36px; }

/* Color palette row */
.pb-colors {
  display: flex;
  gap: 4px;
  opacity: 0;
  animation: pwFadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 2s forwards;
}

.pb-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.pb-c1 { background: #1a1a1a; }
.pb-c2 { background: #e8720c; }
.pb-c3 { background: #f5f5f5; }
.pb-c4 { background: #555555; }

@keyframes pbPop {
  0% { opacity: 0; transform: scale(0); }
  70% { transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

/* --- Server / Hosting Preview --- */
.preview-server {
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 8px;
}

.ps-terminal {
  flex: 1;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  opacity: 0;
  animation: psFadeIn 0.5s ease 1.1s forwards;
}

.ps-term-bar {
  display: flex;
  gap: 3px;
  padding: 4px 6px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.ps-term-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-border);
}

.ps-term-dot:first-child { background: #ff5f57; }
.ps-term-dot:nth-child(2) { background: #febc2e; }
.ps-term-dot:nth-child(3) { background: #28c840; }

.ps-term-body {
  padding: 6px 8px;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ps-line {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
}

.ps-ln1 { animation: psFadeIn 0.4s ease 1.4s forwards; }
.ps-ln2 { animation: psFadeIn 0.4s ease 1.7s forwards; }
.ps-ln3 { animation: psFadeIn 0.4s ease 2s forwards; }

.ps-prompt {
  width: 6px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 1px;
}

.ps-cmd {
  width: 40px;
  height: 4px;
  background: var(--color-border);
  border-radius: 1px;
}

.ps-cmd2 {
  width: 28px;
}

.ps-ok {
  width: 20px;
  height: 4px;
  background: #28c840;
  border-radius: 1px;
}

/* Status indicator */
.ps-status {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: psFadeIn 0.4s ease 2.2s forwards;
}

.ps-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 6px rgba(40, 200, 64, 0.4);
  animation: psBlink 2s ease-in-out 2.4s infinite;
}

.ps-status-bar {
  flex: 1;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.ps-status-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: #28c840;
  border-radius: 2px;
  animation: psBarFill 0.8s ease 2.4s forwards;
}

@keyframes psFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes psBarFill {
  from { width: 0; }
  to { width: 100%; }
}

/* --- Content Preview --- */
.preview-content {
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 0;
  overflow: hidden;
}

.pc-title {
  width: 65%;
  height: 6px;
  border-radius: 3px;
  background: var(--color-text);
  opacity: 0;
  margin-bottom: 7px;
  animation: pwFadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1.1s forwards;
}

.pc-lines-top,
.pc-lines-bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pc-lines-top {
  margin-bottom: 6px;
}

.pc-quote {
  border-left: 2px solid var(--color-accent);
  padding: 4px 0 4px 7px;
  margin: 0 0 6px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  animation: pwFadeUp 0.4s ease 1.55s forwards;
}

.pc-quote .pc-line {
  background: var(--color-text);
  opacity: 0.25;
}

.pc-line {
  height: 3px;
  border-radius: 2px;
  background: var(--color-border);
  opacity: 0;
}

.pc-l1  { width: 100%; animation: pwFadeUp 0.3s ease 1.3s forwards; }
.pc-l2  { width: 92%;  animation: pwFadeUp 0.3s ease 1.37s forwards; }
.pc-l3  { width: 80%;  animation: pwFadeUp 0.3s ease 1.44s forwards; }
.pc-l4  { width: 90%;  animation: pwFadeUp 0.3s ease 1.55s forwards; }
.pc-l5  { width: 70%;  animation: pwFadeUp 0.3s ease 1.62s forwards; }
.pc-l6  { width: 100%; animation: pwFadeUp 0.3s ease 1.72s forwards; }
.pc-l7  { width: 95%;  animation: pwFadeUp 0.3s ease 1.78s forwards; }
.pc-l8  { width: 100%; animation: pwFadeUp 0.3s ease 1.84s forwards; }
.pc-l9  { width: 88%;  animation: pwFadeUp 0.3s ease 1.9s forwards; }
.pc-l10 { width: 100%; animation: pwFadeUp 0.3s ease 1.96s forwards; }
.pc-l11 { width: 93%;  animation: pwFadeUp 0.3s ease 2.02s forwards; }
.pc-l12 { width: 55%;  animation: pwFadeUp 0.3s ease 2.08s forwards; }

/* --- Social Media Preview --- */
.preview-social {
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 7px;
}

.psm-header {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: pwFadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1.2s forwards;
}

.psm-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.psm-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.psm-name {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-text);
  opacity: 0.3;
}

.psm-handle {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-border);
}

.psm-post {
  flex: 1;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-border) 100%);
  min-height: 56px;
  opacity: 0;
  animation: pwFadeScale 0.6s cubic-bezier(0.4, 0, 0.2, 1) 1.5s forwards;
}

.psm-actions {
  display: flex;
  gap: 8px;
  opacity: 0;
  animation: pwFadeUp 0.4s ease 1.9s forwards;
}

.psm-heart,
.psm-comment,
.psm-share {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--color-border);
}

.psm-heart {
  border-radius: 50%;
  background: #e8720c;
  opacity: 0.6;
}

.psm-stats {
  width: 40%;
  height: 3px;
  border-radius: 2px;
  background: var(--color-border);
  opacity: 0;
  animation: pwFadeIn 0.4s ease 2.1s forwards;
}

/* --- AI Chat Preview --- */
.preview-ai {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
  gap: 7px;
  position: relative;
  background: var(--color-surface);
}

.pai-bubble {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px 9px;
  border-radius: 10px;
  opacity: 0;
  max-width: 72%;
}

.pai-bubble-user {
  align-self: flex-end;
  background: var(--color-accent);
  border-bottom-right-radius: 3px;
  animation: pwFadeUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) 1.1s forwards;
}

.pai-bubble-ai {
  align-self: flex-start;
  background: var(--color-bg-alt);
  border-bottom-left-radius: 3px;
  animation: pwFadeUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) 1.45s forwards;
}

.pai-line {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.8);
}

.pai-l1 { width: 48px; }
.pai-l2 { width: 32px; }

.pai-bubble-ai .pai-line {
  background: var(--color-text);
  opacity: 0.35;
}

.pai-l3 { width: 58px; opacity: 0; animation: pwFadeIn 0.3s ease 2s forwards; }
.pai-l4 { width: 44px; opacity: 0; animation: pwFadeIn 0.3s ease 2.2s forwards; }
.pai-l5 { width: 30px; opacity: 0; animation: pwFadeIn 0.3s ease 2.4s forwards; }

.pai-dots {
  display: flex;
  gap: 3px;
  margin-bottom: 2px;
}

.pai-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: paiTyping 1.1s ease-in-out infinite;
}

.pai-dots span:nth-child(2) { animation-delay: 0.15s; }
.pai-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes paiTyping {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

.pai-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
  opacity: 0;
}

.pai-spark::before,
.pai-spark::after {
  content: '';
  position: absolute;
  background: var(--color-accent);
  border-radius: 1px;
}

.pai-spark::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
}

.pai-spark::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
}

.pai-spark-1 {
  top: 12%;
  right: 12%;
  animation: paiSpark 2.2s ease-in-out 2.6s infinite;
}

.pai-spark-2 {
  bottom: 18%;
  left: 10%;
  width: 6px;
  height: 6px;
  animation: paiSpark 2.4s ease-in-out 3s infinite;
}

@keyframes paiSpark {
  0%, 100% { opacity: 0; transform: scale(0); }
  40% { opacity: 1; transform: scale(1.2); }
  60% { opacity: 1; transform: scale(1); }
  80% { opacity: 0; transform: scale(0.5); }
}

.hero-cta {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.2s forwards;
}

.scroll-indicator span {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--color-border);
  position: relative;
  overflow: hidden;
}

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

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

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.25rem;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 44px;
  min-width: 44px;
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(232, 114, 12, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(232, 114, 12, 0.35);
}

.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(232, 114, 12, 0.25);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.btn-outline::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from 0deg,
    transparent,
    var(--color-accent) 60deg,
    transparent 120deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: btnBorderSpin 4s linear infinite;
  pointer-events: none;
}

.btn-outline:hover::after,
.btn-outline:focus::after {
  opacity: 1;
}

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

.btn-outline:hover,
.btn-outline:focus {
  color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(232, 114, 12, 0.18);
}

.btn-outline:active {
  transform: translateY(-1px);
}

.btn-outline::before { display: none; }

.btn-arrow {
  transition: transform 0.3s ease;
  display: inline-block;
}

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

/* ========================================
   Section Titles
   ======================================== */
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  color: var(--color-text-light);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Section divider line */
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto 2rem;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.section-divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ========================================
   Services Section
   ======================================== */
.services {
  padding: var(--section-padding);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: service-counter;
}


.service-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--color-border);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-3deg);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --- Chevron indicator --- */
.service-chevron {
  width: 20px;
  height: 20px;
  margin-top: 1rem;
  color: var(--color-text-light);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.expanded .service-chevron {
  transform: rotate(180deg);
}

/* --- Expandable details --- */
.service-details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0;
}

.service-details > * {
  overflow: hidden;
}

.service-card.expanded .service-details {
  grid-template-rows: 1fr;
  margin-top: 1.25rem;
}

.service-details-desc {
  display: none;
}

.service-details-list {
  list-style: none;
  padding: 1.25rem 0 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  border-top: 1px solid var(--color-border);
}

.service-details-list li {
  font-size: 0.9rem;
  color: var(--color-text);
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.5;
}

.service-details-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* --- Expanded card state --- */
.service-card.expanded {
  border-color: var(--color-accent);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.service-card.expanded::before {
  transform: scaleX(1);
}

.service-card[id] {
  scroll-margin-top: 90px;
}

.service-card-highlight {
  animation: cardHighlight 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 114, 12, 0.4);
    border-color: var(--color-accent);
  }
  40% {
    box-shadow: 0 0 0 12px rgba(232, 114, 12, 0.08);
    border-color: var(--color-accent);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(232, 114, 12, 0);
    border-color: var(--color-border);
  }
}

/* ========================================
   Floating "Projekt anfragen" CTA
   ======================================== */
.floating-cta {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 895;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.15rem;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.005em;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(232, 114, 12, 0.36),
              inset 0 1px 0 rgba(255, 255, 255, 0.22);
  text-decoration: none;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-cta:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 44px rgba(232, 114, 12, 0.5);
}

.floating-cta:active { transform: scale(0.97); }

.floating-cta-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.floating-cta:hover .floating-cta-arrow {
  transform: translateX(3px);
}

@media (max-width: 520px) {
  .floating-cta {
    bottom: 1rem;
    left: 1rem;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
}

/* ========================================
   AI Chat Widget
   ======================================== */
.chat-fab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 900;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 38px rgba(232, 114, 12, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transform: translateY(0) scale(1);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease;
}

.chat-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 20px 46px rgba(232, 114, 12, 0.52);
}

.chat-fab:active { transform: scale(0.95); }

.chat-fab-icon {
  position: absolute;
  width: 24px;
  height: 24px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.25s ease;
}

.chat-fab-icon-close {
  transform: rotate(-90deg) scale(0.4);
  opacity: 0;
}

.chat-fab.open .chat-fab-icon-open {
  transform: rotate(90deg) scale(0.4);
  opacity: 0;
}

.chat-fab.open .chat-fab-icon-close {
  transform: rotate(0) scale(1);
  opacity: 1;
}

.chat-fab-pulse {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  opacity: 0;
  animation: chatFabPulse 2.6s ease-out infinite;
  pointer-events: none;
}

.chat-fab.open .chat-fab-pulse { animation: none; opacity: 0; }

@keyframes chatFabPulse {
  0% { opacity: 0.7; transform: scale(0.9); }
  80%, 100% { opacity: 0; transform: scale(1.6); }
}

/* Panel */
.chat-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  z-index: 899;
  width: min(380px, calc(100vw - 2.5rem));
  height: min(560px, calc(100vh - 9rem));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(var(--color-shadow), 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.35s ease,
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

@media (max-width: 520px) {
  .chat-panel {
    bottom: 5rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    height: min(72vh, 540px);
    max-height: min(72vh, 540px);
    border-radius: 20px;
  }
  .chat-fab { bottom: 1rem; right: 1rem; }
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: #fff;
}

.chat-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-header-avatar svg {
  width: 20px;
  height: 20px;
}

.chat-header-text {
  flex: 1;
  min-width: 0;
}

.chat-header-text h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  letter-spacing: -0.01em;
}

.chat-header-text p {
  font-size: 0.75rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.chat-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a7ffbf;
  box-shadow: 0 0 8px rgba(167, 255, 191, 0.8);
  animation: chatStatus 2s ease-in-out infinite;
}

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

.chat-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.chat-close svg {
  width: 16px;
  height: 16px;
}

/* Messages area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  scroll-behavior: smooth;
}

.chat-msg {
  display: flex;
  max-width: 86%;
  animation: chatMsgIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-msg-ai { align-self: flex-start; }
.chat-msg-user { align-self: flex-end; }

.chat-msg-bubble {
  padding: 0.65rem 0.9rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.chat-msg-ai .chat-msg-bubble {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
}

/* Rich / HTML demo bubble */
.chat-msg-rich {
  padding: 0.75rem 0.85rem;
  background: linear-gradient(160deg, var(--color-surface), var(--color-bg-alt));
  border: 1px solid var(--color-border);
  max-width: 100%;
}

.chat-demo-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 220px;
}

.chat-demo-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.chat-demo-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.chat-demo-bars li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
}

.cd-label {
  flex: 0 0 40%;
  color: var(--color-text-light);
  font-weight: 600;
}

.cd-bar {
  flex: 1;
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: var(--color-border);
  overflow: hidden;
}

.cd-bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
  animation: chatDemoFill 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.chat-demo-bars li:nth-child(1) .cd-bar i { animation-delay: 0.1s; }
.chat-demo-bars li:nth-child(2) .cd-bar i { animation-delay: 0.25s; }
.chat-demo-bars li:nth-child(3) .cd-bar i { animation-delay: 0.4s; }
.chat-demo-bars li:nth-child(4) .cd-bar i { animation-delay: 0.55s; }

@keyframes chatDemoFill {
  to { width: var(--w, 80%); }
}

.chat-demo-foot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--color-text-light);
  padding-top: 0.25rem;
  border-top: 1px dashed var(--color-border);
}

.chat-demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 6px rgba(40, 200, 64, 0.5);
  animation: chatStatus 2s ease-in-out infinite;
}

.chat-msg-user .chat-msg-bubble {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 6px 16px rgba(232, 114, 12, 0.24);
}

.chat-msg-error .chat-msg-bubble {
  background: rgba(255, 80, 80, 0.12);
  color: #c0392b;
  border: 1px solid rgba(255, 80, 80, 0.28);
}

.chat-msg-typing .chat-msg-bubble {
  display: inline-flex;
  gap: 4px;
  padding: 0.85rem 1rem;
}

.chat-msg-typing .chat-msg-bubble span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-light);
  animation: chatTyping 1.1s ease-in-out infinite;
}

.chat-msg-typing .chat-msg-bubble span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg-typing .chat-msg-bubble span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatTyping {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

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

/* Suggestions chips */
.chat-suggestions {
  display: flex;
  gap: 0.4rem;
  padding: 0.25rem 1rem 0.75rem;
  flex-wrap: wrap;
}

.chat-suggestions.hide { display: none; }

.chat-chip {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.chat-chip:hover {
  background: rgba(232, 114, 12, 0.08);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.chat-chip:active { transform: scale(0.96); }

/* Input row */
.chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  align-items: flex-end;
}

.chat-input-row textarea {
  flex: 1;
  resize: none;
  font-family: var(--font-family);
  font-size: 0.92rem;
  line-height: 1.4;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  max-height: 120px;
  min-height: 42px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.chat-input-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.chat-send {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(232, 114, 12, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.chat-send:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 10px 20px rgba(232, 114, 12, 0.38);
}

.chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.chat-send svg {
  width: 18px;
  height: 18px;
  transform: translateX(1px);
}

@media (prefers-reduced-motion: reduce) {
  .chat-fab-pulse, .chat-status-dot, .chat-msg-typing .chat-msg-bubble span {
    animation: none;
  }
}

/* ========================================
   Marquee Ticker
   ======================================== */
.marquee-section {
  position: relative;
  padding: 2.25rem 0;
  background: var(--color-text);
  color: var(--color-bg);
  overflow: hidden;
  border-top: 1px solid var(--color-text);
  border-bottom: 1px solid var(--color-text);
}

:root[data-theme="dark"] .marquee-section {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.marquee {
  display: flex;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
  white-space: nowrap;
  animation: marqueeScroll 38s linear infinite;
  will-change: transform;
}

.marquee-section:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
  font-style: italic;
}

.marquee-dot {
  color: var(--color-accent);
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

:root[data-theme="dark"] .marquee-dot {
  color: #1a1410;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ========================================
   About Section (founder cards)
   ======================================== */
.about {
  padding: var(--section-padding);
  position: relative;
  background: var(--color-bg);
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

/* Team card — single shared photo for both founders */
.team-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              border-color var(--transition);
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
  z-index: 2;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card.visible::before,
.team-card:hover::before { transform: scaleX(1); }

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(var(--color-shadow), 0.14);
  border-color: var(--color-accent);
}

.team-photo {
  margin: 0;
  position: relative;
  background: var(--color-bg-alt);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-photo img {
  transform: scale(1.04);
}

/* Subtle warm tint overlay for a cohesive look */
.team-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 55%,
    rgba(232, 114, 12, 0.12) 100%);
  pointer-events: none;
}

.team-meta {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.75rem;
}

.team-role {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 0.3rem 0.75rem;
  background: rgba(232, 114, 12, 0.1);
  border-radius: 999px;
}

.team-name {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.team-name-amp {
  color: var(--color-accent);
  font-style: italic;
  font-weight: 500;
  margin: 0 0.1em;
}

.team-bio {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.65;
}

.team-skills {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.team-skills li {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  padding: 0.3rem 0.7rem;
  background: var(--color-bg-alt);
  border-radius: 6px;
}

@media (min-width: 768px) {
  .team-card {
    grid-template-columns: 1fr 1fr;
  }
  .team-photo {
    aspect-ratio: auto;
    height: 100%;
  }
  .team-meta {
    padding: 2.25rem 2rem;
    justify-content: center;
  }
}

.founders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto 3rem;
}

@media (min-width: 768px) {
  .founders-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.founder-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              border-color var(--transition);
  isolation: isolate;
}

.founder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-accent-hover));
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.founder-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(var(--color-shadow), 0.12);
  border-color: var(--color-accent);
}

.founder-card:hover::before {
  height: 100%;
}

.founder-avatar {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  box-shadow: 0 12px 30px rgba(232, 114, 12, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-radius 0.5s ease;
}

.founder-card:hover .founder-avatar {
  transform: scale(1.05) rotate(-3deg);
  border-radius: 50%;
}

.founder-accent {
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 0deg,
    transparent,
    rgba(255, 255, 255, 0.3) 30%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 80%,
    transparent);
  animation: founderAccentSpin 8s linear infinite;
  pointer-events: none;
}

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

.founder-initials {
  position: relative;
  z-index: 1;
}

/* Drop a photo into .founder-avatar later via <img class="founder-photo">
   to replace the initials automatically */
.founder-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  border-radius: inherit;
}

.founder-avatar:has(.founder-photo) .founder-initials,
.founder-avatar:has(.founder-photo) .founder-accent {
  display: none;
}

.founder-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.founder-role {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 0.25rem 0.65rem;
  background: rgba(232, 114, 12, 0.1);
  border-radius: 999px;
}

.founder-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.founder-bio {
  color: var(--color-text-light);
  font-size: 0.92rem;
  line-height: 1.6;
}

.founder-skills {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.founder-skills li {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text);
  padding: 0.25rem 0.65rem;
  background: var(--color-bg-alt);
  border-radius: 6px;
  text-transform: uppercase;
}

@media (max-width: 500px) {
  .founder-card {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.4rem;
  }
  .founder-avatar {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    font-size: 1.35rem;
  }
  .founder-name { font-size: 1.2rem; }
}

/* Stats row */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

@media (max-width: 520px) {
  .about-stats {
    padding: 1.5rem 1rem;
    gap: 0.5rem;
  }
  .stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
  }
}

/* ========================================
   Section Kicker (eyebrow label)
   ======================================== */
.section-kicker {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  position: relative;
}

/* ========================================
   Work / References Section
   ======================================== */
.work {
  padding: var(--section-padding);
  position: relative;
  background: linear-gradient(180deg, var(--color-bg-warm, var(--color-bg)) 0%, var(--color-bg-alt) 100%);
  overflow: hidden;
}

.work::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

/* Soft decorative glow */
.work::after {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  width: 80%;
  height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(232, 114, 12, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.work > .container {
  position: relative;
  z-index: 1;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  perspective: 1400px;
}

.work-card {
  display: block;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  isolation: isolate;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              border-color var(--transition);
}

/* Animated gradient border on hover */
.work-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    var(--color-accent),
    rgba(232, 114, 12, 0.2),
    var(--color-accent-hover),
    rgba(232, 114, 12, 0.2),
    var(--color-accent)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 2;
}

.work-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.14),
              0 0 0 1px rgba(232, 114, 12, 0.25);
  border-color: transparent;
}

.work-card:hover::before {
  opacity: 1;
  animation: workBorderSpin 6s linear infinite;
}

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

/* Browser-chrome frame */
.work-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--color-surface);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.work-frame-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 36px;
  background: linear-gradient(to bottom, var(--color-bg-alt), var(--color-bg));
  border-bottom: 1px solid var(--color-border);
  z-index: 2;
}

.work-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  flex-shrink: 0;
}

.work-dot:nth-child(1) { background: #ff5f57; }
.work-dot:nth-child(2) { background: #febc2e; }
.work-dot:nth-child(3) { background: #28c840; }

.work-url {
  flex: 1;
  min-width: 0;
  margin-left: 8px;
  padding: 4px 12px;
  background: #fff;
  border-radius: 12px;
  font-size: 0.7rem;
  color: var(--color-text-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
}

.work-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #1b9c3f;
  background: rgba(40, 200, 64, 0.1);
  padding: 3px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

.work-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 6px rgba(40, 200, 64, 0.6);
  animation: workLivePulse 1.8s ease-in-out infinite;
}

@keyframes workLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.work-viewport {
  position: relative;
  width: 100%;
  height: calc(100% - 36px);
  overflow: hidden;
  background: var(--color-bg-alt);
}

.work-viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 900px;
  border: 0;
  transform-origin: top left;
  pointer-events: none;
  background: #fff;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.work-viewport iframe.loaded {
  opacity: 1;
}

/* Loading skeleton shimmer */
.work-skeleton {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      var(--color-bg-alt) 0%,
      #f0f0f0 50%,
      var(--color-bg-alt) 100%);
  background-size: 200% 100%;
  animation: workSkeleton 1.6s ease-in-out infinite;
}

@keyframes workSkeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.work-viewport.is-loaded .work-skeleton {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Hover overlay with CTA */
.work-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg,
    rgba(232, 114, 12, 0.88),
    rgba(208, 96, 0, 0.92));
  color: #fff;
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  z-index: 1;
}

.work-overlay-cta {
  position: relative;
}

.work-overlay-cta::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.work-card:hover .work-overlay {
  opacity: 1;
}

.work-card:hover .work-overlay-cta::after {
  transform: scaleX(1);
}

.work-card:hover .work-overlay svg {
  animation: workArrowSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes workArrowSlide {
  0% { transform: translate(-6px, 6px); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}

.work-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.work-info-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.work-info-text p {
  color: var(--color-text-light);
  font-size: 0.85rem;
  line-height: 1.5;
}

.work-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  max-width: 50%;
  justify-content: flex-end;
}

.work-tags span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-light);
  background: var(--color-bg-alt);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.work-card:hover .work-tags span {
  background: rgba(232, 114, 12, 0.1);
  color: var(--color-accent);
  transition: background 0.3s ease, color 0.3s ease;
}

/* Tablet+ */
@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .work-grid .work-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 680px;
    justify-self: center;
  }
}

@media (min-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .work-grid .work-card:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }
}

/* Mobile refinements */
@media (max-width: 767px) {
  .work-grid {
    gap: 1.25rem;
  }
  .work-frame {
    aspect-ratio: 16 / 11;
  }
  .work-url {
    font-size: 0.6rem;
    padding: 3px 8px;
  }
  .work-live {
    font-size: 0.55rem;
    padding: 2px 6px;
  }
  .work-info {
    padding: 1rem 1.1rem;
  }
  .work-info-text h3 {
    font-size: 1rem;
  }
  .work-tags {
    max-width: 55%;
  }
  .work-tags span {
    font-size: 0.6rem;
    padding: 3px 7px;
  }
  /* On mobile, touch-tap shows overlay briefly via :active */
  .work-card:active .work-overlay {
    opacity: 1;
  }
  .work-card:active {
    transform: scale(0.99);
    transition-duration: 0.15s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-live-dot,
  .work-skeleton,
  .work-card::before {
    animation: none !important;
  }
  .work-card:hover {
    transform: none;
  }
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
  padding: var(--section-padding);
  position: relative;
  background: var(--color-bg-alt);
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.contact-form {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-bg);
  padding: 2.75rem 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(232, 114, 12, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.contact-form > * {
  position: relative;
  z-index: 1;
}

/* Project-type chips */
.form-chips {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.form-chips-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.85rem;
}

.form-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.6rem;
}

.chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: var(--color-bg-alt);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.3s ease,
              border-color 0.3s ease,
              transform 0.2s ease,
              box-shadow 0.3s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--color-text-light);
  flex-shrink: 0;
  transition: background 0.35s ease,
              color 0.35s ease,
              transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.chip-icon svg {
  width: 16px;
  height: 16px;
}

.chip-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip:hover {
  background: rgba(232, 114, 12, 0.06);
  transform: translateY(-1px);
}

.chip:hover .chip-icon {
  color: var(--color-accent);
}

.chip:has(input:checked) {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  border-color: var(--color-accent);
  box-shadow: 0 8px 22px rgba(232, 114, 12, 0.32);
  transform: translateY(-1px);
}

.chip:has(input:checked) .chip-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: rotate(-6deg) scale(1.08);
}

.chip:has(input:checked) .chip-label {
  color: #ffffff;
}

.chip:active {
  transform: scale(0.97);
}

/* Budget slider */
.form-budget {
  margin-bottom: 1.75rem;
}

.budget-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

input[type="range"]#budget {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  padding: 0;
  margin: 0;
  min-height: 0;
  border: none;
  background: transparent;
  outline: none;
  cursor: pointer;
}

input[type="range"]#budget::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg,
    var(--color-accent) 0%,
    var(--color-accent) var(--budget-percent, 40%),
    var(--color-border) var(--budget-percent, 40%),
    var(--color-border) 100%);
}

input[type="range"]#budget::-moz-range-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: var(--color-border);
}

input[type="range"]#budget::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--color-accent);
}

input[type="range"]#budget::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px; /* centers 22px thumb on 6px track */
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--color-accent);
  cursor: grab;
  box-shadow: 0 4px 12px rgba(232, 114, 12, 0.3);
  transition: transform 0.2s ease;
}

input[type="range"]#budget::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--color-accent);
  cursor: grab;
  box-shadow: 0 4px 12px rgba(232, 114, 12, 0.3);
  transition: transform 0.2s ease;
}

input[type="range"]#budget:active::-webkit-slider-thumb,
input[type="range"]#budget:focus::-webkit-slider-thumb {
  transform: scale(1.15);
}

.budget-display {
  align-self: flex-end;
  padding: 0.3rem 0.85rem;
  background: rgba(232, 114, 12, 0.1);
  border-radius: 999px;
}

.budget-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

/* Two-column layout for name/email */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 540px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  font-family: var(--font-family);
  font-size: 0.98rem;
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.35s ease,
              box-shadow 0.35s ease,
              background 0.35s ease;
  min-height: 48px;
}

.form-group:not(.form-group-icon) input,
.form-group:not(.form-group-icon) textarea,
.form-group:not(.form-group-icon) select {
  padding-left: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-glow);
  outline: none;
  background: #fff;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.form-group-textarea textarea {
  padding-left: 2.75rem;
}

/* Input icon */
.input-icon {
  position: absolute;
  left: 0.9rem;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 48px;
  color: var(--color-text-light);
  pointer-events: none;
  transition: color 0.35s ease, transform 0.35s ease;
}

.form-group-textarea .input-icon {
  bottom: auto;
  top: 2.9rem;
  height: 22px;
}

.input-icon svg {
  width: 18px;
  height: 18px;
}

.form-group-icon input:focus ~ .input-icon,
.form-group-icon textarea:focus ~ .input-icon,
.form-group-icon:focus-within .input-icon {
  color: var(--color-accent);
  transform: scale(1.08);
}

/* Character counter */
.form-counter {
  position: absolute;
  bottom: 0.75rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-light);
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.form-group-textarea:focus-within .form-counter {
  opacity: 1;
  color: var(--color-accent);
}

/* Privacy checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.25rem 0 1.5rem;
}

.form-checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin-top: 0.1rem;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  cursor: pointer;
  line-height: 1.5;
}

.form-checkbox label a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Submit button */
.btn-submit {
  width: 100%;
  min-height: 54px;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-submit-text,
.btn-submit-spinner,
.btn-submit-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-submit-spinner,
.btn-submit-check {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.btn-submit-spinner {
  width: 22px;
  height: 22px;
  margin: auto;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  inset: 0;
  animation: btnSpinnerRot 0.8s linear infinite;
  animation-play-state: paused;
}

.btn-submit-check svg {
  width: 28px;
  height: 28px;
}

.btn-submit.is-sending .btn-submit-text {
  opacity: 0;
  transform: translateY(-8px);
}

.btn-submit.is-sending .btn-submit-spinner {
  opacity: 1;
  transform: scale(1);
  animation-play-state: running;
}

.btn-submit.is-sent {
  background: #1b9c3f;
  box-shadow: 0 10px 30px rgba(27, 156, 63, 0.35);
}

.btn-submit.is-sent .btn-submit-text,
.btn-submit.is-sent .btn-submit-spinner {
  opacity: 0;
}

.btn-submit.is-sent .btn-submit-check {
  opacity: 1;
  transform: scale(1);
  animation: btnSubmitCheck 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

@keyframes btnSubmitCheck {
  0% { transform: scale(0.2) rotate(-20deg); opacity: 0; }
  60% { transform: scale(1.2) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* Success panel */
.form-success {
  display: none;
  text-align: center;
  padding: 3.5rem 2rem 3rem;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.form-success.show {
  display: block;
  animation: scaleAppear 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleAppear {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.form-success-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.5rem;
  color: var(--color-accent);
}

.success-ring {
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: successRingDraw 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}

.success-check {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: successCheckDraw 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.75s forwards;
}

@keyframes successRingDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes successCheckDraw {
  to { stroke-dashoffset: 0; }
}

.form-success h3 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--color-text-light);
  max-width: 400px;
  margin: 0 auto;
}

/* Confetti pieces injected via JS */
.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: confettiFly 1.8s cubic-bezier(0.2, 0.7, 0.4, 1) forwards;
}

@keyframes confettiFly {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(0.2); }
  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--cx, 0px)), calc(-50% + var(--cy, 0px)))
      rotate(var(--r, 360deg))
      scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .success-ring,
  .success-check { animation: none; stroke-dashoffset: 0; }
  .btn-submit-spinner { animation: none; }
  .confetti-piece { animation: none; opacity: 0; }
}

/* ========================================
   Responsive: Mobile
   ======================================== */
@media (max-width: 600px) {
  .hero {
    min-height: auto;
    padding: 5.5rem 1.25rem 2.5rem;
  }

  .hero .subtitle {
    display: block;
    font-size: 0.95rem;
    white-space: pre-line;
    max-width: none;
    width: calc(100% + 2.5rem);
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 0;
    box-shadow: 0 10px 24px rgba(232, 114, 12, 0.22);
  }

  /* Hide the "Projekt anfragen" CTA on the landing — let visitors
     first meet us and the work before we push a contact ask. */
  .hero-cta { display: none; }

  .hero-previews {
    justify-content: flex-start;
    gap: 1.25rem;
    margin: 1.5rem auto 0.75rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 calc(50% - 65px - 0.625rem);
  }

  .hero-previews::-webkit-scrollbar {
    display: none;
  }

  .hero-preview {
    flex: 0 0 auto;
  }

  /* Cloned items: skip entrance animations; opacity controlled by JS */
  .carousel-clone,
  .carousel-clone * {
    animation: none !important;
  }
  .carousel-clone * {
    opacity: 1 !important;
  }

  .preview-square {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    zoom: 1.3;
  }

  .preview-label {
    font-size: 0.72rem;
  }

  /* Carousel dot indicators */
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 1.5rem;
  }

  .carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
  }

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

  /* Scale down website preview */
  .pw-bar { padding: 4px 5px; gap: 2px; }
  .pw-dot { width: 3px; height: 3px; }
  .pw-url { height: 4px; margin-left: 4px; }
  .pw-body { padding: 5px; gap: 4px; }
  .pw-nav { height: 3px; }
  .pw-hero-block { height: 20px; }
  .pw-card { height: 16px; }
  .pw-grid { gap: 2px; }
  .pw-footer { height: 3px; }

  /* Scale down branding preview */
  .preview-brand { padding: 10px; gap: 6px; }
  .pb-mark { width: 34px; height: 34px; }
  .pb-shape1 { width: 22px; height: 22px; top: 2px; left: 1px; }
  .pb-shape2 { width: 18px; height: 18px; border-radius: 4px; }
  .pb-line { height: 3px; }
  .pb-l1 { width: 34px; }
  .pb-l2 { width: 22px; }
  .pb-colors { gap: 2px; }
  .pb-color { width: 10px; height: 10px; }

  /* Scale down server preview */
  .preview-server { padding: 8px; gap: 5px; }
  .ps-term-bar { padding: 3px 4px; gap: 2px; }
  .ps-term-dot { width: 3px; height: 3px; }
  .ps-term-body { padding: 4px 5px; gap: 2px; }
  .ps-prompt { width: 4px; height: 3px; }
  .ps-cmd { width: 26px; height: 3px; }
  .ps-cmd2 { width: 18px; }
  .ps-ok { width: 14px; height: 3px; }
  .ps-dot-green { width: 4px; height: 4px; }
  .ps-status-bar { height: 3px; }

  /* Scale down content preview */
  .preview-content { padding: 7px; }
  .pc-title { height: 4px; margin-bottom: 5px; }
  .pc-lines-top, .pc-lines-bottom { gap: 3px; }
  .pc-lines-top { margin-bottom: 4px; }
  .pc-quote { padding: 3px 0 3px 5px; margin-bottom: 4px; border-left-width: 2px; gap: 3px; }
  .pc-line { height: 2px; }

  /* Scale down social media preview */
  .preview-social { padding: 7px; gap: 4px; }
  .psm-avatar { width: 12px; height: 12px; }
  .psm-meta { gap: 2px; }
  .psm-name { width: 24px; height: 3px; }
  .psm-handle { width: 16px; height: 2px; }
  .psm-post { min-height: 28px; border-radius: 3px; }
  .psm-actions { gap: 4px; }
  .psm-heart, .psm-comment, .psm-share { width: 8px; height: 8px; }
  .psm-stats { height: 2px; }

  /* ====== Hide the old horizontal carousel on mobile ====== */
  .hero-previews,
  .carousel-dots {
    display: none !important;
  }

  /* ====== Unified portrait scene ====== */
  .hero-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem auto 1rem;
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
  }

  .hs-device {
    position: relative;
    width: 220px;
    height: 380px;
    border-radius: 22px;
    background: linear-gradient(160deg, #ffffff 0%, #fafafa 60%, #fff3e8 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 22px 50px rgba(232, 114, 12, 0.18),
                0 4px 12px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
    isolation: isolate;
  }

  /* Browser/device top bar — first to appear */
  .hs-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    animation: hs-reveal-0 22s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }
  .hs-bar-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
  }
  .hs-bar-dot:nth-child(1) { background: #ff5f57; }
  .hs-bar-dot:nth-child(2) { background: #febc2e; }
  .hs-bar-dot:nth-child(3) { background: #28c840; }
  .hs-bar-url {
    flex: 1;
    height: 8px;
    margin-left: 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.08);
  }

  /* Page body — scrolling content layout */
  .hs-page {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .hs-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    animation: hs-reveal-1 22s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }
  .hs-logo {
    width: 28px;
    height: 8px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
  }
  .hs-menu-item {
    width: 14px;
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.15);
    margin-left: auto;
  }
  .hs-menu-item + .hs-menu-item { margin-left: 0; }

  .hs-hero-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 0 4px;
    animation: hs-reveal-2 22s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }
  .hs-headline {
    height: 10px;
    width: 85%;
    border-radius: 3px;
    background: linear-gradient(90deg, #1a1a1a, #333);
  }
  .hs-headline-short {
    width: 55%;
  }
  .hs-subline {
    height: 5px;
    width: 70%;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.2);
    margin-top: 3px;
  }
  .hs-cta {
    margin-top: 4px;
    width: 58px;
    height: 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    box-shadow: 0 4px 10px rgba(232, 114, 12, 0.35);
  }

  .hs-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-top: 2px;
  }
  .hs-card {
    aspect-ratio: 1 / 1.1;
    border-radius: 5px;
    background: linear-gradient(140deg, rgba(232, 114, 12, 0.18), rgba(232, 114, 12, 0.05));
    border: 1px solid rgba(232, 114, 12, 0.15);
  }
  .hs-card:nth-child(1) { animation: hs-reveal-3a 22s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
  .hs-card:nth-child(2) { animation: hs-reveal-3b 22s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
  .hs-card:nth-child(3) { animation: hs-reveal-3c 22s cubic-bezier(0.4, 0, 0.2, 1) infinite; }

  .hs-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: hs-reveal-4 22s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }
  .hs-line {
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.12);
  }
  .hs-line:nth-child(1) { width: 100%; }
  .hs-line:nth-child(2) { width: 88%; }
  .hs-line-short { width: 60% !important; }

  .hs-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }
  .hs-thumb {
    height: 36px;
    border-radius: 5px;
    background: linear-gradient(135deg, #dfe7f0, #c4d1df);
    position: relative;
    overflow: hidden;
  }
  .hs-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.5) 0%, transparent 50%);
  }
  .hs-thumb:nth-child(1) { animation: hs-reveal-4b 22s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
  .hs-thumb:nth-child(2) { animation: hs-reveal-4c 22s cubic-bezier(0.4, 0, 0.2, 1) infinite; }

  .hs-palette {
    display: flex;
    gap: 4px;
    padding: 4px 0;
    animation: hs-reveal-5 22s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }
  .hs-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  .hs-swatch:nth-child(1) { background: var(--color-accent); }
  .hs-swatch:nth-child(2) { background: #1a1a1a; }
  .hs-swatch:nth-child(3) { background: #f5e6d3; }
  .hs-swatch:nth-child(4) { background: #4a90a4; }

  .hs-social {
    display: flex;
    gap: 6px;
    animation: hs-reveal-5b 22s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }
  .hs-social-icon {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.05));
  }
  .hs-social-icon:nth-child(1) { background: linear-gradient(135deg, #f58529, #dd2a7b); }
  .hs-social-icon:nth-child(2) { background: linear-gradient(135deg, #0077b5, #005582); }
  .hs-social-icon:nth-child(3) { background: linear-gradient(135deg, #ff0050, #00f2ea); }

  /* Floating chat widget in bottom-right corner */
  .hs-chat {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    animation: hs-reveal-6 22s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
  }
  .hs-chat-bubble {
    background: #ffffff;
    border: 1px solid rgba(232, 114, 12, 0.25);
    border-radius: 10px 10px 2px 10px;
    padding: 7px 9px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 62px;
    box-shadow: 0 6px 16px rgba(232, 114, 12, 0.2);
  }
  .hs-chat-line {
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.2);
    width: 48px;
  }
  .hs-chat-line-short { width: 32px; }
  .hs-chat-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    box-shadow: 0 6px 14px rgba(232, 114, 12, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
  }
  .hs-chat-button::before {
    content: '';
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    animation: hs-chat-spin 3s linear infinite;
  }

  /* Live / uptime indicator in top-right */
  .hs-live {
    position: absolute;
    top: 34px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 10px;
    background: rgba(40, 200, 64, 0.12);
    border: 1px solid rgba(40, 200, 64, 0.3);
    animation: hs-reveal-6b 22s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }
  .hs-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #28c840;
    box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.6);
    animation: hs-live-pulse 1.8s ease-in-out infinite;
  }

  /* Caption below — cycles through messages synced with scene */
  .hs-caption {
    position: relative;
    height: 1.2em;
    min-height: 1.2em;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
  }
  .hs-caption-text {
    position: absolute;
    inset: 0;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hs-cap-1 { animation: hs-cap-cycle-1 22s ease-in-out infinite; }
  .hs-cap-2 { animation: hs-cap-cycle-2 22s ease-in-out infinite; }
  .hs-cap-3 { animation: hs-cap-cycle-3 22s ease-in-out infinite; }
  .hs-cap-4 { animation: hs-cap-cycle-4 22s ease-in-out infinite; }
  .hs-cap-5 { animation: hs-cap-cycle-5 22s ease-in-out infinite; }
}

/* ====== Scene keyframes: all share 22s duration so they sync ====== */
/* Pattern per keyframe: hide → appear at N% → hold → fade at 96% */

/* 0%: browser frame comes in immediately */
@keyframes hs-reveal-0 {
  0%   { opacity: 0; transform: translateY(4px); }
  4%   { opacity: 1; transform: none; }
  96%  { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-3px); }
}
/* 4s / 18%: nav */
@keyframes hs-reveal-1 {
  0%, 16% { opacity: 0; transform: translateY(6px); }
  21%     { opacity: 1; transform: none; }
  96%     { opacity: 1; transform: none; }
  100%    { opacity: 0; transform: translateY(-3px); }
}
/* 5s / 23%: hero block */
@keyframes hs-reveal-2 {
  0%, 21% { opacity: 0; transform: translateY(6px); }
  26%     { opacity: 1; transform: none; }
  96%     { opacity: 1; transform: none; }
  100%    { opacity: 0; transform: translateY(-3px); }
}
/* 7-8s / 32-37%: cards cascade */
@keyframes hs-reveal-3a {
  0%, 30% { opacity: 0; transform: translateY(8px) scale(0.9); }
  35%     { opacity: 1; transform: none; }
  96%     { opacity: 1; transform: none; }
  100%    { opacity: 0; transform: translateY(-3px); }
}
@keyframes hs-reveal-3b {
  0%, 33% { opacity: 0; transform: translateY(8px) scale(0.9); }
  38%     { opacity: 1; transform: none; }
  96%     { opacity: 1; transform: none; }
  100%    { opacity: 0; transform: translateY(-3px); }
}
@keyframes hs-reveal-3c {
  0%, 36% { opacity: 0; transform: translateY(8px) scale(0.9); }
  41%     { opacity: 1; transform: none; }
  96%     { opacity: 1; transform: none; }
  100%    { opacity: 0; transform: translateY(-3px); }
}
/* 9s / 41%: text content */
@keyframes hs-reveal-4 {
  0%, 40% { opacity: 0; transform: translateY(6px); }
  45%     { opacity: 1; transform: none; }
  96%     { opacity: 1; transform: none; }
  100%    { opacity: 0; transform: translateY(-3px); }
}
/* 10-11s / 45-50%: gallery */
@keyframes hs-reveal-4b {
  0%, 45% { opacity: 0; transform: translateX(-6px); }
  50%     { opacity: 1; transform: none; }
  96%     { opacity: 1; transform: none; }
  100%    { opacity: 0; }
}
@keyframes hs-reveal-4c {
  0%, 48% { opacity: 0; transform: translateX(6px); }
  53%     { opacity: 1; transform: none; }
  96%     { opacity: 1; transform: none; }
  100%    { opacity: 0; }
}
/* 12s / 55%: palette */
@keyframes hs-reveal-5 {
  0%, 53% { opacity: 0; transform: translateY(6px); }
  59%     { opacity: 1; transform: none; }
  96%     { opacity: 1; transform: none; }
  100%    { opacity: 0; transform: translateY(-3px); }
}
/* 13s / 60%: social */
@keyframes hs-reveal-5b {
  0%, 58% { opacity: 0; transform: translateY(6px); }
  64%     { opacity: 1; transform: none; }
  96%     { opacity: 1; transform: none; }
  100%    { opacity: 0; transform: translateY(-3px); }
}
/* 15s / 68%: chat pops from corner */
@keyframes hs-reveal-6 {
  0%, 66% { opacity: 0; transform: translate(10px, 14px) scale(0.7); }
  74%     { opacity: 1; transform: none; }
  96%     { opacity: 1; transform: none; }
  100%    { opacity: 0; transform: translate(4px, 4px) scale(0.9); }
}
/* 17s / 78%: live indicator */
@keyframes hs-reveal-6b {
  0%, 76% { opacity: 0; transform: scale(0.7); }
  82%     { opacity: 1; transform: none; }
  96%     { opacity: 1; transform: none; }
  100%    { opacity: 0; }
}

/* Chat button inner spinner */
@keyframes hs-chat-spin {
  to { transform: rotate(360deg); }
}

/* Live dot pulse */
@keyframes hs-live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(40, 200, 64, 0); }
}

/* Caption cycles — 5 slots across the 22s loop.
   Each caption is visible for its slot and fades cleanly between. */
@keyframes hs-cap-cycle-1 {
  0%      { opacity: 0; }
  3%, 18% { opacity: 1; }
  22%, 100% { opacity: 0; }
}
@keyframes hs-cap-cycle-2 {
  0%, 20%  { opacity: 0; }
  25%, 38% { opacity: 1; }
  42%, 100%{ opacity: 0; }
}
@keyframes hs-cap-cycle-3 {
  0%, 40%  { opacity: 0; }
  45%, 58% { opacity: 1; }
  62%, 100%{ opacity: 0; }
}
@keyframes hs-cap-cycle-4 {
  0%, 60%  { opacity: 0; }
  65%, 78% { opacity: 1; }
  82%, 100%{ opacity: 0; }
}
@keyframes hs-cap-cycle-5 {
  0%, 80%  { opacity: 0; }
  84%, 96% { opacity: 1; }
  100%     { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-bar, .hs-nav, .hs-hero-block, .hs-cards .hs-card,
  .hs-content, .hs-gallery .hs-thumb, .hs-palette, .hs-social,
  .hs-chat, .hs-live, .hs-caption-text {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hs-live-dot, .hs-chat-button::before { animation: none !important; }
}

/* ========================================
   Mobile Service Cards — Compact row list
   ======================================== */
@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .service-card {
    counter-increment: service-counter;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background:
      linear-gradient(105deg, var(--color-bg) 0%, var(--color-bg) 75%, rgba(232, 114, 12, 0.05) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    isolation: isolate;

    display: grid;
    grid-template-columns: 44px 1fr 28px;
    grid-template-areas:
      "icon title chevron"
      "icon summary chevron"
      "details details details";
    column-gap: 0.9rem;
    row-gap: 0.15rem;
    align-items: center;
  }

  /* Collapsed: show short one-sentence summary under the title */
  .service-card > p {
    grid-area: summary;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--color-text-light);
    margin: 0;
    padding-right: 4rem;
    position: relative;
    z-index: 1;
  }

  /* Icon — left column chip */
  .service-icon {
    grid-area: icon;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(232, 114, 12, 0.14), rgba(232, 114, 12, 0.03));
    box-shadow: 0 4px 12px rgba(232, 114, 12, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.4s ease,
                color 0.4s ease,
                box-shadow 0.4s ease,
                border-radius 0.4s ease;
    position: relative;
    z-index: 1;
    align-self: center;
  }

  .service-card:nth-child(even) .service-icon {
    border-radius: 50%;
  }

  /* Title in middle column */
  .service-card h3 {
    grid-area: title;
    font-size: 0.98rem;
    line-height: 1.25;
    margin: 0;
    letter-spacing: -0.01em;
    font-weight: 700;
    position: relative;
    z-index: 1;
  }

  /* Chevron — pill toggle right column */
  .service-chevron {
    grid-area: chevron;
    display: block;
    width: 28px;
    height: 28px;
    padding: 5px;
    margin: 0;
    border-radius: 50%;
    background: rgba(232, 114, 12, 0.08);
    color: var(--color-accent);
    align-self: center;
    justify-self: end;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s ease,
                color 0.3s ease,
                opacity 0.3s ease;
  }

  /* Hide chevron once the card is expanded so it doesn't collide with
     the big counter number in the corner */
  .service-card.expanded .service-chevron {
    opacity: 0;
    pointer-events: none;
  }

  /* Background number stays subtle on the right */
  .service-card::after {
    content: "0" counter(service-counter);
    position: absolute;
    top: 50%;
    right: 3.2rem;
    transform: translateY(-50%);
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
    background: linear-gradient(135deg, rgba(232, 114, 12, 0.2), rgba(232, 114, 12, 0.03));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.4s ease,
                opacity 0.4s ease,
                right 0.4s ease,
                top 0.4s ease,
                font-size 0.4s ease;
    z-index: 0;
  }

  .service-card::before {
    height: 3px;
  }

  .service-card:active {
    transform: scale(0.985);
    transition-duration: 0.15s;
  }

  /* Expanded: reveal description + details */
  .service-card.expanded {
    padding: 1.2rem 1.25rem 1.4rem;
    background:
      linear-gradient(155deg, #ffffff 0%, #ffffff 50%, rgba(232, 114, 12, 0.08) 100%);
    box-shadow: 0 18px 45px rgba(232, 114, 12, 0.2),
                0 0 0 1px var(--color-accent);
  }

  /* Expanded state: skip both marketing paragraphs, go straight to
     bullets for fast scanning */
  .service-card.expanded > p,
  .service-card.expanded .service-details-desc {
    display: none;
  }

  .service-card.expanded h3 {
    font-size: 1.1rem;
  }

  .service-card.expanded .service-icon {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(232, 114, 12, 0.4);
    transform: scale(1.04) rotate(-4deg);
    animation: iconGlow 2.4s ease-in-out 0.4s infinite;
  }

  .service-card.expanded .service-chevron {
    background: var(--color-accent);
    color: #ffffff;
    transform: rotate(180deg);
  }

  .service-card.expanded::after {
    top: 0.3rem;
    right: 0.75rem;
    transform: none;
    font-size: 3.25rem;
    opacity: 0.65;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    -webkit-background-clip: text;
    background-clip: text;
  }

  /* Details block */
  .service-card .service-details {
    grid-area: details;
  }

  .service-card.expanded .service-details {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(232, 114, 12, 0.2);
  }

  .service-card.expanded .service-details-desc {
    display: none;
  }

  .service-card.expanded .service-details-list {
    gap: 0.5rem;
    padding-top: 0;
    border-top: 0;
  }

  .service-card.expanded .service-details-list li {
    font-size: 0.85rem;
  }

  /* Entry animation: slide up subtly */
  .services-grid .service-card.fade-in {
    transform: translateY(20px);
  }

  .services-grid .service-card.fade-in.visible {
    transform: translateY(0);
  }

  .stagger-children .fade-in:nth-child(1) { transition-delay: 0s; }
  .stagger-children .fade-in:nth-child(2) { transition-delay: 0.05s; }
  .stagger-children .fade-in:nth-child(3) { transition-delay: 0.1s; }
  .stagger-children .fade-in:nth-child(4) { transition-delay: 0.15s; }
  .stagger-children .fade-in:nth-child(5) { transition-delay: 0.2s; }
  .stagger-children .fade-in:nth-child(6) { transition-delay: 0.25s; }
  .stagger-children .fade-in:nth-child(7) { transition-delay: 0.3s; }
}

@keyframes iconGlow {
  0%, 100% {
    box-shadow: 0 12px 28px rgba(232, 114, 12, 0.4),
                0 0 0 0 rgba(232, 114, 12, 0.35);
  }
  50% {
    box-shadow: 0 14px 34px rgba(232, 114, 12, 0.5),
                0 0 0 10px rgba(232, 114, 12, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card.expanded .service-icon {
    animation: none !important;
  }
}

/* ========================================
   Responsive: Tablet+
   ======================================== */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form {
    padding: 3rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}