/* Continuous liquid field — deep blue, saturated purple, white type. */

:root {
  --ink: #070b22;
  --brand: #0c2084;
  --blue: #2f62ff;
  --purple: #7a4dff;
  --glow: #9eb4ff;
  --border: rgba(130, 160, 255, 0.34);
  --border-hover: rgba(170, 150, 255, 0.7);
}

html,
body {
  background: var(--ink);
  color: rgba(244, 247, 255, 0.94);
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -8%, rgba(12, 32, 132, 0.85), transparent 62%),
    radial-gradient(ellipse 40% 30% at 100% 20%, rgba(90, 40, 200, 0.35), transparent 60%),
    #070b22;
}

.atmo-orb {
  position: absolute;
  width: 48vw;
  height: 48vw;
}

.atmo-orb--a { top: -12vw; left: -10vw; }
.atmo-orb--b { top: 30vh; right: -14vw; width: 40vw; height: 40vw; }
.atmo-orb--c { bottom: -14vw; left: 18vw; width: 52vw; height: 34vw; }

.atmo-orb span,
.atmo-sheen {
  display: block;
  width: 100%;
  height: 100%;
}

.atmo-sheen {
  position: absolute;
  inset: -12%;
}

.atmo-orb span {
  filter: blur(26px);
}

.atmo-orb--a span {
  background: radial-gradient(circle at 40% 40%, rgba(47, 98, 255, 0.75), rgba(12, 32, 132, 0.2) 48%, transparent 72%);
}

.atmo-orb--b span {
  background: radial-gradient(circle at 50% 50%, rgba(122, 77, 255, 0.62), transparent 68%);
}

.atmo-orb--c span {
  background: radial-gradient(circle at 50% 40%, rgba(20, 50, 180, 0.8), rgba(255, 255, 255, 0.08) 28%, transparent 70%);
}

.atmo-sheen {
  background:
    radial-gradient(ellipse at calc(16% + var(--p, 0) * 40%) calc(18% + var(--p, 0) * 50%), rgba(70, 120, 255, 0.28), transparent 42%),
    radial-gradient(ellipse at calc(82% - var(--p, 0) * 28%) calc(72% - var(--p, 0) * 16%), rgba(122, 77, 255, 0.26), transparent 46%);
}

/* One field. Sections melt instead of stacking as slabs. */
.hero,
.section--blue,
.section--purple,
.niches,
.process,
.site-footer {
  background: transparent;
}

.hero,
.section,
.niches,
.process,
.demos,
.ai,
.founder,
.contact {
  position: relative;
}

.niches-scrub-pin,
.process-scrub-pin {
  background:
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(122, 77, 255, 0.22), transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(12, 32, 132, 0.45), transparent 62%),
    #070b22;
}

.section-title em,
.title-accent {
  color: #c4b6ff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  text-shadow: 0 0 28px rgba(122, 77, 255, 0.45);
}

.section-eyebrow {
  color: #9eb4ff;
  letter-spacing: 0.22em;
}

.hero-badge {
  border-color: rgba(158, 180, 255, 0.4);
  background: rgba(12, 32, 132, 0.35);
  color: #e8eeff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 24px rgba(47, 98, 255, 0.2);
}

.badge-dot {
  background: #7aa2ff;
  box-shadow: 0 0 12px #7aa2ff;
}

.site-header.is-scrolled {
  background: rgba(7, 11, 34, 0.78);
  border-bottom: 1px solid rgba(130, 160, 255, 0.18);
}

/* Premium frames: luminous rim, not a gray hairline */
.service-card,
.craft-pillar,
.demo-card,
.contact-form,
.ai-feature,
.founder-accent-card,
.niches-visual,
.niche-mobile-card,
.hero-gallery-main,
.hero-gallery-thumb,
.founder-img-wrap,
.ai-visual-card,
.niches-universal-bar {
  border: 1px solid rgba(150, 176, 255, 0.42);
  background: linear-gradient(180deg, rgba(18, 36, 120, 0.55), rgba(8, 12, 36, 0.92));
  box-shadow:
    0 0 0 1px rgba(6, 10, 40, 0.85),
    0 28px 70px rgba(2, 6, 28, 0.5),
    0 0 42px rgba(60, 80, 220, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.service-card,
.demo-card,
.niche-mobile-card,
.contact-form {
  border-radius: 24px;
}

.hero-gallery-main,
.hero-gallery-thumb,
.founder-img-wrap,
.niches-visual {
  border-radius: 22px;
  overflow: hidden;
}

.service-card:hover,
.demo-card:hover {
  border-color: rgba(196, 182, 255, 0.75);
  box-shadow:
    0 0 0 1px rgba(122, 77, 255, 0.35),
    0 32px 80px rgba(12, 32, 132, 0.45),
    0 0 60px rgba(122, 77, 255, 0.22);
}

.service-number,
.ai-feature-number,
.craft-pillar-num {
  color: #b9a6ff;
}

.btn-primary,
.nav-cta,
.mobile-menu-cta {
  background: linear-gradient(135deg, #3d6dff 0%, #0c2084 48%, #6a42d8 100%);
  color: #f7f8ff;
  border: 1px solid rgba(190, 205, 255, 0.35);
  box-shadow:
    0 14px 34px rgba(12, 32, 132, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:hover,
.nav-cta:hover,
.mobile-menu-cta:hover {
  background: linear-gradient(135deg, #6d93ff, #1a36b0 50%, #8a62f0);
  color: #ffffff;
  box-shadow:
    0 18px 46px rgba(80, 110, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-ghost,
.btn-outline {
  color: #f4f7ff;
  border: 1px solid rgba(158, 180, 255, 0.55);
  background: rgba(12, 32, 132, 0.28);
}

.btn-ghost:hover,
.btn-outline:hover {
  background: rgba(244, 247, 255, 0.96);
  color: #0c2084;
  border-color: #ffffff;
}

.founder-quote {
  border-left: 2px solid #7a4dff;
  background: linear-gradient(90deg, rgba(122, 77, 255, 0.14), transparent 80%);
}

.founder-quote p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  color: #f4f7ff;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  background: rgba(6, 10, 32, 0.55);
  border: 1px solid rgba(150, 176, 255, 0.28);
  color: #f4f7ff;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: #7aa2ff;
  box-shadow: 0 0 0 3px rgba(47, 98, 255, 0.25);
}

/* Watery joins — irregular, not a straight cut */
.liquid-seam {
  position: relative;
  z-index: 4;
  height: 210px;
  margin: -120px 0;
  pointer-events: none;
  overflow: visible;
  max-width: 100%;
}

.liquid-seam span,
.liquid-seam::before,
.liquid-seam::after {
  position: absolute;
  display: block;
  filter: blur(10px);
  pointer-events: none;
}

.liquid-seam span {
  left: -8%;
  top: 8%;
  width: 62%;
  height: 150%;
  background:
    radial-gradient(ellipse 46% 60% at 30% 50%, rgba(70, 130, 255, 0.62), transparent 68%),
    radial-gradient(ellipse 40% 50% at 70% 40%, rgba(122, 77, 255, 0.5), transparent 70%);
  border-radius: 58% 42% 63% 37% / 46% 62% 38% 54%;
  animation: liquidWash 18s ease-in-out infinite;
}

.liquid-seam::before {
  content: "";
  right: -6%;
  left: auto;
  top: -10%;
  width: 54%;
  height: 160%;
  background:
    radial-gradient(ellipse 50% 55% at 40% 60%, rgba(40, 70, 210, 0.55), transparent 70%),
    radial-gradient(ellipse 30% 40% at 70% 30%, rgba(180, 160, 255, 0.35), transparent 72%);
  border-radius: 42% 58% 36% 64% / 58% 40% 60% 42%;
  animation: liquidWash 22s ease-in-out infinite reverse;
}

.liquid-seam::after {
  content: "";
  left: 22%;
  top: 30%;
  width: 48%;
  height: 70%;
  background: radial-gradient(ellipse at 50% 50%, rgba(200, 214, 255, 0.28), transparent 70%);
  border-radius: 50% 50% 46% 54%;
  filter: blur(16px);
  animation: liquidSheen 14s ease-in-out infinite;
}

.liquid-seam--reel span {
  height: 180%;
  filter: blur(2px);
  opacity: 0.95;
}

@keyframes liquidWash {
  0%, 100% { border-radius: 42% 58% 50% 50% / 62% 38% 62% 38%; transform: translate3d(0, 0, 0) scaleX(1); }
  50% { border-radius: 60% 40% 46% 54% / 40% 70% 30% 60%; transform: translate3d(-4%, 6px, 0) scaleX(1.06); }
}

@keyframes liquidSheen {
  0%, 100% { transform: translateX(-8%); opacity: 0.35; }
  50% { transform: translateX(8%); opacity: 0.8; }
}

/* Demo reel: no boxed chapter, the sites just arrive */
.is-reel .niches-intro {
  margin-bottom: 0.35rem;
}

.is-reel .niches-stage {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}

.is-reel .niches-stage-glow {
  background: radial-gradient(circle, rgba(80, 110, 255, 0.28), transparent 68%);
}

.is-reel .niches-visual {
  border-radius: 28px;
  transform: translateZ(0);
}

.is-reel .niche-panel h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.is-reel .niches-nav-item {
  border-radius: 999px;
}

.is-reel .niches-nav-item.is-active {
  background: linear-gradient(135deg, rgba(47, 98, 255, 0.35), rgba(122, 77, 255, 0.35));
  box-shadow: inset 0 0 0 1px rgba(180, 200, 255, 0.4);
}

/* Reel chrome: sticky lock, clipped to the viewport */
.niches-scrub-pin {
  position: sticky;
  top: 0;
  overflow: hidden;
}

.milky {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 18% 8% at 18% 30%, rgba(190, 210, 255, 0.45), transparent 70%),
    radial-gradient(ellipse 28% 10% at 72% 58%, rgba(150, 110, 255, 0.38), transparent 72%),
    radial-gradient(ellipse 14% 6% at 46% 78%, rgba(90, 140, 255, 0.32), transparent 70%),
    radial-gradient(circle at 12% 70%, rgba(255, 255, 255, 0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.2) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 36%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 74%, rgba(210, 200, 255, 0.28) 0 1.5px, transparent 3px);
  filter: blur(0.2px);
  animation: milkyDrift 26s ease-in-out infinite;
  opacity: 0.9;
}

.is-reel .niches-scrub-inner {
  gap: 0.65rem;
  justify-content: center;
}

.is-reel .niches-intro,
.is-reel .niches-outro {
  overflow: visible;
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-reel .niches-intro .section-header,
.is-reel .niches-outro {
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.is-reel.is-mid .niches-intro {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.is-reel.is-mid .niches-outro {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.is-reel .niches-stage {
  background:
    linear-gradient(165deg, rgba(22, 40, 120, 0.55), rgba(8, 10, 28, 0.88));
  border: 1px solid rgba(186, 204, 255, 0.38);
  border-radius: 28px;
  padding: clamp(0.85rem, 1.6vw, 1.25rem);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -20px 40px rgba(80, 60, 180, 0.18),
    0 30px 70px rgba(2, 6, 24, 0.45),
    0 0 50px rgba(70, 90, 220, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.is-reel .niches-visual {
  aspect-ratio: 16 / 10;
  min-height: 0;
  height: auto;
  max-height: min(46vh, 440px);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(16, 28, 80, 0.4), rgba(6, 8, 20, 0.2)),
    #070a16;
  border: 1px solid rgba(200, 214, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 0 1px rgba(12, 32, 132, 0.45),
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.is-reel .niches-progress {
  margin-top: 0.45rem;
}

.is-reel .niches-universal-bar {
  padding: 0.85rem 1.1rem;
  background: linear-gradient(180deg, rgba(20, 36, 110, 0.55), rgba(8, 12, 36, 0.8));
  border: 1px solid rgba(186, 204, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.niche-preview {
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.9s;
}

@keyframes milkyDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-2%, 1.5%, 0) scale(1.05); }
}

/* Slow, polished hover — including the release */
.btn,
.nav-cta,
.nav-links a,
.service-card,
.demo-card,
.craft-pillar,
.ai-feature,
.niches-nav-item,
.niche-mobile-card,
.mobile-menu a,
#gcw-chat-bubble,
#gcw-send-btn,
.gcw-suggestion {
  transition-duration: 0.7s !important;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.hero-gallery-main,
.hero-gallery-thumb {
  position: relative;
  overflow: hidden;
}

.hero-gallery-main .shot,
.hero-gallery-thumb .shot {
  border-radius: inherit;
}

/* Mobile film: real space between previews */
@media (max-width: 900px) {
  .niche-mobile-card {
    margin: 0;
    border-radius: 22px;
  }

  .niches-mobile-grid,
  .demos-grid {
    gap: 1.35rem;
  }

  .niche-mobile-visual {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .niches-mobile {
    padding-top: 0.25rem;
  }

  .demos {
    padding-bottom: 1rem;
  }
}

@media (max-width: 800px) {
  .service-features,
  .craft-aside,
  .founder-text p + p,
  .ai-feature p {
    display: none;
  }

  .hero-copy,
  .hero-inner,
  .container {
    min-width: 0;
    max-width: 100%;
  }

  .hero-title,
  .hero-title-line,
  .hero-lead {
    overflow-wrap: break-word;
  }

  .hero-title {
    font-size: clamp(1.9rem, 8vw, 2.35rem);
  }

  .hero-actions,
  .niche-mobile-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }

  .hero-actions .btn,
  .services-cta .btn,
  .craft-cta,
  .demos-cta .btn,
  .process-cta .btn,
  .ai-cta .btn,
  .founder-content > .btn,
  .niche-mobile-actions .btn,
  .niches-mobile > .container > .btn,
  .contact-form .btn-full,
  .btn-full {
    width: auto;
    max-width: 100%;
    align-self: center;
    padding-inline: 1.15rem;
  }

  .services-cta,
  .demos-cta,
  .process-cta,
  .ai-cta,
  .craft-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .craft-content .section-title,
  .craft-content .section-eyebrow,
  .craft-content .section-text {
    align-self: stretch;
  }

  .contact-form {
    display: flex;
    flex-direction: column;
  }

  .contact-form .btn-full {
    align-self: center;
  }

  .liquid-seam {
    height: 140px;
    margin: -78px 0;
  }

  .hero-gallery {
    display: none !important;
  }

  .hero-copy,
  .hero-inner {
    text-align: center;
  }

  .hero-badge {
    margin-inline: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .hero-actions .btn {
    width: 50vw;
    min-width: 50vw;
    max-width: 50vw;
    justify-content: center;
    box-sizing: border-box;
  }
}

@media (prefers-reduced-motion: reduce) {
  .liquid-seam span,
  .liquid-seam::after,
  .atmo-orb span {
    animation: none;
  }
}

/* Hero + work previews stay inside the rounded frame */
.hero-shot,
.service-shot-link,
.live-frame {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: inherit;
  background: #050505;
}

.live-frame[hidden] {
  display: none !important;
}

.live-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hero-shot[hidden],
.service-shot-link[hidden] {
  display: none !important;
}

.hero-gallery-main .shot-photo-stage,
.service-card-visual--shot .shot-photo-stage {
  width: 250px;
  height: 250px;
}

.hero-gallery .shot-foto-stops,
.service-card-visual--shot .shot-foto-stops {
  display: none;
}

.hero-gallery .shot-hero,
.service-card-visual--shot .shot-hero {
  padding: 92px 40px 36px;
  gap: 20px;
}

.hero-gallery .shot-title,
.service-card-visual--shot .shot-title {
  font-size: 52px;
}

.service-card-visual--shot {
  position: relative;
}

/* Phone: one fitted preview, niche lock stays a single column */
@media (max-width: 800px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .container,
  .hero-inner,
  .hero-copy,
  .hero-gallery,
  .hero-gallery-main,
  .services-grid,
  .service-card,
  .demos-grid,
  .demo-card,
  .niches-scrub-inner,
  .niches-stage,
  .niches-pin-layout,
  .process-scrub-inner,
  .marquee-section,
  .site-header,
  .nav {
    min-width: 0;
    max-width: 100%;
  }

  .hero-gallery {
    display: none !important;
  }

  .hero-copy,
  .hero-inner,
  .hero-title,
  .hero-lead,
  .hero-actions {
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-inline: auto;
  }

  .hero-actions .btn {
    width: 50vw;
    min-width: 50vw;
    max-width: 50vw;
    justify-content: center;
    align-self: center;
    box-sizing: border-box;
  }

  .niches-pin-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: stretch;
  }

  .niches-nav {
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 0 0.4rem;
    gap: 0.35rem;
  }

  .niches-nav-item {
    flex: 0 0 auto;
    padding: 0.45rem 0.7rem;
  }

  .niches-nav-item .nav-label {
    white-space: nowrap;
    font-size: 0.75rem;
  }

  .is-reel .niches-visual {
    aspect-ratio: 16 / 10;
    height: auto;
    max-height: 28dvh;
    width: 100%;
  }

  .niches-intro .section-title {
    font-size: clamp(1.55rem, 7vw, 1.9rem);
  }

  .niche-panel h3 {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
  }

  .niche-panel p {
    font-size: 0.92rem;
    margin-bottom: 0.45rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .niche-panel-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .process-scrub-track .process-step.is-revealed {
    padding-bottom: 1rem;
  }
}

/* Touch: no hover motion */
@media (hover: none), (pointer: coarse) {
  .service-card,
  .demo-card,
  .craft-pillar,
  .ai-feature,
  .btn,
  .nav-cta,
  .nav-links a,
  .niches-nav-item,
  .niche-mobile-card,
  .mobile-menu a,
  #gcw-chat-bubble,
  #gcw-send-btn,
  .gcw-suggestion {
    transition: none !important;
  }

  .service-card:hover,
  .demo-card:hover,
  .craft-pillar:hover,
  .ai-feature:hover,
  .btn-primary:hover,
  .btn-ghost:hover,
  .btn-outline:hover,
  .nav-cta:hover,
  .niches-nav-item:hover {
    transform: none !important;
  }

  #gcw-chat-bubble:hover,
  #gcw-chat-bubble.show-text {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
  }

  #gcw-chat-bubble:hover .gcw-bubble-text,
  #gcw-chat-bubble.show-text .gcw-bubble-text {
    max-width: 0;
    margin-left: 0;
  }
}
