:root {
  --blue-dark: #2b004a;
  --blue-main: #4B0082;
  --blue-soft: #f1e8fa;
  --blue-light: #fbf7ff;
  --white: #ffffff;
  --gray-text: #635a6d;
  --gray-border: #e4d8ee;
  --shadow: 0 20px 50px rgba(75, 0, 130, 0.14);
  --gutter: clamp(20px, 2.2vw, 48px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Make all images responsive by default */
img,
picture,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--white);
  color: var(--blue-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  /* centered layout with a responsive horizontal gutter (equal whitespace at edges) */
  width: 100%;
  max-width: 1280px; /* slightly narrower site width for increased page whitespace */
  padding-inline: var(--gutter);
  margin: 0 auto;
  box-sizing: border-box;
}

@media (min-width: 1600px) {
  .container { max-width: 1440px; }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
}

.nav-container {
  min-height: 74px; /* increased by ~10px from compact state */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 18px; /* slightly increased vertical padding */
}

/* Tighter header padding so brand can sit nearer the left edge */
.site-header .container {
  padding-inline: clamp(6px, 1vw, 14px);
}

@media (max-width: 900px) {
  .nav-container {
    padding: 8px 10px; /* reduce horizontal padding for small screens */
  }
}

.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  font-size: 1rem;
  color: var(--blue-dark);
}

.logo-image {
  width: auto;
  max-width: 420px;
  max-height: 170px; /* larger brand area so logo fills top-left */
  height: auto;
  object-fit: contain;
  display: block;
}

/* Responsive caps so the logo scales down on narrower screens */
@media (max-width: 1200px) {
  .nav-typewriter { max-width: 45%; }
  .logo-image { max-width: 320px; max-height: 140px; }
}

@media (max-width: 900px) {
  .nav-typewriter { max-width: 60%; }
  .logo-image { max-width: 220px; max-height: 120px; }
}

@media (max-width: 560px) {
  .nav-typewriter { display: none; }
  .logo-image { max-width: 72px; max-height: 48px; }
}

.logo-svg {
  width: 120px;
  height: 78px;
  display: block;
  color: var(--blue-main);
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-main), #7a22bd);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(75, 0, 130, 0.28);
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 0.95rem;
  color: var(--gray-text);
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--blue-main);
  border-radius: 8px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s ease;
}

.nav-links a:hover {
  color: var(--blue-main);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-button {
  padding: 10px 16px; /* slightly smaller to fit compact header */
  border-radius: 10px;
  background: var(--blue-main);
  color: var(--white);
  font-weight: 800;
  font-size: 0.94rem;
  box-shadow: 0 10px 28px rgba(75, 0, 130, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(75, 0, 130, 0.28);
}

/* Header typewriter (replaces nav links) */
.nav-typewriter {
  display: flex;
  align-items: center;
  justify-content: center; /* center the typewriter text in available space */
  gap: 8px;
  color: var(--blue-dark);
  font-weight: 900;
  flex: 1 1 auto; /* flexible center area */
  margin: 0 12px; /* breathing room between logo and CTA */
  max-width: 40%;
  min-width: 0; /* allow truncation when space is tight */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.typewriter-text {
  font-weight: 900;
  font-size: 0.94rem;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block; /* don't expand to full width so cursor sits next to text */
  width: auto;
  line-height: 1; /* tighter vertical layout to sit nicely inside header */
  transform-origin: center; /* keeps scaling and transforms stable */
}

.cursor {
  display: inline-block;
  width: 2.5px;
  height: 1.15em; /* keep cursor visually aligned within a compact header */
  background: var(--blue-main);
  margin-left: 0; /* flush with last character */
  animation: blink 900ms steps(1) infinite;
}

/* Nudge cursor slightly left to sit flush with final letter glyph */
.cursor.nudge-left {
  transform: translateX(-0.12ch);
}

/* Hide cursor cleanly after typing completes */
.cursor.hidden {
  visibility: hidden;
  opacity: 0;
  transition: opacity 220ms ease;
  animation: none !important;
}

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

/* Hero */

.hero {
  position: relative;
  padding: clamp(40px, 6vw, 120px) 0 clamp(28px, 5vw, 84px);
  background:
    radial-gradient(circle at top left, rgba(75, 0, 130, 0.14), transparent 34%),
    linear-gradient(180deg, var(--blue-light), var(--white));
}

/* Hero Staggered Fade-In */
.hero-animate {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-grid {
  display: grid;
  /* Keep left content flexible and constrain the preview card to a sensible range */
  grid-template-columns: 1fr minmax(320px, 520px);
  align-items: center;
  gap: clamp(18px, 4vw, 64px);
}

.hero-content {
  max-width: 920px; /* keep headline and copy readable on wide screens */
}

.hero-card {
  align-self: center; /* vertically center the card with content */
  margin-left: auto; /* keep the card flush to the right column */
}

/* Prevent grid children from forcing overflow on small screens */
.hero-grid > * {
  min-width: 0;
}

/* ============================================================
   Hero Rotating Phrase Animation
   Replaces the final phrase and rotates between service labels
   ============================================================ */

.hero-rotating-headline {
  max-width: 980px;
  margin: 0 auto;
  color: var(--blue-dark);
  font-family: var(--font-display, inherit);
  font-size: 3rem;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  text-align: left;
}

.rotating-word-wrapper {
  position: relative;
  display: inline-block;
  min-width: 14ch; /* reserve space for the longest rotating phrase to reduce layout jitter */
  color: var(--blue-main);
  vertical-align: baseline;
  white-space: nowrap;
  overflow: hidden;
}

.rotating-word {
  display: inline-block;
  color: var(--blue-main);
  font-weight: 900;
  transform-origin: center bottom;
  animation: rotatingWordIn 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes rotatingWordIn {
  0% {
    opacity: 0;
    transform: translateY(0.35em) scale(0.96);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.rotating-word.is-exiting {
  animation: rotatingWordOut 0.42s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes rotatingWordOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-0.25em) scale(1.04);
    filter: blur(8px);
  }
}

@media (max-width: 700px) {
  .hero-rotating-headline { font-size: 2.1rem; line-height: 1 }
  .rotating-word-wrapper { display: block; min-width: 0; margin-top: 0.12em }
}

@media (prefers-reduced-motion: reduce) {
  .rotating-word, .rotating-word.is-exiting { animation: none; filter: none; transform: none }
}


/* (search simulation removed) */

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--blue-main);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #ead7ff;
}

.hero h1 {
  max-width: 920px;
  font-size: 4.45rem;
  line-height: 1.02;
  letter-spacing: 0;
  margin-bottom: 24px;
}

.hero-text {
  max-width: 620px;
  color: var(--gray-text);
  font-size: 1.13rem;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Build process grid & attention-grabbing hover effects */
.build-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 2.6vw, 32px);
  align-items: start;
}

.build-step {
  background: var(--white);
  border-radius: 14px;
  padding: 22px;
  transition: transform 360ms cubic-bezier(0.2,0.9,0.2,1), box-shadow 360ms ease, background 360ms ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-border);
}

.build-step:hover,
.build-step:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 18px 42px rgba(75,0,130,0.12);
}

.build-step .build-step-number {
  font-weight: 900;
  color: var(--blue-main);
  margin-bottom: 10px;
}

.build-step .build-step-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue-main);
  font-weight: 900;
  margin-bottom: 12px;
  transition: transform 360ms ease, filter 360ms ease, background 360ms ease;
}

/* 1: Web Applications — expand + subtle grid glow + icon rotate */
.build-process-grid > .build-step:nth-child(1):hover {
  background: linear-gradient(180deg, rgba(75,0,130,0.02), var(--white));
}
.build-process-grid > .build-step:nth-child(1):hover .build-step-icon {
  transform: rotate(-12deg) scale(1.06);
  background: linear-gradient(135deg, var(--blue-main), #7a22bd);
  color: #fff;
}
.build-process-grid > .build-step:nth-child(1):after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 120%;
  background: radial-gradient(600px 200px at 10% 20%, rgba(75,0,130,0.06), transparent 12%);
  opacity: 0;
  transition: opacity 420ms ease;
}
.build-process-grid > .build-step:nth-child(1):hover:after { opacity: 1; }

/* 2: Mobile Applications — slide-in accent and slight skew */
.build-process-grid > .build-step:nth-child(2):hover {
  transform: translateY(-6px) skewX(-1deg);
  background: linear-gradient(90deg, rgba(122,34,189,0.02), var(--white));
}
.build-process-grid > .build-step:nth-child(2):hover .build-step-icon {
  transform: translateX(6px) scale(1.08);
  box-shadow: 0 8px 20px rgba(122,34,189,0.14);
}

/* 3: Data & Analytics — subtle bar reveal and brighter border */
.build-process-grid > .build-step:nth-child(3):hover {
  border-color: rgba(75,0,130,0.18);
  background: linear-gradient(180deg, rgba(75,0,130,0.03), var(--white));
}
.build-process-grid > .build-step:nth-child(3):hover .build-step-icon {
  transform: scale(1.06);
  background: linear-gradient(90deg, #00b4d8, #4B0082);
  color: #fff;
}
.build-process-grid > .build-step:nth-child(3):before {
  content: '';
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 36%;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg,#7a22bd,#4B0082);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 420ms cubic-bezier(0.2,0.9,0.2,1);
}
.build-process-grid > .build-step:nth-child(3):hover:before { transform: scaleX(1); }

/* 4: AI Integration — neon glow and icon pulse */
.build-process-grid > .build-step:nth-child(4):hover {
  background: linear-gradient(180deg, rgba(155,61,232,0.03), var(--white));
  box-shadow: 0 18px 48px rgba(155,61,232,0.08);
}
.build-process-grid > .build-step:nth-child(4):hover .build-step-icon {
  transform: scale(1.12) rotate(6deg);
  background: radial-gradient(circle at 30% 30%, #9b3de8, #7a22bd);
  color: #fff;
  filter: drop-shadow(0 10px 26px rgba(155,61,232,0.2));
}

/* Accessibility — respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .build-step,
  .build-step .build-step-icon,
  .build-process-grid > .build-step:before,
  .build-process-grid > .build-step:after {
    transition: none !important;
    transform: none !important;
  }
  .build-step:hover { box-shadow: none; }
}

/* Build process grid: separated -> assembled scroll animation */
.build-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  align-items: start;
}

.build-step {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--gray-border);
  box-shadow: 0 6px 18px rgba(75,0,130,0.04);
  transition: transform 560ms cubic-bezier(0.16,1,0.3,1);
  transform-origin: center center;
  will-change: transform;
}

/* initial separated state */
.build-step.separated {
  /* remain visible but offset; no fade */
  opacity: 1;
  filter: none;
  transform: var(--initial-transform, translateY(18px) translateX(0) rotate(0deg));
}

/* final assembled state */
.build-step.assembled {
  opacity: 1;
  filter: none;
  transform: none;
}

/* keep icons consistent */
.build-step .build-step-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue-main);
  font-weight: 900;
  margin-bottom: 12px;
}

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

/* Fireworks removed */



.primary-button {
  background: var(--blue-main);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(75, 0, 130, 0.28);
}

.secondary-button {
  background: var(--white);
  color: var(--blue-dark);
  border: 1px solid var(--gray-border);
}

.primary-button:hover,
.secondary-button:hover,
.contact-button:hover {
  transform: translateY(-2px);
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  width: 100%;
  max-width: 560px; /* keep hero card from growing too large on ultra-wide screens */
}

.card-header {
  display: flex;
  gap: 8px;
  padding: 18px 22px;
  background: var(--blue-dark);
}

.card-header span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d8b7ff;
}

.dashboard-preview {
  padding: 30px;
  max-width: 460px; /* keep internal preview/lines from stretching excessively */
}

.preview-line {
  height: 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--blue-soft);
}

/* Oscillating width for the small top bars (subtle pulsing/length change) */
.dashboard-preview .preview-line {
  transform-origin: left center;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

/* Explicit base widths so the middle bar is between smallest and largest */
.dashboard-preview .preview-line.short {
  width: 48%;
  animation: barOscillateA 2.2s cubic-bezier(.4,0,.2,1) infinite;
  animation-delay: 0.08s;
}

.dashboard-preview .preview-line:nth-of-type(2) {
  width: 72%;
  animation: barOscillateB 2.6s cubic-bezier(.4,0,.2,1) infinite;
  animation-delay: 0.18s;
}

.dashboard-preview .preview-line:nth-of-type(3) {
  width: 92%;
  animation: barOscillateC 3s cubic-bezier(.4,0,.2,1) infinite;
  animation-delay: 0.28s;
}

@keyframes barOscillateA {
  0% { transform: scaleX(0.96); }
  50% { transform: scaleX(1.02); }
  100% { transform: scaleX(0.96); }
}

@keyframes barOscillateB {
  0% { transform: scaleX(0.95); }
  50% { transform: scaleX(1.04); }
  100% { transform: scaleX(0.95); }
}

@keyframes barOscillateC {
  0% { transform: scaleX(0.94); }
  50% { transform: scaleX(1.06); }
  100% { transform: scaleX(0.94); }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-preview .preview-line {
    animation: none !important;
    transform: none !important;
  }
}

.preview-line.short {
  width: 48%;
  background: #e1c7f7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 28px 0;
}

.stats-grid div {
  padding: 22px;
  border-radius: 8px;
  background: var(--blue-light);
  border: 1px solid var(--gray-border);
}

.stats-grid h3 {
  color: var(--blue-main);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
}

.stats-grid p {
  color: var(--gray-text);
  font-size: 0.9rem;
}

.preview-panel {
  padding: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2b004a, #4B0082);
  color: var(--white);
}

.preview-panel strong {
  display: block;
  margin-bottom: 8px;
}

.preview-panel p {
  color: #f3e8ff;
}

/* Sections */

.section {
  padding: 82px 0;
}

.two-column {
  display: grid;
  /* left column (headline) gets a comfortable max width, right column holds supporting copy */
  grid-template-columns: minmax(320px, 680px) 1fr;
  gap: 54px;
  align-items: center; /* vertically center the two columns for better balance */
}

.two-column .section-text,
.two-column > div:last-child {
  max-width: 520px; /* prevent the right column text from becoming too narrow/tall */
  margin-left: auto;
}

.two-column .about-copy {
  max-width: 660px;
  margin-left: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  font-size: clamp(1.05rem, 0.35vw + 1rem, 1.18rem);
  line-height: 1.78;
}

.about-copy p {
  max-width: 64ch;
}

@media (max-width: 900px) {
  /* Stack the two-column layout on small screens to avoid side-by-side cramped columns */
  .two-column {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .two-column > * { max-width: 100%; }

  .two-column .about-copy {
    gap: 14px;
    font-size: 1.05rem;
  }

  /* Disable scroll reveal animations on narrow screens to avoid layout shifts */
  .scroll-reveal {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

h2 {
  font-size: 3rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-text,
.section-heading p,
.feature-box p {
  color: var(--gray-text);
  font-size: 1.05rem;
}

.services-section {
  background: var(--blue-light);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin-bottom: 16px;
}

.services-grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card,
.portfolio-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 16px 36px rgba(75, 0, 130, 0.07);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  will-change: transform;
}

.service-card:hover,
.portfolio-card:hover {
  transform: translateY(-10px);
  border-color: rgba(54, 54, 54, 0.28);
  box-shadow: 0 26px 60px rgba(54, 54, 54, 0.14);
}

.service-card .icon,
.build-step-icon {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover .icon {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 16px 34px rgba(54, 54, 54, 0.22);
}

.icon {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--blue-main);
  font-size: 1.35rem;
  font-weight: 800;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card h3,
.portfolio-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card p,
.portfolio-card p {
  color: var(--gray-text);
}

/* Feature Section */

.feature-section {
  background: var(--white);
}

.feature-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  padding: 48px;
  /* ensure pillboxes have breathing room from the section edge on wide screens */
  padding-right: clamp(28px, 6vw, 120px);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #2b004a, #4B0082);
  color: var(--white);
}

.feature-box h2 {
  margin-bottom: 18px;
}

.feature-box p {
  color: #f3e8ff;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-list div {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  /* keep pill height but limit width so pills aren't too wide on large screens */
  width: min(86%, 480px);
  justify-self: center; /* center pills inside the grid */
  box-sizing: border-box;
}

.feature-list span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #ead7ff;
  font-weight: 800;
}

@media (max-width: 560px) {
  /* On small screens allow pills to use full available width for readability */
  .feature-list div { width: 100%; justify-self: stretch; }
}

/* Portfolio */

.portfolio-section {
  background: var(--blue-light);
}

/* Contact */

.contact-section {
  padding: 76px 0;
  background: var(--white);
}

.contact-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2b004a, #4B0082);
  color: var(--white);
  box-shadow: 0 22px 50px rgba(75, 0, 130, 0.25);
}

.contact-box h2 {
  margin-bottom: 14px;
}

.contact-box p {
  max-width: 650px;
  color: #f3e8ff;
}

.contact-button {
  background: var(--white);
  color: var(--blue-main);
  white-space: nowrap;
}

/* Footer */

.footer {
  padding: 28px 0;
  background: var(--blue-dark);
  color: #ead7ff;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.92rem;
}

/* Responsive */

@media (max-width: 900px) {
  /* hide long nav links on small screens; keep CTA visible */
  .nav-links {
    display: none;
  }

  /* hide the centered typewriter on narrower screens to avoid overflow */
  .nav-typewriter {
    display: none;
  }

  /* revert tighter header padding on narrow screens so nav elements have room */
  .site-header .container { padding-inline: var(--gutter); }

  .hero-grid {
    display: grid;
    /* single column on narrower screens so content stacks vertically */
    grid-template-columns: 1fr;
    align-items: start;
    gap: clamp(18px, 4vw, 36px);
  }
  .hero { padding-top: 72px; }

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

  .contact-box,
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  /* make header compact on phones */
  .logo-image { max-width: 72px; max-height: 48px; }
  .nav-button { padding: 10px 14px; font-size: 0.95rem; }

  /* Stack hero content and keep preview card constrained */
  .hero-grid { gap: 22px; }

  .hero-card {
    max-width: 100%;
    margin: 18px auto 0;
    border-radius: 8px;
  }

  .dashboard-preview {
    max-width: 100%;
    padding: 18px;
  }

  /* reduce headline size on small phones */
  .hero h1 {
    font-size: 2.42rem;
    line-height: 1.02;
    margin-bottom: 18px;
  }

  .hero-text { max-width: 100%; }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .contact-button {
    width: 100%;
  }

  .feature-box,
  .contact-box {
    padding: 32px 24px;
    border-radius: 8px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Project page form styles */
.project-hero {
  padding: 110px 0 70px;
  background:
    radial-gradient(circle at top left, rgba(75, 0, 130, 0.16), transparent 34%),
    linear-gradient(180deg, var(--blue-light), var(--white));
}

.project-hero-copy {
  max-width: 760px;
}

.project-hero h1 {
  max-width: 680px;
  font-size: 3.5rem;
  line-height: 1.02;
  letter-spacing: 0;
  margin-bottom: 22px;
}

.project-form-full {
  background: linear-gradient(180deg, #f8f1ff 0%, #ffffff 100%);
}

.project-form-card {
  display: grid;
  gap: 32px;
  padding: 48px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow);
}

.project-form-header h2 {
  margin: 16px 0 14px;
}

.project-form {
  display: grid;
  gap: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.form-group {
  display: grid;
  gap: 12px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 700;
  color: var(--blue-dark);
}

.project-form input,
.project-form textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--gray-border);
  background: #fbf7ff;
  color: var(--blue-dark);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-form textarea {
  min-height: 140px;
  resize: vertical;
}

.project-form input:focus,
.project-form textarea:focus {
  outline: none;
  border-color: var(--blue-main);
  box-shadow: 0 0 0 4px rgba(75, 0, 130, 0.08);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.form-note {
  color: var(--gray-text);
  max-width: 520px;
}

/* Email validation styles */
.error-input {
  border-color: #d32f2f !important;
  background-color: #ffebee !important;
}

.email-help {
  display: block;
  font-size: 0.85rem;
  margin-top: 6px;
  color: #d32f2f;
}

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

/* Form message styles */
.form-message {
  padding: 20px 22px;
  border-radius: 18px;
  margin-bottom: 16px;
  font-weight: 600;
}

.form-message strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.form-message p {
  margin: 0;
  font-weight: 500;
}

.form-message.success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
}

.form-message.error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}
/* Animations Styling for what we build section */
.build-process-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(54, 54, 54, 0.08), transparent 34%),
    var(--blue-light);
}

.build-process-section::before {
  content: "";
  position: absolute;
  inset: 64px auto auto 50%;
  width: min(900px, 90vw);
  height: min(900px, 90vw);
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(54, 54, 54, 0.08), transparent 65%);
  pointer-events: none;
}

.build-heading {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-inline: auto;
}

.build-process-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.build-step {
  position: relative;
  min-height: 330px;
  padding: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--gray-border);
  box-shadow: 0 18px 45px rgba(54, 54, 54, 0.08);
  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.build-step::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(54, 54, 54, 0.08), transparent 42%),
    radial-gradient(circle at top right, rgba(54, 54, 54, 0.12), transparent 34%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.build-step:hover {
  transform: translateY(-10px);
  border-color: rgba(54, 54, 54, 0.26);
  box-shadow: 0 26px 60px rgba(54, 54, 54, 0.14);
}

.build-step:hover::before {
  opacity: 1;
}

.build-step:hover .build-step-icon {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 16px 34px rgba(54, 54, 54, 0.22);
}

.build-step-number {
  position: absolute;
  top: 22px;
  right: 24px;
  color: rgba(54, 54, 54, 0.18);
  font-size: 3.4rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.build-step-icon {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  margin-bottom: 34px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--blue-main);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(54, 54, 54, 0.22);
}

.build-step h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  font-size: 1.25rem;
  letter-spacing: 0;
  color: var(--blue-dark);
}

.build-step p {
  position: relative;
  z-index: 1;
  color: var(--gray-text);
  font-size: 0.98rem;
}

/* Scroll reveal animation */

.scroll-reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.98);
  filter: blur(8px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.75s ease;
  transition-delay: var(--delay, 0ms);
}

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

/* Optional connecting line animation */

.build-process-grid::before {
  content: "";
  position: absolute;
  top: 55px;
  left: 7%;
  right: 7%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(54, 54, 54, 0.18),
    transparent
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s ease 0.25s;
}

.build-process-grid.line-visible::before {
  transform: scaleX(1);
}

/* Responsive */

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

  .build-process-grid::before {
    display: none;
  }
}

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

  .build-step {
    min-height: auto;
  }

  .build-step-number {
    font-size: 2.8rem;
  }
}

/* ============================================================
   Subtle Background Parallax
   ============================================================ */

.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-section > .container {
  position: relative;
  z-index: 2;
}

.parallax-glow {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  width: min(580px, 80vw);
  height: min(580px, 80vw);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(54, 54, 54, 0.12),
    transparent 65%
  );
  will-change: transform;
}

.glow-one {
  top: -220px;
  left: -160px;
}

.glow-two {
  right: -180px;
  top: -140px;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .hero-animate,
  .scroll-reveal,
  .statement-word,
  .brand-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .parallax-glow {
    transform: none !important;
  }
}

/* Animated brand statement */
.animated-statement {
  padding: 36px 0 48px;
  background: linear-gradient(180deg, var(--white), #fbf7ff);
}

.statement-wrap {
  text-align: center;
}

.statement-line {
  display: inline-flex;
  gap: 12px;
  align-items: baseline;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.statement-word {
  display: inline-block;
  opacity: 0;
  transform: translateX(-18px) scale(0.95);
  filter: blur(6px);
  white-space: nowrap;
}

@keyframes statementIn {
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

.statement-sub {
  color: var(--gray-text);
  font-size: 1rem;
  margin: 6px 0 0;
}

.brand-reveal {
  display: inline-block;
  color: var(--blue-main);
  font-weight: 900;
  opacity: 0;
  transform: translateY(6px);
}

.scroll-reveal.is-visible .statement-word {
  animation: statementIn 560ms cubic-bezier(.2,.9,.3,1) forwards;
  animation-delay: calc(var(--i) * 140ms);
}

.scroll-reveal.is-visible .brand-reveal {
  animation: brandReveal 640ms ease forwards;
  animation-delay: 720ms;
}

@keyframes brandReveal {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Intro overlay (fullscreen opening slogan) */
.no-scroll {
  overflow: hidden;
}

/* Overlay removed: related styles cleaned up. */

/* ============================================================
   Responsive Agency Refresh
   ============================================================ */

:root {
  --ink: #17151f;
  --ink-soft: #3f3a4a;
  --accent-teal: #008f8c;
  --accent-coral: #d95f43;
  --surface: #fbfbfd;
  --surface-alt: #f3f6f8;
  --radius-card: 8px;
  --radius-control: 8px;
  --shadow: 0 18px 44px rgba(23, 21, 31, 0.12);
  --gutter: 24px;
}

*,
*::before,
*::after {
  letter-spacing: 0 !important;
}

body {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 21, 31, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 21, 31, 0.035) 1px, transparent 1px),
    var(--white);
  background-size: 44px 44px;
}

.container {
  max-width: 1180px;
  padding-inline: var(--gutter);
}

@media (min-width: 1600px) {
  .container {
    max-width: 1240px;
  }
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(23, 21, 31, 0.12);
  backdrop-filter: blur(16px);
}

.site-header .container {
  padding-inline: var(--gutter);
}

.nav-container {
  min-height: 72px;
  padding: 10px 0;
  gap: 22px;
  flex-wrap: nowrap;
}

.logo {
  flex: 0 0 auto;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
}

.logo-image {
  width: auto;
  max-width: none;
  height: 44px;
  max-height: 44px;
}

.logo-text {
  font-size: 1rem;
  font-weight: 900;
  white-space: nowrap;
}

.nav-links {
  flex: 1 1 auto;
  justify-content: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: var(--radius-control);
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue-main);
  background: rgba(75, 0, 130, 0.08);
  outline: none;
}

.nav-typewriter {
  flex: 0 1 260px;
  max-width: 260px;
  margin: 0;
  justify-content: flex-end;
  color: var(--ink-soft);
}

.typewriter-text {
  font-size: 0.94rem;
  font-weight: 800;
}

.cursor {
  width: 2px;
  background: var(--accent-teal);
}

.nav-button {
  flex: 0 0 auto;
  padding: 11px 15px;
  border-radius: var(--radius-control);
  background: var(--ink);
  box-shadow: 0 10px 24px rgba(23, 21, 31, 0.18);
  font-size: 0.94rem;
  white-space: nowrap;
}

.nav-button:hover,
.nav-button:focus-visible {
  background: var(--blue-main);
  outline: none;
}

.hero {
  padding: 86px 0 64px;
  background:
    linear-gradient(120deg, rgba(75, 0, 130, 0.08), transparent 32%),
    linear-gradient(180deg, var(--surface), var(--white) 72%);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(0, 143, 140, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(75, 0, 130, 0.08) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
  animation: gridDrift 16s linear infinite;
}

@keyframes gridDrift {
  to {
    background-position: 68px 68px;
  }
}

.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: 52px;
  align-items: center;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  color: var(--accent-teal);
  font-size: 0.76rem;
  font-weight: 900;
}

.eyebrow.light {
  color: #bff2ef;
}

.hero h1 {
  max-width: 760px;
  font-size: 4.45rem;
  line-height: 1.02;
  margin-bottom: 22px;
}

.hero-text {
  max-width: 610px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.72;
}

.hero-actions {
  gap: 12px;
  margin-bottom: 28px;
}

.primary-button,
.secondary-button,
.contact-button {
  border-radius: var(--radius-control);
  min-height: 48px;
  padding: 0 20px;
  box-shadow: none;
}

.primary-button {
  background: var(--blue-main);
}

.secondary-button {
  border-color: rgba(23, 21, 31, 0.14);
}

.primary-button:hover,
.secondary-button:hover,
.contact-button:hover,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.contact-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(23, 21, 31, 0.14);
  outline: none;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
}

.hero-proof div {
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(23, 21, 31, 0.12);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.78);
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.94rem;
}

.hero-proof span {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.45;
}

.hero-card {
  max-width: 420px;
  border-radius: var(--radius-card);
  border-color: rgba(23, 21, 31, 0.14);
  box-shadow: 0 22px 50px rgba(23, 21, 31, 0.14);
}

.card-header {
  padding: 14px 18px;
  background: var(--ink);
}

.dashboard-preview {
  max-width: none;
  padding: 24px;
}

.preview-line {
  height: 10px;
  background: rgba(75, 0, 130, 0.11);
}

.dashboard-preview .preview-line.short {
  width: 42%;
}

.dashboard-preview .preview-line:nth-of-type(2) {
  width: 68%;
}

.dashboard-preview .preview-line:nth-of-type(3) {
  width: 86%;
}

.stats-grid {
  gap: 12px;
  margin: 24px 0;
}

.stats-grid div,
.preview-panel {
  border-radius: var(--radius-card);
}

.stats-grid div {
  background: var(--surface-alt);
  border-color: rgba(23, 21, 31, 0.1);
}

.stats-grid h3 {
  color: var(--accent-teal);
  font-size: 1.75rem;
}

.preview-panel {
  background:
    linear-gradient(135deg, rgba(0, 143, 140, 0.28), transparent 52%),
    var(--ink);
}

.preview-activity {
  display: grid;
  grid-template-columns: 0.7fr 1fr 0.48fr;
  gap: 8px;
  margin-top: 16px;
}

.preview-activity span {
  height: 38px;
  border-radius: var(--radius-card);
  background:
    linear-gradient(90deg, rgba(0, 143, 140, 0.26), rgba(75, 0, 130, 0.18)),
    var(--surface-alt);
  transform-origin: bottom;
  animation: activityRise 2.8s ease-in-out infinite;
}

.preview-activity span:nth-child(2) {
  animation-delay: 180ms;
}

.preview-activity span:nth-child(3) {
  animation-delay: 360ms;
}

@keyframes activityRise {
  0%, 100% {
    transform: scaleY(0.72);
  }

  50% {
    transform: scaleY(1);
  }
}

.section {
  padding: 88px 0;
}

h2,
.hero-rotating-headline {
  font-size: 3rem;
  line-height: 1.08;
}

.hero-rotating-headline {
  max-width: 680px;
  margin: 0;
}

.rotating-word-wrapper,
.rotating-word {
  color: var(--accent-coral);
}

.section-text,
.section-heading p,
.feature-box p {
  color: var(--ink-soft);
}

.services-section,
.build-process-section {
  background: var(--surface-alt);
}

.build-process-section::before {
  inset: 0;
  width: auto;
  height: auto;
  transform: none;
  background:
    linear-gradient(90deg, rgba(23, 21, 31, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 21, 31, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}

.build-heading {
  max-width: 760px;
}

.build-process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.build-step {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(23, 21, 31, 0.12);
  box-shadow: 0 16px 32px rgba(23, 21, 31, 0.08);
}

.build-step::before {
  background:
    linear-gradient(180deg, rgba(0, 143, 140, 0.12), transparent 42%),
    linear-gradient(90deg, rgba(217, 95, 67, 0.12), transparent 58%);
}

.build-step:hover,
.build-step:focus-within {
  transform: translateY(-7px);
  border-color: rgba(0, 143, 140, 0.42);
  box-shadow: 0 24px 44px rgba(23, 21, 31, 0.14);
}

.build-step-number {
  top: 20px;
  right: 20px;
  color: rgba(23, 21, 31, 0.12);
  font-size: 2.75rem;
}

.build-step-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-card);
  background: var(--ink);
  box-shadow: none;
}

.build-step h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
}

.build-step p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.build-step-link {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 20px;
  color: var(--accent-teal);
  font-size: 0.9rem;
  font-weight: 900;
}

.build-step-link::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-left: 8px;
  vertical-align: middle;
  background: currentColor;
  transform-origin: left;
  transition: transform 0.25s ease;
}

.build-step:hover .build-step-link::after {
  transform: scaleX(1.7);
}

.build-step.separated {
  opacity: 1;
  filter: none;
  transform: var(--initial-transform);
}

.build-step.assembled {
  transform: none;
}

.feature-box,
.contact-box {
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, rgba(0, 143, 140, 0.24), transparent 48%),
    var(--ink);
  box-shadow: 0 22px 46px rgba(23, 21, 31, 0.18);
}

.feature-list div {
  width: 100%;
  border-radius: var(--radius-card);
}

.feature-list span {
  border-radius: var(--radius-card);
  color: #bff2ef;
}

.contact-section {
  padding: 72px 0 88px;
}

.contact-button {
  color: var(--ink);
}

.footer {
  background: var(--ink);
}

.parallax-glow {
  width: min(760px, 92vw);
  height: 220px;
  border-radius: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0, 143, 140, 0.12) 0,
      rgba(0, 143, 140, 0.12) 1px,
      transparent 1px,
      transparent 18px
    );
  opacity: 0.56;
  transform: rotate(-8deg);
}

.glow-one {
  top: 24px;
  left: auto;
  right: -260px;
}

.glow-two {
  right: auto;
  left: -240px;
  top: 84px;
}

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

  .hero h1 {
    font-size: 3.55rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 34px;
  }

  .build-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 20px;
  }

  .nav-container {
    gap: 14px;
  }

  .nav-links {
    display: none;
  }

  .logo-image {
    height: 40px;
    max-height: 40px;
  }

  .hero {
    padding: 62px 0 52px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-content,
  .hero h1,
  .hero-text,
  .hero-card {
    max-width: 100%;
  }

  .hero-card {
    margin-left: 0;
  }

  .two-column,
  .feature-box {
    grid-template-columns: 1fr;
  }

  .two-column .section-text,
  .two-column > div:last-child {
    max-width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  .site-header .container {
    padding-inline: 16px;
  }

  .nav-container {
    min-height: 64px;
  }

  .logo-text {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-button {
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .hero h1 {
    font-size: 2.42rem;
    line-height: 1.06;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-proof div {
    min-height: auto;
  }

  .section {
    padding: 64px 0;
  }

  h2,
  .hero-rotating-headline {
    font-size: 2.1rem;
  }

  .rotating-word-wrapper {
    display: block;
  }

  .build-process-grid {
    grid-template-columns: 1fr;
  }

  .build-step {
    min-height: auto;
  }

  .feature-box,
  .contact-box {
    padding: 28px 20px;
  }

  .contact-box,
  .footer-content {
    align-items: stretch;
  }
}

@media (max-width: 460px) {
  :root {
    --gutter: 16px;
  }

  .logo-image {
    height: 34px;
    max-height: 34px;
  }

  .logo-text {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .contact-button {
    width: 100%;
  }

  .dashboard-preview {
    padding: 18px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .preview-activity span {
    animation: none !important;
  }
}

/* Project page overrides for the same responsive system. */
.pf-headline,
.pf-panel-header h2,
.project-hero h1 {
  letter-spacing: 0 !important;
}

.pf-headline,
.project-hero h1 {
  font-size: 3.5rem !important;
}

.pf-panel-header h2 {
  font-size: 2rem !important;
}

.pf-hero {
  padding: 82px 0 70px !important;
}

.pf-hero-grid {
  gap: 44px !important;
}

.pf-process-card,
.pf-card,
.pf-review,
.pf-proc-num,
.pf-pill,
.project-form-card,
.project-form input,
.project-form textarea,
.form-message {
  border-radius: var(--radius-card) !important;
}

@media (max-width: 700px) {
  .pf-headline {
    font-size: 2.35rem !important;
  }

  .pf-panel-header h2 {
    font-size: 1.72rem !important;
  }

  .pf-panel {
    padding: 28px 18px !important;
  }

  .pf-nav {
    gap: 12px;
    flex-direction: column-reverse;
    align-items: stretch !important;
  }
}

/* ============================================================
   Purple Studio Polish
   ============================================================ */

:root {
  --blue-dark: #211032;
  --blue-main: #4b0082;
  --blue-soft: #efe3fb;
  --blue-light: #fbf7ff;
  --ink: #211032;
  --ink-soft: #4f435d;
  --purple-700: #4b0082;
  --purple-600: #6420a6;
  --purple-500: #7c3cc5;
  --purple-300: #d9b8ff;
  --purple-100: #f4ebff;
  --accent-teal: #4b0082;
  --accent-coral: #6420a6;
  --surface: #fffaff;
  --surface-alt: #f7f0ff;
  --gray-text: #51465d;
  --gray-border: #ddc9ef;
  --shadow: 0 22px 55px rgba(75, 0, 130, 0.15);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(123, 60, 197, 0.12), transparent 28rem),
    linear-gradient(180deg, #fffaff 0%, #ffffff 42%, #fbf7ff 100%);
  background-size: auto;
}

.site-header {
  background: rgba(255, 250, 255, 0.94);
  border-bottom-color: rgba(75, 0, 130, 0.12);
  box-shadow: 0 10px 30px rgba(75, 0, 130, 0.06);
}

.nav-container {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(260px, 520px) minmax(120px, 1fr);
  align-items: center;
  gap: 18px;
}

.logo {
  justify-self: start;
}

.logo-image {
  height: 48px;
  max-height: 48px;
}

.logo-text {
  color: var(--blue-dark);
}

.nav-links {
  display: none !important;
}

.nav-typewriter {
  display: flex !important;
  justify-self: center;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  min-width: 0;
  color: var(--blue-main);
}

.typewriter-text {
  color: var(--blue-main);
  font-size: 1.12rem;
  font-weight: 900;
}

.cursor {
  background: var(--blue-main);
}

.nav-button {
  justify-self: end;
  background: linear-gradient(135deg, var(--blue-main), var(--purple-600));
  box-shadow: 0 12px 30px rgba(75, 0, 130, 0.24);
}

.nav-button:hover,
.nav-button:focus-visible {
  background: linear-gradient(135deg, #3b0068, var(--blue-main));
}

.hero {
  padding: 92px 0 72px;
  background:
    radial-gradient(circle at 82% 12%, rgba(123, 60, 197, 0.18), transparent 24rem),
    linear-gradient(135deg, #fffaff 0%, #f6ecff 45%, #ffffff 100%);
}

.hero::before {
  display: none;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.72fr);
  gap: 58px;
}

.eyebrow {
  color: var(--blue-main);
}

.hero h1,
h2,
.hero-rotating-headline {
  color: var(--blue-dark);
}

.hero h1 {
  max-width: 780px;
  font-size: 4.35rem;
}

.hero-text,
.section-text,
.section-heading p,
.build-step p,
.hero-proof span,
.stats-grid p {
  color: var(--gray-text);
}

.hero-text {
  font-size: 1.12rem;
}

.primary-button {
  background: linear-gradient(135deg, var(--blue-main), var(--purple-600));
  box-shadow: 0 14px 32px rgba(75, 0, 130, 0.22);
}

.secondary-button {
  color: var(--blue-main);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(75, 0, 130, 0.2);
}

.hero-proof {
  gap: 12px;
}

.hero-proof div {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(75, 0, 130, 0.16);
  box-shadow: 0 14px 34px rgba(75, 0, 130, 0.08);
}

.hero-proof strong {
  color: var(--blue-main);
}

.hero-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(75, 0, 130, 0.18);
  box-shadow:
    0 28px 70px rgba(75, 0, 130, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card-header,
.preview-panel,
.feature-box,
.contact-box,
.footer {
  background:
    radial-gradient(circle at top right, rgba(216, 184, 255, 0.2), transparent 36%),
    linear-gradient(135deg, #211032, #4b0082);
}

.preview-line {
  background: linear-gradient(90deg, rgba(75, 0, 130, 0.16), rgba(123, 60, 197, 0.08));
}

.stats-grid div {
  background: #fbf7ff;
  border-color: rgba(75, 0, 130, 0.14);
}

.stats-grid h3,
.rotating-word-wrapper,
.rotating-word,
.build-step-link {
  color: var(--blue-main);
}

.preview-activity span {
  background:
    linear-gradient(180deg, rgba(123, 60, 197, 0.3), rgba(75, 0, 130, 0.12)),
    #f4ebff;
  animation-duration: 3.8s;
}

.services-section,
.build-process-section {
  background:
    linear-gradient(180deg, #fbf7ff 0%, #ffffff 100%);
}

.build-process-section::before,
.parallax-glow {
  display: none !important;
}

.build-step {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(75, 0, 130, 0.16);
  box-shadow: 0 18px 44px rgba(75, 0, 130, 0.1);
}

.build-step::before {
  background:
    linear-gradient(180deg, rgba(123, 60, 197, 0.12), transparent 50%),
    radial-gradient(circle at top right, rgba(75, 0, 130, 0.14), transparent 36%);
}

.build-step:hover,
.build-step:focus-within {
  border-color: rgba(75, 0, 130, 0.38);
  box-shadow: 0 26px 56px rgba(75, 0, 130, 0.18);
}

.build-step-icon {
  background: linear-gradient(135deg, var(--blue-main), var(--purple-500));
  box-shadow: 0 14px 28px rgba(75, 0, 130, 0.2);
}

.build-step-number {
  color: rgba(75, 0, 130, 0.16);
}

.feature-box p,
.contact-box p,
.preview-panel p {
  color: #f3e8ff;
}

.feature-list div {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.feature-list span {
  color: #f4e8ff;
  background: rgba(255, 255, 255, 0.16);
}

.contact-button {
  color: var(--blue-main);
  background: #ffffff;
}

.footer {
  color: #f3e8ff;
}

@media (max-width: 1120px) {
  .nav-typewriter {
    display: flex !important;
  }

  .nav-container {
    grid-template-columns: auto minmax(210px, 1fr) auto;
  }

  .hero h1 {
    font-size: 3.45rem;
  }
}

@media (max-width: 760px) {
  .nav-container {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  .logo-text {
    display: none;
  }

  .typewriter-text {
    font-size: 0.86rem;
    line-height: 1.2;
    text-align: center;
  }

  .nav-button {
    padding: 10px 11px;
    font-size: 0.82rem;
  }

  .hero {
    padding: 58px 0 52px;
  }

  .hero h1 {
    font-size: 2.42rem;
  }
}

@media (max-width: 460px) {
  .nav-container {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .logo-image {
    height: 32px;
    max-height: 32px;
  }

  .typewriter-text {
    font-size: 0.78rem;
  }
}

/* ============================================================
   Services Scroll Showcase
   ============================================================ */

.services-section.build-process-section {
  position: relative;
  padding: 96px 0;
  overflow: clip;
  background:
    radial-gradient(circle at 20% 8%, rgba(216, 184, 255, 0.24), transparent 24rem),
    radial-gradient(circle at 84% 70%, rgba(123, 60, 197, 0.2), transparent 28rem),
    linear-gradient(135deg, #211032 0%, #4b0082 48%, #2b004a 100%);
}

.services-section .build-heading {
  max-width: 860px;
  margin: 0 0 48px;
  text-align: left;
}

.services-section .build-heading .eyebrow,
.services-section .build-heading h2,
.services-section .build-heading p {
  color: #ffffff;
}

.services-section .build-heading p {
  max-width: 760px;
  color: #efe1ff;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.74fr);
  gap: 34px;
  align-items: start;
}

.service-stack.build-process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 0;
}

.service-stack.build-process-grid::before {
  display: none;
}

.service-stack-card.build-step {
  min-height: 0;
  padding: 28px;
  border-radius: 12px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 22px 54px rgba(15, 4, 28, 0.28);
  backdrop-filter: blur(12px);
  transform-origin: top center;
  transition:
    opacity 520ms ease,
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}

.service-stack-card.build-step::before {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(216, 184, 255, 0.18), transparent 58%);
}

.service-stack-card.build-step:hover,
.service-stack-card.build-step:focus-within {
  border-color: rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 64px rgba(15, 4, 28, 0.36);
}

.service-stack-card .build-step-number {
  color: rgba(255, 255, 255, 0.2);
}

.service-stack-card .build-step-icon {
  color: #4b0082;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 4, 28, 0.22);
}

.service-stack-card h3,
.service-stack-card p,
.service-stack-card .build-step-link {
  color: #ffffff;
}

.service-stack-card p {
  max-width: 560px;
  color: #efe1ff;
}

.service-stack-card .build-step-link {
  color: #ffffff;
  opacity: 0.88;
}

.service-stack-card.separated {
  opacity: 0;
  transform: var(--initial-transform);
}

.service-stack-card.assembled {
  opacity: 1;
  transform: none;
}

.service-stack-card:nth-child(2).assembled {
  transition-delay: 40ms;
}

.service-stack-card:nth-child(3).assembled {
  transition-delay: 80ms;
}

.service-stack-card:nth-child(4).assembled {
  transition-delay: 120ms;
}

.services-side-panel {
  position: relative;
  top: auto;
  max-height: none;
  overflow: visible;
  overscroll-behavior: contain;
  border-radius: 16px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 28px 70px rgba(15, 4, 28, 0.34);
  backdrop-filter: blur(16px);
  scrollbar-width: auto;
  scrollbar-color: auto;
}

.services-side-panel::-webkit-scrollbar {
  display: none;
}

.services-side-panel::-webkit-scrollbar-thumb {
  display: none;
}

.side-panel-inner {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.side-panel-section {
  padding: 28px;
  border-radius: 12px;
  background: rgba(43, 0, 74, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.side-panel-section + .side-panel-section {
  min-height: 360px;
}

.side-panel-section .eyebrow,
.side-panel-section h2,
.side-panel-section p {
  color: #ffffff;
}

.side-panel-section h2 {
  margin-bottom: 16px;
  font-size: 2.05rem;
}

.side-panel-section p {
  color: #efe1ff;
}

.side-feature-list {
  margin-top: 24px;
}

.side-feature-list div {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.side-feature-list p {
  color: #ffffff;
}

.side-feature-list span {
  color: #4b0082;
  background: #ffffff;
}

@media (max-width: 980px) {
  .services-layout {
    grid-template-columns: 1fr;
  }

  .services-side-panel {
    position: relative;
    top: auto;
    max-height: none;
  }
}

@media (max-width: 620px) {
  .services-section.build-process-section {
    padding: 68px 0;
  }

  .services-section .build-heading {
    margin-bottom: 30px;
  }

  .service-stack-card.build-step,
  .side-panel-section {
    padding: 22px;
  }

  .services-side-panel {
    max-height: none;
  }

  .side-panel-inner {
    padding: 16px;
  }

  .side-panel-section h2 {
    font-size: 1.72rem;
  }

}

/* Light-page version of the showcase: page scroll, no internal scroll box. */
.services-section.build-process-section {
  overflow: visible;
  background:
    radial-gradient(circle at 14% 8%, rgba(123, 60, 197, 0.14), transparent 24rem),
    radial-gradient(circle at 92% 42%, rgba(75, 0, 130, 0.1), transparent 26rem),
    linear-gradient(180deg, #fffaff 0%, #ffffff 46%, #fbf7ff 100%);
}

.services-section .container {
  position: relative;
  z-index: 1;
}

.services-section .build-heading .eyebrow {
  color: var(--blue-main);
}

.services-section .build-heading h2 {
  color: var(--blue-dark);
}

.services-section .build-heading p {
  color: var(--gray-text);
}

.services-layout {
  grid-template-columns: minmax(390px, 0.88fr) minmax(360px, 0.82fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.service-stack.build-process-grid {
  position: sticky;
  top: 96px;
  align-self: start;
  gap: 14px;
}

.service-stack-card.build-step {
  background:
    radial-gradient(circle at top right, rgba(216, 184, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #211032, #4b0082);
  border-color: rgba(75, 0, 130, 0.18);
  box-shadow: 0 24px 58px rgba(75, 0, 130, 0.22);
  will-change: transform, opacity;
}

.service-stack.build-process-grid > .service-stack-card.build-step:hover,
.service-stack.build-process-grid > .service-stack-card.build-step:focus-within {
  background:
    radial-gradient(circle at top right, rgba(216, 184, 255, 0.24), transparent 34%),
    linear-gradient(135deg, #2b004a, #6420a6);
  border-color: rgba(75, 0, 130, 0.28);
  box-shadow: 0 30px 68px rgba(75, 0, 130, 0.28);
  transform: translateY(-4px);
}

.service-stack.build-process-grid > .service-stack-card.build-step:hover::before,
.service-stack.build-process-grid > .service-stack-card.build-step:focus-within::before {
  opacity: 1;
}

.service-stack.build-process-grid > .service-stack-card.build-step:hover .build-step-icon,
.service-stack.build-process-grid > .service-stack-card.build-step:focus-within .build-step-icon {
  color: var(--blue-main);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 4, 28, 0.26);
}

.service-stack.build-process-grid > .service-stack-card.build-step:hover h3,
.service-stack.build-process-grid > .service-stack-card.build-step:hover p,
.service-stack.build-process-grid > .service-stack-card.build-step:focus-within h3,
.service-stack.build-process-grid > .service-stack-card.build-step:focus-within p {
  color: #ffffff;
}

.service-stack-card .build-step-icon {
  color: var(--blue-main);
  overflow: hidden;
}

.service-stack-card .build-step-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transform: scale(1.25);
  transform-origin: center;
}

.services-side-panel {
  position: relative;
  top: auto;
  max-height: none;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  scrollbar-width: auto;
}

.services-side-panel::-webkit-scrollbar,
.services-side-panel::-webkit-scrollbar-thumb {
  display: none;
}

.side-panel-inner {
  gap: 26px;
  padding: 0;
}

.side-panel-section {
  min-height: 420px;
  padding: clamp(28px, 4vw, 44px);
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(216, 184, 255, 0.2), transparent 34%),
    linear-gradient(135deg, #2b004a, #4b0082);
  border: 1px solid rgba(75, 0, 130, 0.16);
  box-shadow: 0 24px 60px rgba(75, 0, 130, 0.2);
}

.side-panel-section .eyebrow,
.side-panel-section h2,
.side-panel-section p {
  color: #ffffff;
}

.side-panel-section p {
  color: #f1e4ff;
}

.side-feature-list div {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.18);
}

.side-feature-list span {
  color: var(--blue-main);
  background: #ffffff;
}

@media (max-width: 980px) {
  .services-layout {
    grid-template-columns: 1fr;
  }

  .service-stack.build-process-grid {
    position: relative;
    top: auto;
  }
}

@media (max-width: 620px) {
  .side-panel-section {
    min-height: auto;
  }
}

/* ============================================================
   Land-book Inspired Studio Details
   ============================================================ */

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
}

.hero-content {
  position: relative;
}

.hero-content::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -22px;
  width: min(280px, 42vw);
  height: 3px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--blue-main), var(--purple-300), transparent);
  transform-origin: left;
  animation: lineBreathe 5.6s ease-in-out infinite;
}

@keyframes lineBreathe {
  0%, 100% {
    transform: scaleX(0.72);
    opacity: 0.66;
  }

  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

.hero-card {
  position: relative;
  isolation: isolate;
  transform: rotate(1deg);
  transition:
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 420ms ease;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 12px;
  border: 1px solid rgba(75, 0, 130, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.hero-card::before {
  inset: 18px -16px -18px 18px;
  transform: rotate(-4deg);
}

.hero-card::after {
  inset: 34px -30px -34px 38px;
  transform: rotate(5deg);
  opacity: 0.52;
}

.hero-card:hover {
  transform: rotate(0deg) translateY(-6px);
}

.dashboard-preview {
  position: relative;
  overflow: hidden;
}

.dashboard-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 36%, rgba(255, 255, 255, 0.5) 48%, transparent 60% 100%);
  transform: translateX(-120%);
  animation: glassSweep 7s ease-in-out infinite;
}

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

  72% {
    transform: translateX(120%);
  }
}

.creative-tokens {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.creative-tokens span {
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blue-main);
  background: rgba(75, 0, 130, 0.08);
  border: 1px solid rgba(75, 0, 130, 0.12);
  font-size: 0.78rem;
  font-weight: 900;
}

.studio-marquee {
  overflow: hidden;
  border-block: 1px solid rgba(75, 0, 130, 0.14);
  background: #ffffff;
}

.marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  color: var(--blue-main);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  animation: marqueeDrift 26s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.marquee-track span::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple-300);
}

@keyframes marqueeDrift {
  to {
    transform: translateX(-34%);
  }
}

.services-section.build-process-section {
  padding-top: 108px;
  background:
    linear-gradient(90deg, rgba(75, 0, 130, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(75, 0, 130, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 14% 8%, rgba(123, 60, 197, 0.14), transparent 24rem),
    linear-gradient(180deg, #fffaff 0%, #ffffff 52%, #fbf7ff 100%);
  background-size: 56px 56px, 56px 56px, auto, auto;
}

.services-section .build-heading h2 {
  max-width: 760px;
  font-size: 3.25rem;
}

.service-stack-card.build-step {
  overflow: visible;
}

.service-stack-card.build-step::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 16px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), transparent);
  transform: scaleX(0.34);
  transform-origin: left;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.service-stack-card.build-step:hover::after,
.service-stack-card.build-step:focus-within::after {
  transform: scaleX(1);
}

.service-stack-card:nth-child(2) {
  margin-left: 18px;
}

.service-stack-card:nth-child(3) {
  margin-left: 36px;
}

.service-stack-card:nth-child(4) {
  margin-left: 54px;
}

.side-panel-section {
  position: relative;
  overflow: hidden;
}

.side-panel-section::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.contact-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbf7ff 100%);
}

.contact-box {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5vw, 62px);
}

.contact-box::before {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
}

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

.contact-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-metrics span {
  padding: 8px 10px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.84rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .service-stack-card:nth-child(n) {
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  .services-section .build-heading h2 {
    font-size: 2.15rem;
  }

  .marquee-track {
    animation-duration: 18s;
  }

  .creative-tokens {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content::after,
  .dashboard-preview::before,
  .marquee-track {
    animation: none !important;
  }

  .hero-card {
    transform: none !important;
  }
}

/* ============================================================
   Original Frenata Art Direction
   ============================================================ */

body {
  background:
    radial-gradient(circle at 8% 4%, rgba(75, 0, 130, 0.1), transparent 24rem),
    radial-gradient(circle at 94% 18%, rgba(216, 184, 255, 0.22), transparent 22rem),
    linear-gradient(180deg, #fffaff 0%, #ffffff 48%, #fbf7ff 100%);
}

.site-header {
  border-bottom: 1px solid rgba(75, 0, 130, 0.1);
}

.hero {
  border-bottom: 1px solid rgba(75, 0, 130, 0.08);
  background:
    linear-gradient(90deg, rgba(75, 0, 130, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(75, 0, 130, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 78% 22%, rgba(75, 0, 130, 0.13), transparent 24rem),
    linear-gradient(135deg, #fffaff 0%, #ffffff 52%, #f3e7ff 100%);
  background-size: 72px 72px, 72px 72px, auto, auto;
}

.hero .eyebrow {
  padding: 8px 10px;
  border: 1px solid rgba(75, 0, 130, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.hero h1 {
  text-wrap: balance;
}

.hero-text {
  color: #463551;
}

.hero-proof div {
  position: relative;
  overflow: hidden;
}

.hero-proof div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blue-main), var(--purple-300));
}

.art-board-section {
  padding: 96px 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(75, 0, 130, 0.1), transparent 24rem),
    #ffffff;
}

.art-board {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.art-board-copy h2 {
  max-width: 680px;
  margin-bottom: 18px;
  color: var(--blue-dark);
  font-size: 3.2rem;
  text-wrap: balance;
}

.art-board-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--gray-text);
  font-size: 1.08rem;
}

.art-board-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 88px;
  gap: 10px;
  transform: rotate(-1.2deg);
}

.art-tile {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 88px;
  padding: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(75, 0, 130, 0.14);
  box-shadow: 0 18px 40px rgba(75, 0, 130, 0.1);
}

.art-tile span {
  position: relative;
  z-index: 1;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  opacity: 0.72;
}

.art-tile strong {
  position: relative;
  z-index: 1;
  color: inherit;
  font-size: 1.12rem;
}

.tile-dark {
  grid-column: span 2;
  min-height: 186px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(216, 184, 255, 0.22), transparent 36%),
    linear-gradient(135deg, #211032, #4b0082);
}

.tile-light {
  grid-column: span 2;
  color: var(--blue-main);
  background: #fbf7ff;
}

.tile-line {
  grid-column: span 2;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(75, 0, 130, 0.12) 0 1px,
      transparent 1px 12px
    ),
    #ffffff;
}

.tile-orbit {
  grid-column: span 2;
  color: var(--blue-main);
  background: #ffffff;
}

.tile-orbit::before,
.tile-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(75, 0, 130, 0.2);
}

.tile-orbit::before {
  inset: 18px;
}

.tile-orbit::after {
  width: 18px;
  height: 18px;
  right: 28px;
  top: 28px;
  background: var(--blue-main);
  animation: orbitPulse 3.8s ease-in-out infinite;
}

@keyframes orbitPulse {
  0%, 100% {
    transform: scale(0.82);
    opacity: 0.72;
  }

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

.services-section .build-heading {
  padding-left: clamp(0px, 4vw, 56px);
  border-left: 3px solid rgba(75, 0, 130, 0.24);
}

.service-stack-card.build-step {
  border-radius: 14px;
}

.service-stack-card .build-step-number {
  top: 18px;
  right: 20px;
  color: rgba(255, 255, 255, 0.18);
  font-size: 3.1rem;
}

.side-panel-section {
  border-radius: 14px;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Project brief page receives the same art direction. */
.pf-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(75, 0, 130, 0.16), transparent 24rem),
    linear-gradient(135deg, #fffaff, #f4e8ff 54%, #ffffff) !important;
}

.pf-process-card,
.pf-card {
  border-color: rgba(75, 0, 130, 0.16) !important;
  box-shadow: 0 26px 70px rgba(75, 0, 130, 0.14) !important;
}

.pf-card {
  position: relative;
  overflow: hidden;
}

.pf-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(75, 0, 130, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(75, 0, 130, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
}

.pf-panel {
  position: relative;
  z-index: 1;
}

@media (max-width: 980px) {
  .art-board {
    grid-template-columns: 1fr;
  }

  .art-board-grid {
    transform: none;
  }
}

@media (max-width: 620px) {
  .art-board-section {
    padding: 68px 0;
  }

  .art-board-copy h2 {
    font-size: 2.15rem;
  }

  .art-board-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 78px;
  }

  .art-tile,
  .tile-dark,
  .tile-light,
  .tile-line,
  .tile-orbit {
    grid-column: span 1;
    min-height: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile-orbit::after {
    animation: none !important;
  }
}

/* ============================================================
   Animation Repair Pass
   ============================================================ */

.hero,
.services-section.build-process-section {
  position: relative;
  isolation: isolate;
}

.hero::before,
.services-section.build-process-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block !important;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(75, 0, 130, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(75, 0, 130, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.55;
  transform: translate3d(0, 0, 0);
  animation: none;
  will-change: auto;
}

.services-section.build-process-section::before {
  background-size: 56px 56px;
  opacity: 0.42;
  animation: none;
}

.hero > .container,
.services-section > .container {
  position: relative;
  z-index: 1;
}

.art-board-section {
  position: relative;
  overflow: hidden;
}

.art-board-section::before {
  content: "";
  position: absolute;
  inset: 12% -12% auto auto;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(75, 0, 130, 0.11), transparent 62%);
  animation: studioAura 9s ease-in-out infinite;
}

@keyframes studioAura {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(0.94);
    opacity: 0.54;
  }

  50% {
    transform: translate3d(-24px, 18px, 0) scale(1.08);
    opacity: 0.9;
  }
}

.art-board-grid {
  transform-origin: center;
  animation: none;
}

@keyframes boardFloat {
  0%, 100% {
    transform: rotate(-1.2deg) translate3d(0, 0, 0);
  }

  50% {
    transform: rotate(-0.35deg) translate3d(0, -8px, 0);
  }
}

.art-tile {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.96);
  will-change: opacity, transform;
}

.art-board-section.is-visible .art-tile {
  animation:
    tileReveal 780ms cubic-bezier(0.16, 1, 0.3, 1) forwards,
    tileFloat 5.6s ease-in-out 900ms infinite;
}

.art-board-section.is-visible .art-tile:nth-child(2) {
  animation-delay: 90ms, 1150ms;
}

.art-board-section.is-visible .art-tile:nth-child(3) {
  animation-delay: 180ms, 1300ms;
}

.art-board-section.is-visible .art-tile:nth-child(4) {
  animation-delay: 270ms, 1450ms;
}

.art-board-section.is-visible .art-tile:nth-child(5) {
  animation-delay: 360ms, 1600ms;
}

.art-board-section.is-visible .art-tile:nth-child(6) {
  animation-delay: 450ms, 1750ms;
}

@keyframes tileReveal {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes tileFloat {
  0%, 100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate3d(0, -12px, 0) scale(1.015);
  }
}

.tile-line {
  background:
    radial-gradient(circle at 22% 32%, rgba(75, 0, 130, 0.18) 0 7px, transparent 8px),
    linear-gradient(90deg, transparent 0 18%, rgba(75, 0, 130, 0.18) 18% 19%, transparent 19% 100%),
    linear-gradient(180deg, transparent 0 62%, rgba(75, 0, 130, 0.22) 62% 64%, transparent 64% 100%),
    #ffffff;
  animation: signalSweep 4.8s ease-in-out infinite;
}

@keyframes signalSweep {
  0%, 100% {
    filter: saturate(1);
  }

  50% {
    filter: saturate(1.35);
  }
}

.tile-orbit::before {
  animation: orbitRing 7s linear infinite;
}

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

.tile-dark::before,
.tile-light::before {
  content: "";
  position: absolute;
  inset: auto 14px 14px auto;
  width: 44px;
  height: 2px;
  border-radius: 8px;
  background: currentColor;
  opacity: 0.45;
  transform-origin: right;
  animation: tileMeter 2.8s ease-in-out infinite;
}

.tile-light::before {
  color: var(--blue-main);
}

@keyframes tileMeter {
  0%, 100% {
    transform: scaleX(0.35);
  }

  50% {
    transform: scaleX(1);
  }
}

@media (max-width: 980px) {
  .art-board-grid {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .services-section.build-process-section::before,
  .art-board-section::before,
  .art-board-grid,
  .art-board-section.is-visible .art-tile,
  .tile-line,
  .tile-orbit::before,
  .tile-dark::before,
  .tile-light::before {
    animation: none !important;
  }

  .art-tile {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   Simplified Outcome Orbit Section
   ============================================================ */

.studio-marquee,
.marquee-track,
.art-board-grid,
.art-tile {
  display: none !important;
}

.art-board-section {
  padding: 104px 0;
  background:
    radial-gradient(circle at 78% 40%, rgba(75, 0, 130, 0.12), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #fffaff 100%);
}

.art-board {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.82fr);
}

.art-board-copy .eyebrow {
  color: var(--blue-main);
}

.art-board-copy h2 {
  max-width: 760px;
  font-size: 3rem;
}

.studio-orbit {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(75, 0, 130, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(244, 232, 255, 0.9));
  border: 1px solid rgba(75, 0, 130, 0.14);
  box-shadow: 0 28px 70px rgba(75, 0, 130, 0.14);
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  transition:
    opacity 760ms ease,
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.art-board-section.is-visible .studio-orbit {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(75, 0, 130, 0.18);
}

.ring-outer {
  width: min(360px, 78%);
  aspect-ratio: 1;
  animation: orbitRotate 18s linear infinite;
}

.ring-middle {
  width: min(270px, 60%);
  aspect-ratio: 1;
  border-style: dashed;
  animation: orbitRotateReverse 14s linear infinite;
}

.ring-inner {
  width: min(160px, 38%);
  aspect-ratio: 1;
  border-color: rgba(75, 0, 130, 0.28);
  animation: orbitPulseSoft 4.8s ease-in-out infinite;
}

.orbit-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue-main);
  box-shadow: 0 0 0 12px rgba(75, 0, 130, 0.08);
}

.dot-one {
  animation: dotOrbitOne 8s linear infinite;
}

.dot-two {
  width: 11px;
  height: 11px;
  background: #7a22bd;
  animation: dotOrbitTwo 11s linear infinite;
}

.orbit-core {
  position: relative;
  z-index: 1;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(135deg, #211032, #4b0082);
  box-shadow: 0 22px 48px rgba(75, 0, 130, 0.28);
}

.orbit-core span {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

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

@keyframes orbitPulseSoft {
  0%, 100% {
    transform: scale(0.94);
    opacity: 0.62;
  }

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

@keyframes dotOrbitOne {
  from {
    transform: rotate(0deg) translateX(178px) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translateX(178px) rotate(-360deg);
  }
}

@keyframes dotOrbitTwo {
  from {
    transform: rotate(180deg) translateX(132px) rotate(-180deg);
  }

  to {
    transform: rotate(540deg) translateX(132px) rotate(-540deg);
  }
}

@media (max-width: 980px) {
  .art-board {
    grid-template-columns: 1fr;
  }

  .studio-orbit {
    min-height: 380px;
  }
}

@media (max-width: 620px) {
  .art-board-copy h2 {
    font-size: 2.12rem;
  }

  .studio-orbit {
    min-height: 300px;
  }

  @keyframes dotOrbitOne {
    from {
      transform: rotate(0deg) translateX(118px) rotate(0deg);
    }

    to {
      transform: rotate(360deg) translateX(118px) rotate(-360deg);
    }
  }

  @keyframes dotOrbitTwo {
    from {
      transform: rotate(180deg) translateX(88px) rotate(-180deg);
    }

    to {
      transform: rotate(540deg) translateX(88px) rotate(-540deg);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-orbit,
  .ring-outer,
  .ring-middle,
  .ring-inner,
  .dot-one,
  .dot-two {
    animation: none !important;
    transform: none !important;
  }

  .studio-orbit {
    opacity: 1 !important;
  }
}

/* Final simplified slogan/orbit treatment. */
.art-board-section {
  padding: 96px 0;
  background:
    radial-gradient(circle at 78% 48%, rgba(75, 0, 130, 0.16), transparent 22rem),
    linear-gradient(180deg, #ffffff 0%, #fffaff 100%);
}

.art-board {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(22px, 4vw, 64px);
}

.art-board-copy h2 {
  max-width: 760px;
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(4.25rem, 8vw, 7.8rem);
  line-height: 0.92;
  text-wrap: balance;
}

.studio-orbit {
  min-height: 440px;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.orbit-ring,
.ring-outer {
  width: min(360px, 82%);
  aspect-ratio: 1;
  border: 2px solid rgba(75, 0, 130, 0.22);
  border-left-color: rgba(75, 0, 130, 0.76);
  border-bottom-color: rgba(75, 0, 130, 0.46);
  box-shadow:
    inset 0 0 32px rgba(75, 0, 130, 0.05),
    0 0 70px rgba(75, 0, 130, 0.08);
  animation: orbitTiltSpin 5.4s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.ring-middle,
.ring-inner,
.orbit-dot {
  display: none !important;
}

.orbit-core {
  width: 56px;
  height: 56px;
  background:
    radial-gradient(circle at 32% 28%, #ffffff, rgba(255, 255, 255, 0.18) 24%, transparent 25%),
    linear-gradient(135deg, #2b004a, #7a22bd);
  box-shadow:
    0 18px 42px rgba(75, 0, 130, 0.34),
    0 0 0 18px rgba(75, 0, 130, 0.055);
  animation: coreThroughRing 5.4s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

@keyframes orbitTiltSpin {
  0%, 100% {
    transform: rotateX(64deg) rotateZ(0deg);
  }

  50% {
    transform: rotateX(64deg) rotateZ(180deg);
  }
}

@keyframes coreThroughRing {
  0%, 100% {
    transform: translate3d(0, -34px, 0) scale(0.82);
    opacity: 0.76;
  }

  24% {
    transform: translate3d(0, 0, 0) scale(1.08);
    opacity: 1;
  }

  50% {
    transform: translate3d(0, 34px, 0) scale(0.86);
    opacity: 0.78;
  }

  74% {
    transform: translate3d(0, 0, 0) scale(1.08);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .art-board {
    grid-template-columns: 1fr;
  }

  .art-board-copy h2 {
    font-size: clamp(3.4rem, 12vw, 5.8rem);
  }

  .studio-orbit {
    min-height: 320px;
  }
}

@media (max-width: 620px) {
  .art-board-copy h2 {
    font-size: 3.25rem;
  }

  .studio-orbit {
    min-height: 260px;
  }

  .orbit-ring,
  .ring-outer {
    width: min(240px, 82%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ring-outer,
  .orbit-core {
    animation: none !important;
  }
}

/* ============================================================
   Services Delivery Diagram + Clean Background Pass
   ============================================================ */

.hero,
.services-section.build-process-section {
  background:
    radial-gradient(circle at 78% 22%, rgba(75, 0, 130, 0.1), transparent 24rem),
    linear-gradient(135deg, #fffaff 0%, #ffffff 54%, #fbf7ff 100%) !important;
  background-size: auto !important;
}

.hero::before,
.services-section.build-process-section::before,
.side-panel-section::after {
  display: none !important;
}

.studio-marquee,
.marquee-track,
.art-board-grid,
.art-tile,
.tile-dark,
.tile-light,
.tile-line,
.tile-orbit {
  display: none !important;
  background: transparent !important;
  animation: none !important;
}

.services-section.build-process-section {
  padding-top: 108px;
}

.service-stack-card:nth-child(5) {
  margin-left: 72px;
}

.service-stack-card:nth-child(5).assembled {
  transition-delay: 160ms;
}

.side-panel-section {
  overflow: visible;
}

.delivery-label {
  margin: clamp(26px, 4vw, 38px) 0 -12px;
  color: #ffffff !important;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.delivery-diagram {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  margin-top: clamp(28px, 4vw, 42px);
  padding: 28px 18px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.delivery-flow-line {
  position: absolute;
  left: calc(10% + 18px);
  right: calc(10% + 18px);
  top: 45px;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.delivery-flow-line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ffffff, rgba(216, 184, 255, 0.7), #ffffff);
  transform: translateX(-100%);
  animation: deliveryLineSweep 4.8s ease-in-out infinite;
}

.delivery-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.16);
  transform: translate(-50%, -50%);
  animation: deliveryPulseMove 4.8s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.delivery-pulse:nth-child(2) {
  animation-delay: 2.4s;
  opacity: 0.72;
}

.delivery-node {
  position: relative;
  z-index: 1;
  min-height: 82px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border-radius: 12px;
  color: #ffffff;
}

.delivery-node::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.14),
    0 14px 28px rgba(15, 4, 28, 0.28);
  animation: deliveryNodeGlow 4.8s ease-in-out infinite;
}

.delivery-node:nth-child(3)::before {
  animation-delay: 0.7s;
}

.delivery-node:nth-child(4)::before {
  animation-delay: 1.4s;
}

.delivery-node:nth-child(5)::before {
  animation-delay: 2.1s;
}

.delivery-node:nth-child(6)::before {
  animation-delay: 2.8s;
}

.delivery-node span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
  font-weight: 900;
}

.delivery-node strong {
  color: #ffffff;
  font-size: clamp(0.72rem, 1.1vw, 0.9rem);
  line-height: 1;
}

@keyframes deliveryLineSweep {
  0%,
  18% {
    transform: translateX(-100%);
    opacity: 0;
  }

  28% {
    opacity: 1;
  }

  74% {
    opacity: 1;
  }

  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes deliveryPulseMove {
  0%,
  12% {
    left: 0;
    opacity: 0;
  }

  20%,
  82% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes deliveryNodeGlow {
  0%,
  100% {
    transform: scale(0.86);
    box-shadow:
      0 0 0 6px rgba(255, 255, 255, 0.1),
      0 14px 28px rgba(15, 4, 28, 0.22);
  }

  45%,
  58% {
    transform: scale(1.08);
    box-shadow:
      0 0 0 12px rgba(255, 255, 255, 0.22),
      0 18px 34px rgba(15, 4, 28, 0.32);
  }
}

@media (max-width: 980px) {
  .service-stack-card:nth-child(5) {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .delivery-diagram {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 16px 10px 12px;
  }

  .delivery-flow-line {
    left: calc(10px + ((100% - 44px) / 10));
    right: calc(10px + ((100% - 44px) / 10));
    top: 25px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .delivery-flow-line::before {
    background: linear-gradient(90deg, #ffffff, rgba(216, 184, 255, 0.7), #ffffff);
    transform: translateX(-100%);
    animation-name: deliveryLineSweep;
  }

  .delivery-pulse {
    left: 0;
    top: 50%;
    animation-name: deliveryPulseMove;
  }

  .delivery-node {
    grid-template-columns: 1fr;
    grid-template-rows: 18px auto auto;
    min-height: 72px;
    place-items: center;
    align-content: start;
    text-align: center;
    gap: 7px;
    padding: 0 2px 8px;
  }

  .delivery-node::before {
    grid-row: 1;
  }

  .delivery-node span {
    font-size: 0.62rem;
  }

  .delivery-node strong {
    font-size: 0.78rem;
  }
}

@keyframes deliveryLineSweepVertical {
  0%,
  18% {
    transform: translateY(-100%);
    opacity: 0;
  }

  28%,
  74% {
    opacity: 1;
  }

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

@keyframes deliveryPulseMoveVertical {
  0%,
  12% {
    top: 0;
    opacity: 0;
  }

  20%,
  82% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .delivery-flow-line::before,
  .delivery-pulse,
  .delivery-node::before {
    animation: none !important;
  }
}

/* ============================================================
   Final Navbar Scale + Contrast Pass
   ============================================================ */

.site-header .nav-container {
  min-height: 88px;
}

.site-header .logo-image {
  height: 64px;
  max-height: 64px;
  max-width: 360px;
}

.site-header .logo-text,
.hero h1,
.hero-rotating-headline,
.section-heading h2,
.art-board-copy h2 {
  color: var(--blue-dark);
}

.hero-text,
.section-text,
.section-heading p,
.art-board-copy p:not(.eyebrow) {
  color: #33233f;
}

.eyebrow:not(.light) {
  color: #3f006f;
}

.service-stack-card.build-step {
  color: #ffffff;
  background: linear-gradient(135deg, #1e0b32, #4b0082) !important;
  border-color: rgba(255, 255, 255, 0.24);
}

.service-stack-card h3,
.service-stack-card p,
.service-stack-card .build-step-link {
  color: #ffffff !important;
}

.service-stack-card p,
.side-panel-section p {
  color: #f7efff !important;
}

.service-stack-card .build-step-number {
  color: rgba(255, 255, 255, 0.34);
}

.side-panel-section {
  background: linear-gradient(135deg, #23003f, #4b0082) !important;
}

.side-panel-section .eyebrow,
.side-panel-section h2,
.side-panel-section p,
.side-feature-list p,
.delivery-label,
.delivery-node strong {
  color: #ffffff !important;
}

.delivery-node span {
  color: #f0ddff;
}

.contact-box h2,
.contact-box p,
.contact-metrics span {
  color: #ffffff !important;
}

.contact-button {
  color: var(--blue-main) !important;
}

@media (max-width: 900px) {
  .site-header .nav-container {
    min-height: 78px;
  }

  .site-header .logo-image {
    height: 54px;
    max-height: 54px;
    max-width: 250px;
  }
}

@media (max-width: 560px) {
  .site-header .nav-container {
    min-height: 68px;
  }

  .site-header .logo-image {
    height: 44px;
    max-height: 44px;
    max-width: 92px;
  }
}

/* ============================================================
   Cyber Security Section
   ============================================================ */

.cyber-security-section {
  position: relative;
  overflow: hidden;
  padding: clamp(86px, 9vw, 128px) 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(75, 0, 130, 0.1), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #fbf7ff 100%);
}

.cyber-security-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 0.72fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.cyber-security-copy h2 {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--blue-dark);
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  line-height: 0.98;
}

.cyber-security-copy > p:not(.eyebrow) {
  max-width: 700px;
  margin: 0;
  color: #33233f;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.75;
}

.security-points {
  display: grid;
  gap: 12px;
  max-width: 690px;
  margin-top: clamp(26px, 4vw, 42px);
}

.security-points div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(75, 0, 130, 0.14);
  box-shadow: 0 18px 44px rgba(75, 0, 130, 0.08);
}

.security-points span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue-main);
  font-size: 0.78rem;
  font-weight: 900;
}

.security-points p {
  margin: 0;
  color: #33233f;
  font-weight: 800;
  line-height: 1.35;
}

.security-lock-visual {
  min-height: clamp(320px, 34vw, 440px);
  display: grid;
  place-items: center;
}

.lock-stage {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.lock-stage::before {
  content: "";
  position: absolute;
  inset: 12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 0, 130, 0.15), transparent 68%);
}

.lock-shackle {
  position: absolute;
  top: 22%;
  left: 50%;
  width: 128px;
  height: 116px;
  border: 16px solid var(--blue-main);
  border-bottom: 0;
  border-radius: 74px 74px 0 0;
  transform-origin: 24px 100%;
  transform: translateX(-50%) translateY(-24px) rotate(-22deg);
  animation: shackleLock 4.8s cubic-bezier(0.45, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 16px 26px rgba(75, 0, 130, 0.24));
}

.lock-body {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 188px;
  height: 150px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.42), transparent 22%),
    linear-gradient(135deg, #2a004a, var(--blue-main));
  box-shadow:
    0 28px 70px rgba(75, 0, 130, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transform: translateX(-50%) scale(0.96);
  animation: lockBodySet 4.8s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.lock-keyhole {
  width: 22px;
  height: 52px;
  display: block;
  border-radius: 14px 14px 10px 10px;
  background: #ffffff;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.1);
}

.lock-keyhole::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  margin: -14px 0 0 -6px;
  border-radius: 50%;
  background: #ffffff;
}

.lock-signal {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lock-signal span {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(75, 0, 130, 0.18);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  animation: lockSignal 4.8s ease-out infinite;
}

.lock-signal span:nth-child(2) {
  animation-delay: 0.18s;
}

.lock-signal span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes shackleLock {
  0%,
  22% {
    transform: translateX(-50%) translateY(-28px) rotate(-24deg);
  }

  42%,
  72% {
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }

  100% {
    transform: translateX(-50%) translateY(-28px) rotate(-24deg);
  }
}

@keyframes lockBodySet {
  0%,
  28%,
  100% {
    transform: translateX(-50%) scale(0.96);
  }

  42%,
  72% {
    transform: translateX(-50%) scale(1);
  }
}

@keyframes lockSignal {
  0%,
  38% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }

  48% {
    opacity: 0.72;
  }

  76%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.22);
  }
}

@media (max-width: 900px) {
  .cyber-security-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .security-lock-visual {
    order: -1;
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .cyber-security-section {
    padding: 48px 0 68px;
  }

  .security-lock-visual {
    min-height: 260px;
  }

  .security-points div {
    grid-template-columns: 1fr;
  }

  .lock-stage {
    width: min(100%, 300px);
  }

  .lock-shackle {
    width: 104px;
    height: 96px;
    border-width: 13px;
  }

  .lock-body {
    width: 152px;
    height: 124px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lock-shackle,
  .lock-body,
  .lock-signal span {
    animation: none !important;
  }

  .lock-shackle {
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }

  .lock-body {
    transform: translateX(-50%) scale(1);
  }
}

/* ============================================================
   Final Service Card Motion + Text Fit Pass
   ============================================================ */

.service-stack-card.build-step {
  overflow: visible !important;
  padding-bottom: 34px;
  transition:
    opacity 520ms ease,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease !important;
}

.service-stack-card h3 {
  margin-bottom: 10px;
  color: #ffffff !important;
  line-height: 1.2;
  overflow: visible;
}

.service-stack-card p {
  color: #f7efff !important;
  line-height: 1.58;
  overflow: visible;
}

.service-stack.build-process-grid > .service-stack-card.build-step:hover,
.service-stack.build-process-grid > .service-stack-card.build-step:focus-within,
.service-stack.build-process-grid > .service-stack-card.build-step:nth-child(n):hover,
.service-stack.build-process-grid > .service-stack-card.build-step:nth-child(n):focus-within {
  transform: translateY(-4px) !important;
  background: linear-gradient(135deg, #2b004a, #6420a6) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 30px 68px rgba(75, 0, 130, 0.28) !important;
}

.service-stack.build-process-grid > .service-stack-card.build-step:hover .build-step-icon,
.service-stack.build-process-grid > .service-stack-card.build-step:focus-within .build-step-icon,
.service-stack.build-process-grid > .service-stack-card.build-step:nth-child(n):hover .build-step-icon,
.service-stack.build-process-grid > .service-stack-card.build-step:nth-child(n):focus-within .build-step-icon {
  color: var(--blue-main) !important;
  background: #ffffff !important;
  transform: translateY(-2px) !important;
  filter: none !important;
  box-shadow: 0 16px 34px rgba(15, 4, 28, 0.26) !important;
}

.service-stack.build-process-grid > .service-stack-card.build-step::before {
  display: none !important;
}

.service-stack.build-process-grid > .service-stack-card.build-step::after {
  content: "" !important;
  position: absolute !important;
  inset: auto 28px 18px 28px !important;
  width: auto !important;
  bottom: 18px;
  height: 1px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), transparent) !important;
  opacity: 1 !important;
  transform: scaleX(0.34) !important;
  transform-origin: left center !important;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: none !important;
}

.service-stack.build-process-grid > .service-stack-card.build-step:hover::after,
.service-stack.build-process-grid > .service-stack-card.build-step:focus-within::after {
  transform: scaleX(1) !important;
}

@media (prefers-reduced-motion: reduce) {
  .service-stack.build-process-grid > .service-stack-card.build-step:hover,
  .service-stack.build-process-grid > .service-stack-card.build-step:focus-within {
    transform: none !important;
  }
}

/* ============================================================
   Final Alignment + Rotating Word Fit Pass
   ============================================================ */

.hero-rotating-headline {
  line-height: 1.18 !important;
  overflow: visible !important;
}

.rotating-word-wrapper {
  min-height: 1.32em !important;
  line-height: 1.18 !important;
  padding-bottom: 0.12em;
  overflow: visible !important;
  vertical-align: bottom;
}

.rotating-word,
.rotating-word.is-exiting {
  line-height: 1.18 !important;
  padding-bottom: 0.08em;
  overflow: visible !important;
}

.service-stack.build-process-grid > .service-stack-card:nth-child(n),
.service-stack-card:nth-child(n) {
  margin-left: 0 !important;
}

/* ============================================================
   Final About Responsive Pass
   ============================================================ */

#about {
  padding-block: clamp(72px, 8vw, 118px);
}

#about .two-column {
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 0.78fr);
  gap: clamp(36px, 5vw, 74px);
  align-items: start;
}

#about .hero-rotating-headline {
  max-width: 760px;
  font-size: clamp(2.75rem, 4.8vw, 4.25rem);
  line-height: 1.08 !important;
}

#about .about-copy {
  max-width: 62ch;
  margin-left: 0;
  padding-top: 0.2em;
  gap: 16px;
  color: #33233f;
}

#about .about-copy p {
  margin: 0;
  color: #33233f;
  font-size: clamp(1.03rem, 0.5vw + 0.95rem, 1.16rem);
  line-height: 1.72;
}

@media (max-width: 1180px) {
  #about .two-column {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 38px);
  }

  #about .hero-rotating-headline {
    max-width: 860px;
    font-size: clamp(3rem, 6vw, 4.6rem);
  }

  #about .about-copy {
    max-width: 780px;
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  #about {
    padding-block: 66px;
  }

  #about .hero-rotating-headline {
    font-size: clamp(2.24rem, 9vw, 3.1rem);
  }

  #about .about-copy p {
    font-size: 1rem;
    line-height: 1.66;
  }
}

/* ============================================================
   Final Delivery Line Loop
   ============================================================ */

.delivery-flow-line {
  overflow: visible !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

.delivery-flow-line::before {
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffffff, rgba(216, 184, 255, 0.82), #ffffff) !important;
  transform: scaleX(0) !important;
  transform-origin: left center !important;
  animation: deliveryLineLoop 4.8s linear infinite !important;
}

.delivery-pulse {
  display: none !important;
}

@keyframes deliveryLineLoop {
  0% {
    transform: scaleX(0);
    opacity: 1;
  }

  82%,
  92% {
    transform: scaleX(1);
    opacity: 1;
  }

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

@media (max-width: 720px) {
  .delivery-flow-line::before {
    background: linear-gradient(180deg, #ffffff, rgba(216, 184, 255, 0.82), #ffffff) !important;
    transform: scaleY(0) !important;
    transform-origin: top center !important;
    animation-name: deliveryLineLoopVertical !important;
  }
}

@keyframes deliveryLineLoopVertical {
  0% {
    transform: scaleY(0);
    opacity: 1;
  }

  82%,
  92% {
    transform: scaleY(1);
    opacity: 1;
  }

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

@media (prefers-reduced-motion: reduce) {
  .delivery-flow-line::before {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.72fr) !important;
  align-items: center;
}

.hero-preview-container {
  display: flex;
  min-width: 0;
  justify-content: center;
  margin-top: 0;
}

.hero-content,
.hero h1,
.hero-text,
.hero-card {
  max-width: 100%;
}

.hero-card {
  width: min(100%, 560px);
  margin: 0 0 0 auto;
}

/* Keep the animated hero preview below the copy on tablet and mobile. */
@media (max-width: 980px) {
  .hero {
    overflow: hidden;
  }

  .hero .container {
    min-width: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    align-items: start;
    gap: clamp(26px, 5vw, 44px);
  }

  .hero-content {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
  }

  .hero h1,
  .hero-text {
    width: 100%;
  }

  .hero-preview-container {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0;
  }

  .hero-card {
    width: min(100%, 560px) !important;
    max-width: calc(100vw - (var(--gutter) * 2)) !important;
    margin: 0 auto !important;
    justify-self: center;
    transform: none !important;
  }

  .hero-card::before,
  .hero-card::after {
    display: none;
  }

  .dashboard-preview {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .hero-card {
    width: 100% !important;
    max-width: calc(100vw - 32px) !important;
  }

  .hero-preview-container {
    padding-inline: 16px;
    margin-top: 24px;
  }

  .dashboard-preview {
    padding: 18px;
  }
}

/* ============================================================
   Last About Section Layout Guard
   ============================================================ */

#about.section {
  padding-block: clamp(72px, 8vw, 118px) !important;
}

#about .two-column {
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.74fr) !important;
  gap: clamp(34px, 4.5vw, 68px) !important;
  align-items: start !important;
}

#about .two-column > div:first-child,
#about .about-copy {
  min-width: 0;
}

#about .hero-rotating-headline {
  max-width: 760px !important;
  font-size: clamp(2.7rem, 4.3vw, 4.1rem) !important;
  line-height: 1.12 !important;
  text-wrap: normal;
}

#about .about-copy {
  max-width: 64ch !important;
  margin-left: 0 !important;
  padding-top: 0.18em;
  gap: 16px;
}

#about .about-copy p {
  max-width: 64ch;
  margin: 0;
  color: #33233f;
  font-size: clamp(1.02rem, 0.45vw + 0.94rem, 1.14rem);
  line-height: 1.72;
}

@media (max-width: 1280px) {
  #about .two-column {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr) !important;
    gap: 38px !important;
  }

  #about .hero-rotating-headline {
    font-size: clamp(2.6rem, 4.1vw, 3.55rem) !important;
  }
}

@media (max-width: 1180px) {
  #about .two-column {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  #about .hero-rotating-headline {
    max-width: 820px !important;
    font-size: clamp(3rem, 6vw, 4.35rem) !important;
  }

  #about .about-copy {
    max-width: 780px !important;
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  #about.section {
    padding-block: 64px !important;
  }

  #about .hero-rotating-headline {
    font-size: clamp(2.18rem, 9vw, 3rem) !important;
  }

  #about .about-copy p {
    font-size: 1rem;
    line-height: 1.66;
  }
}

/* ============================================================
   Last Delivery Timeline Motion
   ============================================================ */

.delivery-flow-line {
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.24) !important;
}

.delivery-flow-line::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 24% !important;
  height: 100% !important;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #ffffff 30%, rgba(216, 184, 255, 0.95) 70%, transparent) !important;
  transform: translateX(-100%) !important;
  transform-origin: center !important;
  animation: deliveryLineTravel 4.8s linear infinite !important;
}

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

  100% {
    left: 100%;
    transform: translateX(0);
  }
}

@media (max-width: 720px) {
  .delivery-flow-line::before {
    background: linear-gradient(90deg, transparent, #ffffff 30%, rgba(216, 184, 255, 0.95) 70%, transparent) !important;
    transform-origin: center !important;
    animation-name: deliveryLineTravel !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .delivery-flow-line::before {
    animation: none !important;
    left: 0 !important;
    width: 100% !important;
    transform: none !important;
  }
}

/* Dot-synced moving line: the white segment reaches each node as it pulses. */
.delivery-flow-line::before {
  left: 0 !important;
  width: 18% !important;
  background: #ffffff !important;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.62);
  transform: none !important;
  translate: -100% 0;
  animation: deliveryLineDotSync 5s linear infinite !important;
}

.delivery-node::before {
  animation: deliveryNodeDotSync 5s linear infinite !important;
}

.delivery-node:nth-child(2)::before {
  animation-delay: 0s !important;
}

.delivery-node:nth-child(3)::before {
  animation-delay: 1.25s !important;
}

.delivery-node:nth-child(4)::before {
  animation-delay: 2.5s !important;
}

.delivery-node:nth-child(5)::before {
  animation-delay: 3.75s !important;
}

.delivery-node:nth-child(6)::before {
  animation-delay: 4.8s !important;
}

@keyframes deliveryLineDotSync {
  0% {
    translate: -100% 0;
    opacity: 1;
  }

  25% {
    translate: 128% 0;
  }

  50% {
    translate: 306% 0;
  }

  75% {
    translate: 484% 0;
  }

  96% {
    translate: 556% 0;
    opacity: 1;
  }

  100% {
    translate: 556% 0;
    opacity: 0;
  }
}

@keyframes deliveryNodeDotSync {
  0%,
  12% {
    transform: scale(1.08);
    box-shadow:
      0 0 0 12px rgba(255, 255, 255, 0.22),
      0 18px 34px rgba(15, 4, 28, 0.32);
  }

  20%,
  100% {
    transform: scale(0.86);
    box-shadow:
      0 0 0 6px rgba(255, 255, 255, 0.1),
      0 14px 28px rgba(15, 4, 28, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .delivery-flow-line::before {
    animation: none !important;
    left: 0 !important;
    width: 100% !important;
    transform: none !important;
    translate: 0 0 !important;
    opacity: 1 !important;
  }

  .delivery-node::before {
    animation: none !important;
  }
}

/* Final timeline alignment: the track spans dot-center to dot-center,
   and the white line grows to each pulsing node instead of sliding past it. */
.delivery-flow-line {
  display: block !important;
  position: absolute !important;
  left: calc(10% + 10.4px) !important;
  right: calc(10% + 10.4px) !important;
  top: 48px !important;
  width: auto !important;
  height: 4px !important;
  overflow: hidden !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34) !important;
}

.delivery-flow-line::before,
.delivery-flow-line::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}

.delivery-progress-line {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.68);
  transform: scaleX(0);
  transform-origin: left center;
  animation: deliveryProgressLineGrow 5s linear infinite;
}

@keyframes deliveryProgressLineGrow {
  0% {
    transform: scaleX(0);
  }

  25% {
    transform: scaleX(0.25);
  }

  50% {
    transform: scaleX(0.5);
  }

  75% {
    transform: scaleX(0.75);
  }

  96%,
  99.8% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(0);
  }
}

@media (max-width: 720px) {
  .delivery-flow-line {
    left: calc(10% + 5.6px) !important;
    right: calc(10% + 5.6px) !important;
    top: 25px !important;
    height: 4px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .delivery-progress-line {
    animation: none !important;
    transform: scaleX(1) !important;
  }
}

/* Pin the node dots to the exact center of the timeline track. */
.delivery-node {
  align-content: start !important;
  padding-top: 40px !important;
}

.delivery-node::before {
  position: absolute !important;
  top: 13px !important;
  left: 50% !important;
  margin: 0 !important;
  transform: translateX(-50%) scale(0.86);
  animation: deliveryNodeDotSync 5s linear infinite !important;
}

.delivery-node:nth-child(2)::before {
  animation-delay: 0s !important;
}

.delivery-node:nth-child(3)::before {
  animation-delay: 1.1s !important;
}

.delivery-node:nth-child(4)::before {
  animation-delay: 2.35s !important;
}

.delivery-node:nth-child(5)::before {
  animation-delay: 3.6s !important;
}

.delivery-node:nth-child(6)::before {
  animation-delay: 4.65s !important;
}

@keyframes deliveryNodeDotSync {
  0%,
  9% {
    transform: translateX(-50%) scale(1.08);
    box-shadow:
      0 0 0 12px rgba(255, 255, 255, 0.22),
      0 18px 34px rgba(15, 4, 28, 0.32);
  }

  18%,
  100% {
    transform: translateX(-50%) scale(0.86);
    box-shadow:
      0 0 0 6px rgba(255, 255, 255, 0.1),
      0 14px 28px rgba(15, 4, 28, 0.22);
  }
}

@media (max-width: 720px) {
  .delivery-node {
    padding-top: 26px !important;
  }

  .delivery-node::before {
    top: 2px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .delivery-node::before {
    transform: translateX(-50%) scale(1) !important;
  }
}


/* Final timeline animation: one visible segment wraps seamlessly connection-to-connection. */
.delivery-progress-line {
  inset: 0 !important;
  width: 100% !important;
  min-width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  opacity: 1 !important;
  transform: none !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  animation: none !important;
}

.delivery-progress-line::before,
.delivery-progress-line::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.68);
  transform: translateX(0);
  animation: deliveryWrappedSegment 3.2s linear infinite;
}

.delivery-progress-line::after {
  transform: translateX(-400%);
  animation-name: deliveryWrappedSegmentClone;
}

.delivery-node::before {
  position: absolute !important;
  top: 13px !important;
  left: 50% !important;
  margin: 0 !important;
  animation: deliveryNodeDotSync 3.2s linear infinite !important;
}

.delivery-node:nth-child(2)::before {
  animation-delay: 0s !important;
}

.delivery-node:nth-child(3)::before {
  animation-delay: 0.18s !important;
}

.delivery-node:nth-child(4)::before {
  animation-delay: -2.4s !important;
}

.delivery-node:nth-child(5)::before {
  animation-delay: -1.6s !important;
}

.delivery-node:nth-child(6)::before {
  animation-delay: -0.8s !important;
}

@keyframes deliveryWrappedSegment {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(400%);
  }
}

@keyframes deliveryWrappedSegmentClone {
  0% {
    transform: translateX(-400%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes deliveryNodeDotSync {
  0%,
  12% {
    transform: translateX(-50%) scale(1.08);
    box-shadow:
      0 0 0 12px rgba(255, 255, 255, 0.22),
      0 18px 34px rgba(15, 4, 28, 0.32);
  }

  22%,
  100% {
    transform: translateX(-50%) scale(0.86);
    box-shadow:
      0 0 0 6px rgba(255, 255, 255, 0.1),
      0 14px 28px rgba(15, 4, 28, 0.22);
  }
}

@media (max-width: 720px) {
  .delivery-node::before {
    top: 2px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .delivery-progress-line::before {
    width: 100%;
    animation: none !important;
    transform: translateX(0);
  }

  .delivery-progress-line::after {
    display: none;
  }

  .delivery-node::before {
    animation: none !important;
    transform: translateX(-50%) scale(1) !important;
  }
}
/* ============================================================
   Project Brief Wizard Page
   Moved from project.html to remove inline CSS
   ============================================================ */

/* Hero */
.pf-hero {
  position: relative;
  padding: 96px 0 84px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(75, 0, 130, 0.16), transparent 36%),
    radial-gradient(circle at bottom right, rgba(75, 0, 130, 0.08), transparent 40%),
    linear-gradient(180deg, var(--blue-light), var(--white));
}

.pf-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.pf-headline {
  font-size: 3.5rem;
  line-height: 1.02;
  letter-spacing: 0;
  margin: 12px 0 20px;
}

.pf-hero-desc {
  color: var(--gray-text);
  font-size: 1.1rem;
  max-width: 480px;
  line-height: 1.65;
}

/* Process card */
.pf-process-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pf-proc-item {
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: background 0.45s ease, box-shadow 0.45s ease;
}

.pf-proc-item + .pf-proc-item {
  border-top: 1px solid var(--gray-border);
}

.pf-proc-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--blue-main), #9b3de8);
  border-radius: 0 2px 2px 0;
  transition: none;
}

.pf-proc-item.proc-active::after {
  width: 100%;
  transition: width var(--proc-duration, 2600ms) linear;
}

.pf-proc-item.proc-active {
  background: rgba(75, 0, 130, 0.035);
  box-shadow: inset 3px 0 0 var(--blue-main);
}

.pf-proc-num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue-main);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition:
    background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.4s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
}

.pf-proc-item.proc-active .pf-proc-num {
  background: var(--blue-main);
  color: var(--white);
  transform: scale(1.08);
  animation: procPulse 1.9s ease-in-out infinite;
}

.pf-proc-item.proc-done .pf-proc-num {
  background: var(--blue-main);
  color: var(--white);
}

@keyframes procPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(75, 0, 130, 0.35);
  }

  55% {
    box-shadow: 0 0 0 7px rgba(75, 0, 130, 0);
  }
}

.pf-proc-text strong {
  display: block;
  font-size: 0.97rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 4px;
  letter-spacing: 0;
  transition: color 0.35s ease;
}

.pf-proc-item.proc-active .pf-proc-text strong {
  color: var(--blue-main);
}

.pf-proc-text p {
  color: var(--gray-text);
  font-size: 0.87rem;
  line-height: 1.52;
}

@media (prefers-reduced-motion: reduce) {
  .pf-proc-item.proc-active .pf-proc-num {
    animation: none;
  }

  .pf-proc-item::after {
    transition: none;
  }
}

@media (max-width: 860px) {
  .pf-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pf-process-card {
    max-width: 520px;
  }
}

/* Wizard section */
.pf-section {
  padding: 56px 0 108px;
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--white) 28%);
}

.pf-wizard {
  max-width: 800px;
  margin: 0 auto;
}

/* Progress bar */
.pf-progress-wrap {
  height: 4px;
  background: var(--gray-border);
  border-radius: 8px;
  margin-bottom: 36px;
  overflow: hidden;
}

.pf-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-main), #7a22bd);
  border-radius: 8px;
  width: 25%;
  transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.pf-progress-bar.progress-step-1 {
  width: 25%;
}

.pf-progress-bar.progress-step-2 {
  width: 50%;
}

.pf-progress-bar.progress-step-3 {
  width: 75%;
}

.pf-progress-bar.progress-step-4 {
  width: 100%;
}

/* Step indicators */
.pf-steps-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 36px;
  position: relative;
}

.pf-steps-row::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 36px;
  right: 36px;
  height: 1px;
  background: var(--gray-border);
  z-index: 0;
}

.pf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.pf-step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--gray-border);
  background: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--gray-text);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pf-step.active .pf-step-dot {
  border-color: var(--blue-main);
  background: var(--blue-main);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(75, 0, 130, 0.38);
  transform: scale(1.1);
}

.pf-step.done .pf-step-dot {
  border-color: var(--blue-main);
  background: var(--blue-main);
  color: var(--white);
}

.pf-step-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-text);
  transition: color 0.3s;
  white-space: nowrap;
}

.pf-step.active .pf-step-label {
  color: var(--blue-main);
}

/* Card */
.pf-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Panels */
.pf-panel {
  display: none;
  padding: 52px;
}

.pf-panel.active {
  display: block;
  animation: pfPanelInFwd 0.44s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pf-panel.active.go-back {
  animation: pfPanelInBack 0.44s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pfPanelInFwd {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pfPanelInBack {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Panel header */
.pf-panel-header {
  margin-bottom: 34px;
}

.pf-panel-header h2 {
  margin: 10px 0 8px;
  font-size: 2rem;
}

.pf-panel-desc {
  color: var(--gray-text);
  font-size: 1rem;
}

/* Fields */
.pf-fields {
  display: grid;
  gap: 22px;
  margin-bottom: 36px;
}

.pf-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 36px;
}

.pf-two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

/* Nav row */
.pf-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Buttons inside card */
.pf-card button {
  cursor: pointer;
  font-family: inherit;
}

.pf-card button.primary-button {
  border: none;
}

.pf-card button.secondary-button {
  border: 1px solid var(--gray-border);
  background: var(--white);
}

/* Timeline pills */
.pf-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pf-pill {
  padding: 10px 20px;
  border-radius: 8px;
  border: 2px solid var(--gray-border);
  background: var(--white);
  color: var(--gray-text);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.pf-pill:hover {
  border-color: var(--blue-main);
  color: var(--blue-main);
  transform: translateY(-1px);
}

.pf-pill.selected {
  border-color: var(--blue-main);
  background: var(--blue-main);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(75, 0, 130, 0.3);
}

/* Optional label */
.pf-optional {
  color: var(--gray-text);
  font-weight: 400;
  font-size: 0.88rem;
  margin-left: 4px;
}

/* Review box */
.pf-review {
  background: var(--blue-light);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 26px 28px;
}

.pf-review-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-main);
  margin-bottom: 16px;
}

.pf-review-rows {
  display: grid;
  gap: 10px;
}

.pf-review-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  font-size: 0.92rem;
}

.pf-review-key {
  color: var(--gray-text);
  font-weight: 600;
}

.pf-review-val {
  color: var(--blue-dark);
  font-weight: 500;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Field error */
.pf-field-error {
  font-size: 0.85rem;
  color: #d32f2f;
  margin-top: -8px;
}

/* Turnstile */
.pf-turnstile-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 22px;
}

.pf-turnstile-error {
  text-align: center;
  color: #d32f2f;
  font-size: 0.85rem;
  margin-top: -10px;
  margin-bottom: 18px;
}

/* Submit note */
.pf-submit-note {
  text-align: center;
  margin-top: 20px;
  color: var(--gray-text);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 700px) {
  .pf-panel {
    padding: 32px 24px;
  }

  .pf-fields-grid,
  .pf-two-col {
    grid-template-columns: 1fr;
  }

  .pf-steps-row::before {
    display: none;
  }

  .pf-step-label {
    display: none;
  }

  .pf-process {
    border-radius: 8px;
    padding: 14px 20px;
    flex-direction: column;
    gap: 8px;
  }

  .pf-proc-arrow {
    transform: rotate(90deg);
  }
}

/* ============================================================
   CSP-safe utility classes
   Replaces inline style attributes in project.html
   ============================================================ */

.is-hidden {
  display: none !important;
}

.delay-0 {
  --delay: 0ms;
}

.delay-120 {
  --delay: 120ms;
}

.delay-240 {
  --delay: 240ms;
}

.delay-360 {
  --delay: 360ms;
}

/* Stabilize the about headline so rotating words do not nudge the copy column. */
#about .hero-rotating-headline {
  min-height: calc(3lh + 0.18em);
}

#about .rotating-word-wrapper {
  position: relative !important;
  display: block !important;
  width: max-content !important;
  inline-size: max-content !important;
  max-width: 100% !important;
  max-inline-size: 100% !important;
  min-inline-size: 0 !important;
  block-size: 1.34em !important;
  min-block-size: 1.34em !important;
  margin-top: 0.08em;
  overflow: visible !important;
  white-space: nowrap !important;
}

#about .rotating-word {
  position: absolute;
  inset: 0 auto auto 0;
  display: inline-block;
  width: max-content;
  inline-size: max-content;
  max-width: none;
  max-inline-size: none;
  line-height: inherit !important;
  white-space: nowrap !important;
}

@media (max-width: 1180px) {
  #about .hero-rotating-headline {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  #about .rotating-word-wrapper {
    display: block !important;
    max-width: 100% !important;
    white-space: nowrap !important;
  }
}
