/* =============================================
   ShapesMatrix — Custom Styles
   Only for effects that Tailwind cannot handle:
   noise texture, radial glows, custom keyframes.
   ============================================= */

/* ── Noise Texture Overlay ── */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ── Radial Glow Behind Hero Images ── */
.hero-glow {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55vw;
  height: 55vh;
  background: radial-gradient(ellipse at center,
      rgba(91, 90, 255, 0.06) 0%,
      rgba(91, 90, 255, 0.025) 35%,
      transparent 68%);
  pointer-events: none;
  z-index: 1;
}

/* ── CTA Green Accent Square ── */
.cta-accent {
  width: 8px;
  height: 8px;
  background-color: #a3e635;
  flex-shrink: 0;
}

/* ── Status Pill Dot Pulse ── */
@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(0.85);
  }
}

.pill-dot {
  animation: pulse-dot 2.2s ease-in-out infinite;
}

/* ── Capability Strip Separator Diamond ── */
.cap-diamond {
  width: 5px;
  height: 5px;
  background: #3a3a4a;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── Scroll Text Vertical ── */
.scroll-vertical {
  writing-mode: vertical-rl;
}

/* ── Floating Card Shadow ── */
.float-card {
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.55),
    0 8px 20px -6px rgba(0, 0, 0, 0.3);
}

/* ── Selection ── */
::selection {
  background-color: #5B5AFF;
  color: #fff;
}

/* ── Smooth Scrollbar ── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
  background: #2a2a35;
  border-radius: 2px;
}

/* ── Capability strip horizontal scroll on mobile ── */
@media (max-width: 1023px) {
  .cap-strip-inner {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .cap-strip-inner::-webkit-scrollbar {
    display: none;
  }

  .cap-strip-inner>span {
    scroll-snap-align: start;
  }
}

/* =============================================
   SECTION 4: SERVICE CARDS (Stacked Layout & SVG Keyframes)
   ============================================= */

/* Stacked card responsive styling */
#services-stack-wrapper {
  perspective: 1000px;
}

.services-stack-card {
  will-change: transform, opacity;
  transform-style: preserve-3d;
  box-shadow: 0 30px 100px -20px rgba(0, 0, 0, 0.75),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.services-stack-card:hover {
  border-color: rgba(91, 90, 255, 0.25);
  box-shadow: 0 35px 120px -20px rgba(0, 0, 0, 0.85),
    0 0 25px rgba(91, 90, 255, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* ── Inline SVG Keyframe Animations ── */

/* Card 01: UI/UX Design Cursor Pulse & Floating Blocks */
@keyframes cursor-move {

  0%,
  100% {
    transform: translate(180px, 160px);
  }

  33% {
    transform: translate(110px, 110px);
  }

  66% {
    transform: translate(250px, 210px);
  }
}

.ui-cursor {
  animation: cursor-move 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform-origin: center center;
}

@keyframes click-pulse {
  0% {
    r: 0;
    opacity: 1;
  }

  40% {
    r: 24px;
    opacity: 0;
  }

  100% {
    r: 24px;
    opacity: 0;
  }
}

.cursor-click-pulse {
  animation: click-pulse 2.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  transform-origin: center center;
}

@keyframes ui-float-blocks {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.ui-blocks {
  animation: ui-float-blocks 5s ease-in-out infinite;
}

/* Card 02: Frontend React Hub Spin & Code brackets pulse */
@keyframes react-hub-spin {
  0% {
    transform: translate(200px, 150px) rotate(0deg);
  }

  100% {
    transform: translate(200px, 150px) rotate(360deg);
  }
}

.fe-nodes {
  animation: react-hub-spin 25s linear infinite;
  transform-origin: center center;
}

@keyframes tag-pulse {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

.fe-tag-lt,
.fe-tag-gt {
  animation: tag-pulse 3s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes code-blink {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.85;
  }
}

.fe-tag-text {
  animation: code-blink 2s ease-in-out infinite;
}

/* Card 03: Design Token Grid pulsing scale */
@keyframes token-breathing {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.02);
    opacity: 0.95;
  }
}

.ds-modules {
  animation: token-breathing 6s ease-in-out infinite;
  transform-origin: center center;
}

/* Card 04: Prototyping tap & modal trigger */
@keyframes tap-glow {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.4;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.proto-tap-trigger {
  animation: tap-glow 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform-origin: 130px 185px;
}

@keyframes flow-line-pulse {
  0% {
    stroke-dashoffset: 24;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

.proto-flow-arrow {
  animation: flow-line-pulse 1.8s linear infinite;
}

@keyframes modal-pop {

  0%,
  100% {
    transform: scale(0.96) translateY(2px);
    opacity: 0.95;
  }

  50% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.proto-modal {
  animation: modal-pop 4s ease-in-out infinite;
  transform-origin: 260px 155px;
}

/* Card 05: Product Strategy roadmap pulse */
@keyframes strat-glow-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
    fill: #D9FF3F;
  }

  50% {
    transform: scale(1.5);
    opacity: 1;
    fill: #fff;
    box-shadow: 0 0 15px #D9FF3F;
  }
}

.strat-node-pulse {
  animation: strat-glow-pulse 2.5s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes tree-float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(2px, -3px);
  }
}

.strat-tree,
.strat-nodes {
  animation: tree-float 5s ease-in-out infinite;
}

/* Card 06: AI Concentric loop rotation & Core Pulse */
@keyframes spin-cw {
  0% {
    transform: translate(200px, 150px) rotate(0deg);
  }

  100% {
    transform: translate(200px, 150px) rotate(360deg);
  }
}

.ai-ring-spin-cw {
  animation: spin-cw 18s linear infinite;
  transform-origin: center center;
}

@keyframes spin-ccw {
  0% {
    transform: translate(200px, 150px) rotate(360deg);
  }

  100% {
    transform: translate(200px, 150px) rotate(0deg);
  }
}

.ai-ring-spin-ccw {
  animation: spin-ccw 14s linear infinite;
  transform-origin: center center;
}

@keyframes ai-core-glowing {

  0%,
  100% {
    fill: #D9FF3F;
    filter: drop-shadow(0 0 4px rgba(217, 255, 63, 0.5));
  }

  50% {
    fill: #5B5AFF;
    filter: drop-shadow(0 0 12px rgba(91, 90, 255, 0.8));
  }
}

.ai-core-pulse {
  animation: ai-core-glowing 4s ease-in-out infinite;
  transform-origin: 200px 150px;
}




/* =============================================
   FIGMA TYPOGRAPHY SYSTEM (EXACT PARITY)
   ============================================= */

/* H1: Syne, 72px, 100% line height, -4% letter spacing */
.figma-h1 {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  line-height: 1.1;
  /* Improved mobile line height for readability */
  letter-spacing: -0.04em;
  font-weight: 700;
}

@media (min-width: 1024px) {
  .figma-h1 {
    font-size: 72px;
    line-height: 100%;
    /* Restored figma spec for desktop */
  }
}

/* H2: Syne, 44px, 100% line height, -4% letter spacing */
.figma-h2 {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

@media (min-width: 1024px) {
  .figma-h2 {
    font-size: 44px;
    line-height: 100%;
  }
}

/* H3: Syne, 24px, 100% line height, -4% letter spacing */
.figma-h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 24px);
  line-height: 100%;
  letter-spacing: -0.04em;
  font-weight: 700;
}

@media (min-width: 1024px) {
  .figma-h3 {
    font-size: 24px;
  }
}

/* Body Large: DM Sans, 16px, 140% line height, -2% letter spacing */
.figma-body-large {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: -0.02em;
  font-weight: 400;
}

/* Body (Default): DM Sans, 14px, 140% line height, -2% letter spacing */
.figma-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 140%;
  letter-spacing: -0.02em;
  font-weight: 400;
}

/* Body Small: DM Sans, 12px, 140% line height, -2% letter spacing */
.figma-body-small {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  line-height: 140%;
  letter-spacing: -0.02em;
  font-weight: 400;
}

/* Body Large (Special direction to follow):
   DM Sans, 12px, 100% line height, 20% letter spacing */
.figma-body-large-accent {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 0.20em;
  font-weight: 600;
  text-transform: uppercase;
}

/* =============================================
   SECTION 5: INTERACTIVE TIMELINE STATES
   ============================================= */

.timeline-step {
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active Step State */
.timeline-step.active {
  opacity: 1 !important;
}

.timeline-step.active .step-node {
  background-color: #5B5AFF !important;
  border-color: #5B5AFF !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(91, 90, 255, 0.5),
    0 0 40px rgba(91, 90, 255, 0.15);
}

.timeline-step.active .step-title {
  color: #ffffff !important;
}

.timeline-step.active .step-desc {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Completed (Story Progression) Step State — Never deactivates */
.timeline-step.completed {
  opacity: 1 !important;
}

.timeline-step.completed .step-node {
  background-color: #5B5AFF !important;
  border-color: #5B5AFF !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(91, 90, 255, 0.35);
}

.timeline-step.completed .step-title {
  color: rgba(255, 255, 255, 0.9) !important;
}

.timeline-step.completed .step-desc {
  color: rgba(255, 255, 255, 0.6) !important;
}


/* =============================================
   PREMIUM GLASS-MORPHISM LENS CURSOR
   ============================================= */

/* ── Hide native cursor (desktop only) ── */
@media (min-width: 1024px) {

  .custom-cursor,
  .custom-cursor * {
    cursor: none !important;
  }
}

/* ── Glass Lens Cursor Container ── */
#cursor-lens {
  position: fixed;
  top: 0;
  left: 0;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background-color: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(2.5px) brightness(1.05) contrast(1.02);
  -webkit-backdrop-filter: blur(2.5px) brightness(1.05) contrast(1.02);
  pointer-events: none;
  z-index: 1000000;
  will-change: transform, width, height, border-radius, background-color, border, backdrop-filter;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 32px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 12px rgba(255, 255, 255, 0.15);
}

/* ── Subtle Glow Trail ── */
#cursor-trail-lens {
  position: fixed;
  top: 0;
  left: 0;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 999999;
  will-change: transform, width, height, border-radius;
}

/* ── Cursor Label Text ── */
#cursor-lens-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
}

/* ── Hide cursor on touch / small screens ── */
@media (max-width: 1023px) {

  #cursor-lens,
  #cursor-trail-lens {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════════════════
   SECTION 7: WHO WE WORK WITH — CSS Sticky Stacking Cards
   (Same technique as konpo.studio — pure CSS, no JS/GSAP)

   How it works:
   - --who-tab-h: how many px of the PREVIOUS card remain
     visible (peek) after the NEXT card stacks on top
   - Each .who-stack-card is position:sticky with a top
     that is progressively lower (nav + heading + N * tab)
   - Each card has a negative margin-top to pull it up so
     it overlaps the card above, creating the stack effect
   - padding-bottom on each card reserves space in the
     scroll flow for future cards to stack into
   ══════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  --who-nav-h: 64px;
  /* mobile nav height */
  --who-head-h: 165px;
  /* actual sticky heading height (mobile) */
  --who-tab-h: 40px;
  /* how much of prev card peeks (mobile) */
}

@media (min-width: 640px) {
  :root {
    --who-nav-h: 72px;
    --who-head-h: 185px;
    /* actual sticky heading height (tablet) */
    --who-tab-h: 80px;
  }
}

@media (min-width: 1024px) {
  :root {
    --who-nav-h: 80px;
    --who-head-h: 255px;
    /* actual sticky heading height (desktop) */
    --who-tab-h: 96px;
  }
}

/* ── Heading: sticky just below the nav ── */
.who-header {
  position: sticky;
  top: var(--who-nav-h);
}

/* ── Base card styles ── */
.who-stack-card {
  position: sticky !important;
  /* explicit height and min-height to allow h-full children to resolve correctly */
  height: 520px !important;
  min-height: 520px;
  /* scale down very slightly with each subsequent card for depth feel */
  will-change: transform;

  /* prevent any card contents from forcing the sticky element to grow */
  overflow: hidden;

  /* keep children from overflowing horizontally/vertically and breaking stacking */
  isolation: isolate;
}

/* ── Stacking Card Positions (No negative margins or padding overrides) ── */

.who-card-0 {
  top: calc(var(--who-nav-h) + var(--who-head-h));
  z-index: 1;
}

.who-card-1 {
  top: calc(var(--who-nav-h) + var(--who-head-h) + var(--who-tab-h) * 1);
  z-index: 2;
}

.who-card-2 {
  top: calc(var(--who-nav-h) + var(--who-head-h) + var(--who-tab-h) * 2);
  z-index: 3;
}

.who-card-3 {
  top: calc(var(--who-nav-h) + var(--who-head-h) + var(--who-tab-h) * 3);
  z-index: 4;
}

/* ── Container scroll space ── */
.who-cards-list {
  /* Ensure sticky stack ends cleanly and doesn't bleed into footer/next sections */
  padding-bottom: 260px !important;
  position: relative;
}


/* ── Mobile and Tablet: scroll naturally (prevents overflow/blank spaces) ── */
@media (max-width: 1023px) {
  .who-stack-card,
  .who-card-0,
  .who-card-1,
  .who-card-2,
  .who-card-3 {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: auto;
  }

  .who-stack-card {
    margin-bottom: 1.5rem;
  }

  .who-header {
    position: relative !important;
    top: auto !important;
    padding-top: 2.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .who-cards-list {
    padding-bottom: 40px !important;
  }
}

/* ── Large Devices: height and spacing adjustments ── */
@media (min-width: 1024px) {
  .who-stack-card {
    /* explicit height of 550px for large devices only */
    height: 550px !important;
    min-height: 550px;
    padding: 3.5rem !important;
    /* restore original p-14 padding */
  }
}

/* ── Zoom Hero Cover Image by 30% on Small Devices ── */
@media (max-width: 767px) {
  #hero-cover img {
    transform: scale(1.3);
    transform-origin: center center;
  }
}