:root {
  color-scheme: light;
  --canvas: #ffffff;
  --canvas-soft: #f7f9fc;
  --pb-blue: #1265f3;
  --deep-navy: #10213b;
  --soft-blue: #eaf2ff;
  --border: #dde6f2;
  --text: #10213b;
  --shadow: 0 24px 60px rgba(16, 33, 59, 0.08);
  --radius: 32px;
  --page-content-width: min(1200px, calc(100% - 2rem));
  --glass-primary: rgba(255, 255, 255, 0.62);
  --glass-secondary: rgba(255, 255, 255, 0.42);
  --glass-border: rgba(255, 255, 255, 0.78);
  --glass-shadow: 0 28px 90px rgba(17, 55, 110, 0.14);
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-mono: 'Geist Mono', 'SFMono-Regular', Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  overflow-x: hidden;
}

.global-footer {
  padding: clamp(96px, 10vw, 160px) 1rem 48px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,249,252,0.98));
  border-top: 1px solid rgba(18, 101, 243, 0.12);
  position: relative;
  overflow: hidden;
}

.global-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 10%, rgba(18, 101, 243, 0.08), transparent 24%), linear-gradient(90deg, rgba(18, 101, 243, 0.03) 1px, transparent 1px), linear-gradient(rgba(18, 101, 243, 0.03) 1px, transparent 1px);
  background-size: 320px 320px, 100px 100px, 100px 100px;
  opacity: 0.12;
  pointer-events: none;
}

.global-footer-shell {
  position: relative;
  max-width: var(--page-content-width);
  margin: 0 auto;
  display: grid;
  gap: 3rem;
}

.global-footer-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 2rem;
  padding: 2rem 2.5rem;
  border-radius: 32px;
  border: 1px solid rgba(18, 101, 243, 0.12);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 24px 80px rgba(16, 33, 59, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.footer-brand img {
  width: 4.4rem;
  height: auto;
  display: block;
  border-radius: 1rem;
}

.footer-feature-copy {
  display: grid;
  gap: 1rem;
}

#footer-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--deep-navy);
  max-width: min(760px, 100%);
}

.global-footer-feature p {
  margin: 0;
  max-width: 718px;
  color: rgba(16, 33, 59, 0.82);
  line-height: 1.7;
  font-size: 1rem;
}

.footer-cta {
  align-self: start;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 101, 243, 0.16);
  background: rgba(255, 255, 255, 0.88);
  color: var(--pb-blue);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(16, 33, 59, 0.08);
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.footer-cta:hover,
.footer-cta:focus-visible {
  transform: translateX(4px);
  border-color: rgba(18, 101, 243, 0.28);
  background: rgba(255, 255, 255, 0.95);
}

.global-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 0 2.5rem;
}

.footer-group {
  display: grid;
  gap: 0.9rem;
}

.footer-group-title {
  margin: 0;
  color: rgba(16, 33, 59, 0.75);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.global-footer-links a {
  color: var(--deep-navy);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}

.global-footer-links a:hover,
.global-footer-links a:focus-visible {
  color: var(--pb-blue);
}

.footer-legal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0 2.5rem;
  margin-top: 1.5rem;
}

.footer-legal-copy {
  display: grid;
  gap: 0.4rem;
}

.footer-legal-label {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(16, 33, 59, 0.6);
  font-family: var(--font-mono);
}

.footer-legal-row p {
  margin: 0;
  color: rgba(16, 33, 59, 0.72);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: rgba(16, 33, 59, 0.72);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: var(--pb-blue);
}

.footer-copy {
  margin: 0;
  color: rgba(16, 33, 59, 0.6);
  font-size: 0.95rem;
}

.footer-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 760ms cubic-bezier(0.16, 1, 0.3, 1), transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .global-footer-feature {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.5rem;
  }

  .global-footer-links {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
  }

  .footer-cta {
    width: fit-content;
  }

  .footer-legal-row {
    padding: 0 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .global-footer {
    padding-top: 64px;
    padding-bottom: 32px;
  }

  .global-footer-shell {
    gap: 2rem;
  }

  .global-footer-feature {
    padding: 1.5rem 1rem;
    border-radius: 28px;
  }

  .footer-brand img {
    width: 3.8rem;
  }

  #footer-heading {
    font-size: clamp(38px, 8vw, 52px);
  }

  .global-footer-links {
    gap: 1.4rem;
  }

  .footer-group {
    gap: 0.75rem;
  }

  .footer-legal-links {
    gap: 1rem;
  }
}

body.mobile-nav-open {
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(18, 101, 243, 0.08), transparent 38%);
  pointer-events: none;
  z-index: 0;
}

img,
video {
  display: block;
  max-width: 100%;
}

.page-shell {
  position: relative;
  isolation: isolate;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 680ms cubic-bezier(0.16, 1, 0.3, 1), transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

.page-shell.is-ready {
  opacity: 1;
  transform: translateY(0);
}

.site-nav {
  position: fixed;
  top: 1.35rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 2rem));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: all 240ms ease;
}

.site-nav.nav-scrolled {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(18, 101, 243, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(16, 33, 59, 0.08);
}

.brand {
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 3.2rem;
  height: auto;
  display: inline-block;
  border-radius: 0.8rem;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 7px 18px rgba(18, 101, 243, 0.12));
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a,
.nav-cta {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-cta {
  color: var(--pb-blue);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(18, 101, 243, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--deep-navy);
  cursor: pointer;
  padding: 0;
  box-shadow: 0 10px 24px rgba(16, 33, 59, 0.06);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  margin: 2px 0;
}

.mobile-nav-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-items: start;
  justify-items: end;
  padding: 5.2rem 1rem 1rem;
  background: rgba(7, 16, 32, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-nav-panel[hidden] {
  display: none;
}

.mobile-nav-sheet {
  width: min(320px, 100%);
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(18, 101, 243, 0.16);
  box-shadow: 0 24px 70px rgba(16, 33, 59, 0.16);
}

.mobile-nav-sheet a {
  display: block;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  color: var(--deep-navy);
  text-decoration: none;
  font-weight: 600;
}

.mobile-nav-sheet a:hover,
.mobile-nav-sheet a:focus-visible {
  background: rgba(234, 242, 255, 0.92);
}

.section-reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 660ms cubic-bezier(0.16, 1, 0.3, 1), transform 660ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  padding: 5.5rem 0 2.5rem;
  overflow: hidden;
  background: var(--canvas);
  opacity: 0;
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content {
  width: min(1120px, 100%);
}

.hero.is-ready {
  opacity: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0.28) 28%, rgba(255, 255, 255, 0.08) 54%, rgba(255, 255, 255, 0.14) 100%);
  pointer-events: none;
  z-index: 1;
}

.media-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  overflow: clip;
  isolation: isolate;
  border-radius: clamp(24px, 3vw, 32px);
}

.hero-video-shell {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none;
  filter: saturate(1.38) contrast(1.22) brightness(1.02) sharpness(1.1);
  background: #000;
}

.media-stage > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.38) 30%, rgba(255, 255, 255, 0.1) 58%, rgba(248, 250, 255, 0.1) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.52fr);
  align-items: center;
  gap: 2.2rem;
  margin-top: -0.6rem;
}

.transition-shell,
.capabilities-shell,
.project-shell {
  width: var(--page-content-width);
  max-width: var(--page-content-width);
  margin: 0 auto;
}

.hero-copy {
  max-width: 560px;
  padding: 2.4rem 0 1rem;
  display: flex;
  transform: translateX(20%);
  flex-direction: column;
  align-items: flex-start;
  margin-top: -0.8rem;
  margin-left: 0;
  position: relative;
}

.hero-copy > * {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero:not(.is-ready) .eyebrow,
.hero:not(.is-ready) .hero-headline .line span,
.hero:not(.is-ready) .hero-description span,
.hero:not(.is-ready) .hero-actions {
  opacity: 0;
  transform: translateY(24px);
  clip-path: inset(0 0 100% 0);
}

.hero.is-ready .eyebrow,
.hero.is-ready .hero-headline .line span,
.hero.is-ready .hero-description span,
.hero.is-ready .hero-actions {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0 0 0 0);
}

.hero-copy::before {
  content: '';
  position: absolute;
  width: 18rem;
  height: 18rem;
  right: -8rem;
  top: -4.5rem;
  background: radial-gradient(circle, rgba(18, 101, 243, 0.12), rgba(18, 101, 243, 0) 68%);
  filter: blur(14px);
  pointer-events: none;
  z-index: -1;
  animation: heroHalo 8s ease-in-out infinite alternate;
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: 'Geist Mono', 'SFMono-Regular', Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pb-blue);
  transform: translateY(-3px);
}

.hero-headline {
  margin: 0;
  font-size: clamp(2.7rem, 3.87vw, 4.68rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 700;
  color: var(--deep-navy);
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  margin-top: -0.3rem;
}

.hero-headline .line {
  display: block;
  overflow: hidden;
}

.hero-headline .line span {
  display: inline-block;
  transform: translateY(1.15em);
  clip-path: inset(0 0 100% 0);
  opacity: 0;
}

.hero-description {
  margin: 1.2rem 0 0;
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 560px;
  color: rgba(16, 33, 59, 0.8);
}

.hero-description span {
  display: inline-block;
  transform: translateY(24px);
  opacity: 0;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 1rem 1.3rem;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, filter 180ms ease;
  min-height: 52px;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px) translate3d(0, 0, 0);
  box-shadow: 0 10px 24px rgba(18, 101, 243, 0.12);
  filter: saturate(1.04);
}

.button.primary {
  background: var(--pb-blue);
  color: white;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--deep-navy);
  border: 1px solid rgba(18, 101, 243, 0.16);
}

.hero-visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
  transform: translateY(8px);
}

.system-overlay {
  width: min(100%, 480px);
  aspect-ratio: 1;
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  filter: drop-shadow(0 18px 38px rgba(18, 101, 243, 0.12));
}

.system-overlay .line {
  fill: none;
  stroke: rgba(18, 101, 243, 0.28);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 12 8;
}

.system-overlay .node {
  fill: #ffffff;
  stroke: rgba(18, 101, 243, 0.4);
  stroke-width: 2;
}

.transition-section,
.capabilities-section,
.projects-section {
  position: relative;
  z-index: 2;
  margin: 1.25rem auto 0;
  width: min(1200px, calc(100% - 2rem));
  padding: 2rem 2rem 3rem;
  background: var(--canvas);
  border: 1px solid rgba(18, 101, 243, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--font-sans);
}

.transition-section {
  margin-top: -1.3rem;
  position: relative;
  z-index: 3;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 4rem 2rem 4.5rem;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.capabilities-section,
.projects-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 4.5rem 2rem 5rem;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
  min-height: 100vh;
}

.transition-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(480px, 1.08fr);
  gap: 2.5rem;
  align-items: center;
  width: var(--page-content-width);
  max-width: var(--page-content-width);
  margin: 0 auto;
}

.transition-copy-block {
  max-width: 560px;
}

.transition-intro {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  width: auto;
  margin: 0;
}

.transition-visual-block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transition-section .section-label {
  width: auto;
  margin: 0 0 1rem 0;
}

body.modal-open {
  overflow: hidden;
}

.glass-primary,
.glass-secondary,
.glass-floating,
.glass-control {
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(142%);
  -webkit-backdrop-filter: blur(24px) saturate(142%);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.glass-primary { background: var(--glass-primary); }
.glass-secondary { background: var(--glass-secondary); }
.glass-floating { background: rgba(255, 255, 255, 0.55); }
.glass-control { background: rgba(255, 255, 255, 0.76); }

.section-label {
  width: min(1200px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pb-blue);
}

.transition-intro {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
  margin: 0 0 2rem;
}

.transition-copy {
  max-width: 640px;
}

.transition-copy h2,
.capabilities-intro h2,
.projects-intro h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--deep-navy);
}

.transition-copy p,
.capabilities-intro p,
.projects-intro p,
.capability-copy p,
.project-detail p,
.project-detail li {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(16, 33, 59, 0.75);
}

.transition-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: 'Geist Mono', 'SFMono-Regular', Consolas, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(18, 101, 243, 0.72);
  padding-top: 0.3rem;
}

.system-canvas {
  position: relative;
  width: min(100%, 940px);
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: clamp(24px, 3vw, 32px);
  padding: 0;
  background: #000;
  border: 1px solid rgba(18, 101, 243, 0.14);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 24px 80px rgba(17, 55, 110, 0.12);
  line-height: 0;
}

.system-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: none;
  display: block;
  z-index: 0;
  pointer-events: none;
  filter: saturate(1.08) contrast(1.08) brightness(0.96);
  background: #000;
}

.system-map {
  display: none;
}

.connection {
  fill: none;
  stroke: rgba(16, 33, 59, 0.12);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 8 8;
  transition: stroke 220ms ease, opacity 220ms ease;
}

.system-canvas.active .connection {
  stroke: rgba(18, 101, 243, 0.26);
}

.system-canvas .connection.active {
  stroke: var(--pb-blue);
  stroke-width: 2.5;
}

.insight-panel {
  display: none;
}

.insight-title,
.insight-status {
  margin: 0;
  font-family: 'Geist Mono', 'SFMono-Regular', Consolas, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-navy);
}

.insight-status {
  margin-top: 0.35rem;
  color: rgba(16, 33, 59, 0.7);
}

.system-node {
  display: none;
}

.system-node:hover,
.system-node:focus-visible,
.system-node.active {
  transform: translateY(-2px);
  color: var(--pb-blue);
  border-color: rgba(18, 101, 243, 0.26);
  box-shadow: 0 10px 26px rgba(18, 101, 243, 0.14);
}

.node-customer { left: 7%; top: 24%; }
.node-applications { left: 24%; top: 14%; }
.node-operations { left: 46%; top: 36%; }
.node-data { left: 65%; top: 22%; }
.node-automation { left: 55%; top: 66%; }
.node-cloud { left: 78%; top: 36%; }

.system-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pb-blue);
  box-shadow: 0 0 0 5px rgba(18, 101, 243, 0.14);
  opacity: 0.8;
  animation: particle-drift 3.6s ease-in-out infinite;
}

.particle-a { left: 32%; top: 55%; animation-delay: 0.2s; }
.particle-b { left: 72%; top: 58%; animation-delay: 1.2s; }

@keyframes particle-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -12px); }
}

@keyframes heroHalo {
  0% { transform: scale(0.92) translate3d(0, 0, 0); opacity: 0.7; }
  100% { transform: scale(1.08) translate3d(12px, -10px, 0); opacity: 1; }
}

.capabilities-section {
  position: relative;
  z-index: 2;
  margin: 1.25rem 0 0;
  width: 100%;
  padding: 2rem 2rem 3rem;
  background:
    radial-gradient(circle at 12% 16%, rgba(18, 101, 243, 0.06), transparent 34%),
    radial-gradient(circle at 80% 10%, rgba(18, 101, 243, 0.04), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(243, 247, 255, 0.95) 100%);
  border: 1px solid rgba(18, 101, 243, 0.12);
  border-radius: 0;
  box-shadow: 0 30px 90px rgba(17, 55, 110, 0.08);
  overflow: hidden;
}

.capabilities-section,
.capabilities-section * {
  font-family: 'Inter', 'Geist', 'Segoe UI', sans-serif;
}

.capabilities-section::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 26px;
  background:
    linear-gradient(rgba(18, 101, 243, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 101, 243, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.7;
  pointer-events: none;
}

.capabilities-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(480px, 1.05fr);
  gap: 2.5rem;
  align-items: center;
  min-height: 78vh;
  position: relative;
  z-index: 1;
  width: var(--page-content-width);
  max-width: var(--page-content-width);
  margin: 0 auto;
}

.capabilities-copy {
  max-width: 460px;
  padding-right: 1rem;
  position: relative;
}

.capabilities-opening {
  display: grid;
  gap: 1rem;
}

.capabilities-kicker {
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--pb-blue);
}

.capabilities-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1.01;
  letter-spacing: -0.045em;
  font-weight: 600;
  color: var(--deep-navy);
}

.capabilities-intro {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.7;
  color: #445064;
  max-width: 540px;
}

.opening-architecture {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.4rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.opening-architecture.visible {
  opacity: 1;
  transform: translateY(0);
}

.opening-architecture span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 24px 80px rgba(17, 55, 110, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--deep-navy);
}

.capabilities-progress {
  margin: 1.35rem 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.progress-step {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  color: rgba(16, 33, 59, 0.42);
  transition: color 220ms ease, transform 220ms ease;
}

.progress-step.active {
  color: var(--pb-blue);
  transform: translateY(-1px);
}

.progress-step:not(:last-child)::after {
  content: '━';
  margin-left: 0.6rem;
  color: rgba(18, 101, 243, 0.16);
}

.capability-stage-stack {
  position: relative;
  min-height: 320px;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(18, 101, 243, 0.12);
}

.capability-stage {
  position: absolute;
  inset: 0.9rem 0 0 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(76px);
  clip-path: inset(0 0 100% 0);
  transition: opacity 320ms ease, transform 420ms ease, clip-path 420ms ease;
}

.capability-stage.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  clip-path: inset(0 0 0 0);
}

.story-number {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--pb-blue);
}

.capability-stage h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--deep-navy);
}

.capability-stage p {
  margin: 0 0 0.95rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #445064;
}

.capability-micro-list {
  display: grid;
  gap: 0.48rem;
}

.capability-micro-list span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(16, 33, 59, 0.78);
}

.capability-micro-list span::before {
  content: '';
  width: 24px;
  height: 1px;
  background: rgba(18, 101, 243, 0.3);
}

.capabilities-visual-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.capabilities-visual {
  position: relative;
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    radial-gradient(circle at 20% 12%, rgba(18, 101, 243, 0.1), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(233, 240, 255, 0.9));
  overflow: hidden;
  isolation: isolate;
  margin-left: auto;
  box-shadow: 0 24px 80px rgba(17, 55, 110, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform-style: preserve-3d;
  perspective: 1600px;
  line-height: 0;
}

.capabilities-visual::before {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0));
  pointer-events: none;
  opacity: 0.7;
}

.capabilities-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(18, 101, 243, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 101, 243, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.18;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
  z-index: 1;
}

.capabilities-video,
.system-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  overflow: visible;
  margin: 0;
  padding: 0;
  filter: saturate(1.35) contrast(1.12) brightness(1.04);
  z-index: 0;
  background: #edf3ff;
}

.capabilities-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01) 34%, rgba(10, 20, 39, 0.05));
  z-index: 1;
}

.capabilities-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 3;
}

.system-line {
  fill: none;
  stroke: rgba(18, 101, 243, 0.2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  opacity: 0.45;
}

.system-node,
.workflow-node,
.visual-status {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.capabilities-visual .system-node,
.capabilities-visual .workflow-node,
.capabilities-visual .data-signal,
.capabilities-visual .visual-status {
  display: none !important;
}

.system-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 18px 36px rgba(17, 55, 110, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: rgba(16, 33, 59, 0.72);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 120ms ease, opacity 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.node-customer { left: 10%; top: 22%; }
.node-application { left: 38%; top: 20%; }
.node-operations { left: 42%; top: 54%; }
.node-team { left: 14%; top: 56%; }
.node-data { left: 64%; top: 56%; }

.workflow-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.46);
  color: rgba(16, 33, 59, 0.78);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.workflow-inquiry { left: 16%; top: 26%; }
.workflow-qualify { left: 35%; top: 24%; }
.workflow-crm { left: 54%; top: 26%; }
.workflow-workflow { left: 45%; top: 48%; }
.workflow-action { left: 68%; top: 52%; }

.visual-panel {
  position: absolute;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  opacity: 0;
  transform: translateY(10px) scale(0.98) translateZ(-20px);
}

.visual-panel::before {
  content: '';
  position: absolute;
  inset: 10px 12px auto auto;
  width: 34%;
  height: 16%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.7), rgba(18,101,243,0.14));
  opacity: 0.78;
}

.panel-software {
  left: 8%;
  top: 12%;
  width: 28%;
  height: 24%;
}

.panel-data {
  left: 54%;
  top: 16%;
  width: 18%;
  height: 22%;
}

.panel-infra {
  left: 10%;
  top: 56%;
  width: 58%;
  height: 12%;
}

.data-signal {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pb-blue);
  box-shadow: 0 0 0 10px rgba(18, 101, 243, 0.1);
  opacity: 0;
  transition: opacity 240ms ease;
}

.signal-a { left: 31%; top: 31%; }
.signal-b { left: 54%; top: 42%; }
.signal-c { left: 66%; top: 60%; }

.visual-status {
  position: absolute;
  right: 12%;
  bottom: 12%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.46);
  color: var(--pb-blue);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
}

.capabilities-visual.stage-0 .panel-software,
.capabilities-visual.stage-0 .panel-data,
.capabilities-visual.stage-0 .panel-infra {
  opacity: 0.9;
}

.capabilities-visual.stage-0 .node-customer,
.capabilities-visual.stage-0 .node-application,
.capabilities-visual.stage-0 .node-operations,
.capabilities-visual.stage-0 .node-team,
.capabilities-visual.stage-0 .node-data {
  opacity: 1;
}

.capabilities-visual.stage-1 .node-application {
  opacity: 1;
  transform: translate(-12px, -12px) translateZ(40px);
}

.capabilities-visual.stage-1 .node-customer,
.capabilities-visual.stage-1 .node-team,
.capabilities-visual.stage-1 .node-operations,
.capabilities-visual.stage-1 .node-data {
  opacity: 0.8;
}

.capabilities-visual.stage-1 .workflow-inquiry,
.capabilities-visual.stage-1 .workflow-qualify,
.capabilities-visual.stage-1 .workflow-crm,
.capabilities-visual.stage-1 .workflow-workflow,
.capabilities-visual.stage-1 .workflow-action {
  opacity: 1;
  transform: translateY(0) translateZ(30px);
}

.capabilities-visual.stage-2 .panel-data,
.capabilities-visual.stage-2 .panel-software,
.capabilities-visual.stage-2 .panel-infra {
  opacity: 1;
  transform: translateY(0) scale(1) translateZ(25px);
}

.capabilities-visual.stage-2 .signal-a,
.capabilities-visual.stage-2 .signal-b,
.capabilities-visual.stage-2 .signal-c,
.capabilities-visual.stage-2 .visual-status {
  opacity: 1;
  transform: translateY(0);
}

.capabilities-visual.stage-3 .panel-infra {
  opacity: 1;
  transform: translateY(0) scale(1) translateZ(40px);
}

.capabilities-visual.stage-3 .node-application,
.capabilities-visual.stage-3 .node-operations,
.capabilities-visual.stage-3 .node-data,
.capabilities-visual.stage-3 .node-team,
.capabilities-visual.stage-3 .node-customer {
  color: var(--pb-blue);
  box-shadow: 0 16px 30px rgba(18, 101, 243, 0.12);
}

.capabilities-visual.stage-3 .system-line {
  opacity: 0.85;
  stroke-dashoffset: 0;
}

@media (max-width: 960px) {
  .capabilities-shell {
    grid-template-columns: 1fr;
  }

  .capabilities-copy {
    max-width: none;
    padding-right: 0;
  }

  .capability-stage-stack {
    min-height: 360px;
  }

  .capabilities-visual {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .hero-video-shell {
    background: #f2f6ff;
  }

  .hero-video-shell {
    background: #f2f6ff;
  }

  .hero {
    padding: 5rem 1rem 2rem;
  }

  .hero-content {
    gap: 1.4rem;
  }

  .hero-copy {
    padding-top: 1.4rem;
  }

  .hero-headline {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
  }

  .capabilities-section {
    padding-inline: 1rem;
  }

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

  .capability-stage-stack {
    min-height: 420px;
  }

  .system-node,
  .workflow-node,
  .visual-status {
    font-size: 0.5rem;
  }
}

.projects-intro {
  margin-bottom: 1.4rem;
  transform: translateX(30%);
}

.projects-intro h2,
.engineering-intro h2,
.stack-header h2,
.buddy-header h2,
.cta-wrapper h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--deep-navy);
}

.projects-intro p,
.engineering-intro p,
.stack-header p,
.buddy-header p,
.cta-wrapper p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(16, 33, 59, 0.76);
}

.project-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 1.4rem;
  align-items: start;
}

.project-index {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-self: stretch;
}

.project-item {
  display: grid;
  gap: 0.25rem;
  text-align: left;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(18, 101, 243, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--deep-navy);
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
  will-change: transform;
}

.project-item:hover,
.project-item:focus-visible,
.project-item.active {
  transform: translateX(3px) translate3d(0, 0, 0);
  border-color: rgba(18, 101, 243, 0.24);
  background: var(--soft-blue);
  box-shadow: 0 10px 24px rgba(18, 101, 243, 0.05);
}

.project-index-number {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--pb-blue);
}

.project-index-title {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.project-index-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(16, 33, 59, 0.64);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-panel {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.project-visual {
  position: relative;
  min-height: 240px;
  border-radius: clamp(20px, 2.4vw, 24px);
  background: linear-gradient(145deg, #fbfdff 0%, #edf4ff 100%);
  border: 1px solid rgba(18, 101, 243, 0.14);
  overflow: clip;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.visual-core,
.visual-node,
.visual-path {
  position: absolute;
  transition: all 320ms ease;
}

.visual-core {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(18, 101, 243, 0.26));
  border: 1px solid rgba(18, 101, 243, 0.24);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.visual-path {
  background: rgba(18, 101, 243, 0.2);
  height: 2px;
}

.path-one { width: 140px; left: 30%; top: 38%; transform: rotate(22deg); }
.path-two { width: 140px; left: 36%; top: 57%; transform: rotate(-24deg); }
.visual-node { width: 22px; height: 22px; border-radius: 50%; background: var(--pb-blue); box-shadow: 0 0 0 6px rgba(18, 101, 243, 0.12); }
.node-top { left: 38%; top: 26%; }
.node-mid { left: 69%; top: 46%; }
.node-bottom { left: 44%; top: 74%; }

.project-visual[data-variant="instituteos"] .visual-core { left: 56%; top: 42%; }
.project-visual[data-variant="instituteos"] .path-one { left: 20%; width: 160px; top: 34%; transform: rotate(12deg); }
.project-visual[data-variant="instituteos"] .path-two { left: 34%; width: 170px; top: 64%; transform: rotate(-16deg); }
.project-visual[data-variant="instituteos"] .node-top { left: 24%; top: 32%; }
.project-visual[data-variant="instituteos"] .node-mid { left: 64%; top: 28%; }
.project-visual[data-variant="instituteos"] .node-bottom { left: 54%; top: 72%; }

.project-visual[data-variant="project-receptionist"] .visual-core { left: 48%; top: 42%; }
.project-visual[data-variant="project-receptionist"] .path-one { left: 20%; width: 140px; top: 38%; transform: rotate(8deg); }
.project-visual[data-variant="project-receptionist"] .path-two { left: 42%; width: 140px; top: 60%; transform: rotate(-16deg); }
.project-visual[data-variant="project-receptionist"] .node-top { left: 24%; top: 30%; }
.project-visual[data-variant="project-receptionist"] .node-mid { left: 68%; top: 34%; }
.project-visual[data-variant="project-receptionist"] .node-bottom { left: 46%; top: 76%; }

.project-visual[data-variant="project-atlas"] .visual-core { left: 50%; top: 50%; }
.project-visual[data-variant="project-atlas"] .path-one { left: 22%; width: 180px; top: 44%; transform: rotate(14deg); }
.project-visual[data-variant="project-atlas"] .path-two { left: 34%; width: 180px; top: 58%; transform: rotate(-14deg); }
.project-visual[data-variant="project-atlas"] .node-top { left: 22%; top: 28%; }
.project-visual[data-variant="project-atlas"] .node-mid { left: 64%; top: 28%; }
.project-visual[data-variant="project-atlas"] .node-bottom { left: 46%; top: 74%; }

.project-visual[data-variant="project-edusphere"] .visual-core { left: 46%; top: 32%; }
.project-visual[data-variant="project-edusphere"] .path-one { left: 22%; width: 140px; top: 38%; transform: rotate(16deg); }
.project-visual[data-variant="project-edusphere"] .path-two { left: 38%; width: 140px; top: 64%; transform: rotate(-12deg); }
.project-visual[data-variant="project-edusphere"] .node-top { left: 18%; top: 26%; }
.project-visual[data-variant="project-edusphere"] .node-mid { left: 56%; top: 42%; }
.project-visual[data-variant="project-edusphere"] .node-bottom { left: 68%; top: 72%; }

.project-details {
  border-radius: 24px;
  padding: 1.25rem 1.3rem 1.4rem;
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(18, 101, 243, 0.12);
  box-shadow: 0 12px 30px rgba(17, 55, 110, 0.05);
}

.project-detail {
  display: none;
}

.project-detail.active {
  display: grid;
  gap: 0.7rem;
}

.project-type {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pb-blue);
}

.project-detail h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--deep-navy);
}

.project-detail p {
  margin: 0;
}

.project-detail ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
}

.project-detail li {
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(234, 242, 255, 0.95);
  font-size: 0.82rem;
  color: rgba(16, 33, 59, 0.78);
}

.engineering-section,
.stack-section,
.buddy-section,
.cta-section {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 2rem));
  margin: 1.25rem auto 0;
  padding: 2rem 2rem 3rem;
  border-radius: 32px;
  border: 1px solid rgba(18, 101, 243, 0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(239,245,255,0.92) 100%);
  box-shadow: var(--shadow);
}

.engineering-intro,
.stack-header,
.buddy-header,
.cta-wrapper {
  display: flex;
  gap: 1.6rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.engineering-copy,
.stack-copy,
.buddy-header > *,
.cta-wrapper > * {
  flex: 1;
}

.engineering-visual {
  position: relative;
  width: min(440px, 42vw);
  min-height: 240px;
  border-radius: clamp(22px, 2.8vw, 28px);
  background: linear-gradient(135deg, rgba(23, 56, 112, 0.94), rgba(142, 177, 255, 0.48));
  border: 1px solid rgba(255,255,255,0.5);
  overflow: hidden;
  transform: perspective(1200px) rotateX(10deg) rotateY(-12deg);
  box-shadow: 0 30px 80px rgba(20, 48, 97, 0.2), inset 0 1px 0 rgba(255,255,255,0.4);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.85;
}

.orb-one {
  width: 180px;
  height: 180px;
  background: rgba(127, 184, 255, 0.42);
  top: -30px;
  left: 12%;
}

.orb-two {
  width: 220px;
  height: 220px;
  background: rgba(255,255,255,0.18);
  bottom: -60px;
  right: 8%;
}

.orb-three {
  width: 120px;
  height: 120px;
  background: rgba(18,101,243,0.18);
  left: 42%;
  top: 18%;
}

.flow-plane {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  height: 58px;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.38);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.32), 0 12px 30px rgba(9,21,42,0.12);
  color: rgba(255,255,255,0.92);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.plane-one { left: 12%; top: 18%; }
.plane-two { left: 34%; top: 48%; }
.plane-three { left: 58%; top: 28%; }

.flow-node {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #7ab7ff);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.12), 0 0 18px rgba(141,192,255,0.7);
}

.node-top { left: 36%; top: 24%; }
.node-mid { left: 52%; top: 52%; }
.node-bottom { left: 68%; top: 36%; }

.engineering-timeline {
  position: relative;
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.engineering-step {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(18, 101, 243, 0.08);
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(234,242,255,0.65));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  will-change: transform;
}

.engineering-step.active {
  border-color: rgba(18, 101, 243, 0.2);
  box-shadow: 0 20px 36px rgba(18, 101, 243, 0.07);
  transform: translateX(3px) translate3d(0, 0, 0);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--pb-blue);
}

.engineering-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--deep-navy);
}

.engineering-step p {
  margin: 0;
  color: rgba(16, 33, 59, 0.72);
  line-height: 1.6;
}

@keyframes floatPanel {
  0%, 100% { transform: perspective(1200px) rotateX(10deg) rotateY(-12deg) translateY(0px); }
  50% { transform: perspective(1200px) rotateX(8deg) rotateY(-10deg) translateY(-8px); }
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-10px); opacity: 1; }
}

@keyframes orbitRing {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes driftStack {
  0%, 100% { transform: perspective(1200px) rotateX(12deg) rotateY(-12deg) translateY(0); }
  50% { transform: perspective(1200px) rotateX(10deg) rotateY(-8deg) translateY(-8px); }
}

.engineering-visual {
  animation: floatPanel 9s ease-in-out infinite;
}

.orb-one, .orb-two, .orb-three {
  animation: floatOrb 8s ease-in-out infinite;
}

.orb-two { animation-delay: 1.2s; }
.orb-three { animation-delay: 2.2s; }

.flow-plane {
  animation: floatOrb 7s ease-in-out infinite;
}

.plane-two { animation-delay: 0.8s; }
.plane-three { animation-delay: 1.6s; }

.stack-visual {
  position: relative;
  width: min(360px, 34vw);
  min-height: 220px;
  border-radius: clamp(22px, 2.8vw, 28px);
  background: linear-gradient(160deg, rgba(14, 27, 52, 0.96), rgba(72, 110, 190, 0.78));
  border: 1px solid rgba(255,255,255,0.44);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(20, 40, 78, 0.18), inset 0 1px 0 rgba(255,255,255,0.28);
  transform: perspective(1200px) rotateX(12deg) rotateY(-12deg);
  animation: driftStack 9s ease-in-out infinite;
}

.stack-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(74, 130, 255, 0.66), rgba(13, 27, 52, 0.96));
  box-shadow: 0 16px 44px rgba(17, 101, 243, 0.28);
}

.stack-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.32);
  transform: translate(-50%, -50%);
  animation: orbitRing 18s linear infinite;
}

.ring-one { width: 180px; height: 180px; }
.ring-two { width: 220px; height: 220px; animation-duration: 22s; }
.ring-three { width: 260px; height: 260px; animation-duration: 26s; }

.stack-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 34px;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.9);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tag-app { left: 10%; top: 18%; }
.tag-data { right: 12%; top: 22%; }
.tag-ai { left: 18%; bottom: 18%; }
.tag-cloud { right: 16%; bottom: 16%; }

.stack-layers {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.stack-layer {
  position: relative;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(18, 101, 243, 0.12);
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(240,246,255,0.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.stack-layer:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(18, 101, 243, 0.08);
}

.layer-label {
  margin: 0 0 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pb-blue);
}

.stack-layer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack-layer li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 101, 243, 0.12);
  background: rgba(255,255,255,0.85);
  font-size: 0.83rem;
  color: rgba(16, 33, 59, 0.8);
}

.buddy-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(18, 101, 243, 0.12);
}

.buddy-flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(235, 243, 255, 0.9);
  border: 1px solid rgba(18, 101, 243, 0.08);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(16, 33, 59, 0.8);
}

.cta-wrapper {
  align-items: center;
}

.cta-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.project-brief-modal[hidden] {
  display: none;
}

.project-brief-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.project-brief-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project-brief-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 20%, rgba(18, 101, 243, 0.16), transparent 34%),
    rgba(248, 251, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.project-brief-shell {
  position: relative;
  width: min(820px, calc(100vw - 48px));
  max-width: 820px;
  height: auto;
  max-height: min(720px, calc(100dvh - 40px));
  display: block;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(18, 101, 243, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 28px 84px rgba(16, 33, 59, 0.12);
  opacity: 0;
  transition: opacity 180ms ease;
}

.project-brief-modal.is-open .project-brief-shell {
  opacity: 1;
}

.project-brief-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(18, 101, 243, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--deep-navy);
  font-size: 1.4rem;
  cursor: pointer;
}

.project-brief-aside {
  position: relative;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(150deg, #10213b 0%, #1265f3 100%);
}

/* Form layout: header, progress, scrollable steps, sticky actions */
.project-brief-form {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 1.6rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(26px) saturate(142%);
  -webkit-backdrop-filter: blur(26px) saturate(142%);
}

.project-brief-form .brief-header { flex: 0 0 auto; }
.project-brief-form .brief-progress { flex: 0 0 auto; }
.project-brief-form .brief-status { flex: 0 0 auto; }
.project-brief-form .brief-steps-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
}

.brief-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(16,33,59,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.84));
  backdrop-filter: blur(8px);
  min-height: 72px;
}

.project-brief-form { padding-bottom: 88px; }

.brief-textarea textarea { min-height: 140px; max-height: 300px; resize: vertical; overflow: auto; }

.brief-field-error { margin: 0.5rem 0 0; color: #b42318; font-size: 0.9rem; }

/* Compact header typography */
.brief-header h2 { font-size: clamp(52px, 5vw, 76px); line-height: 0.95; margin-bottom: 0.4rem; }
.brief-header span { font-size: 16px; line-height: 1.5; }

/* Reduce left panel use on smaller screens */
@media (max-width: 900px) {
  .project-brief-shell { width: calc(100vw - 24px); height: auto; max-height: calc(100dvh - 24px); }
  .project-brief-aside { display: none; }
}

@media (max-width: 767px) {
  .project-brief-modal { padding: 0; }
  .project-brief-shell {
    width: calc(100% - 24px);
    max-width: 100%;
    height: auto;
    max-height: calc(100dvh - 24px);
    border-radius: 22px;
  }
  .project-brief-form { padding: 1rem; padding-bottom: calc(env(safe-area-inset-bottom) + 76px); }
  .brief-header h2 { font-size: clamp(36px, 11vw, 46px); line-height: 0.98; text-align: center; }
  .brief-header span { text-align: center; max-width: 34rem; margin-inline: auto; }
  .brief-actions { padding-left: 1rem; padding-right: 1rem; }
  .project-brief-close { top: calc(env(safe-area-inset-top) + 12px); }
}

/* Hero mobile centering fixes */
@media (max-width: 767px) {
  .hero-copy {
    max-width: calc(100% - 40px);
    width: calc(100% - 40px);
    transform: none;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    padding-top: 12px;
  }
  .hero-copy::before { display: none; }
  .hero-headline { font-size: clamp(38px, 11vw, 56px); line-height: 0.98; }
  .hero-description { max-width: 640px; margin: 0 auto; font-size: 16px; }
  .hero-actions { justify-content: center; gap: 0.6rem; flex-direction: column; }
  .hero-actions .button { width: 100%; max-width: 320px; margin: 0 auto; }
}

/* Systems section: ensure copy appears before visual on smaller screens */
@media (max-width: 1024px) {
  .transition-shell {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .transition-copy-block { order: 1; }
  .transition-visual-block { order: 2; }
  .transition-visual-block .system-video { width: 100%; height: auto; max-width: 100%; object-fit: contain; border-radius: 12px; }
  .transition-copy-block, .transition-visual-block { width: 100%; }
}

.project-brief-aside p,
.brief-header p,
.brief-step-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pb-blue);
}

.project-brief-aside p {
  color: rgba(255, 255, 255, 0.86);
}

.brief-system-animation {
  display: grid;
  gap: 0.85rem;
  align-items: center;
  max-width: 210px;
}

.brief-system-animation span {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.brief-system-animation i {
  width: 1px;
  height: 32px;
  margin-left: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.9), rgba(255,255,255,0));
}

.project-brief-form {
  position: relative;
  min-width: 0;
  padding: 1.6rem;
  overflow: auto;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(26px) saturate(142%);
  -webkit-backdrop-filter: blur(26px) saturate(142%);
}

.project-brief-modal {
  min-height: 100vh;
}

.project-brief-shell {
  width: min(700px, 100%);
}

.brief-field-error {
  margin: 0.5rem 0 0;
  color: #b42318;
  font-size: 0.86rem;
  line-height: 1.45;
}

.project-brief-form .is-invalid input,
.project-brief-form .is-invalid textarea,
.project-brief-form .is-invalid select,
.project-brief-form .is-invalid fieldset {
  outline: 2px solid rgba(180, 35, 24, 0.18);
  outline-offset: 3px;
}

.brief-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.brief-header {
  max-width: 640px;
  margin-bottom: 1.4rem;
}

.brief-header h2,
.brief-success h2 {
  margin: 0.55rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--deep-navy);
}

.brief-header span,
.brief-success p {
  display: block;
  max-width: 620px;
  color: rgba(16, 33, 59, 0.76);
  line-height: 1.65;
}

.brief-progress {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: rgba(16, 33, 59, 0.42);
}

.brief-progress span.active {
  color: var(--pb-blue);
}

.brief-step-slider {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
}

.brief-step-slider label {
  color: rgba(16, 33, 59, 0.7);
  font-size: 0.9rem;
  font-weight: 700;
}

.brief-step-slider input[type="range"] {
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgba(18, 101, 243, 0.16);
  outline: none;
}

.brief-step-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pb-blue);
  border: 2px solid rgba(255, 255, 255, 0.95);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(18, 101, 243, 0.2);
}

.brief-step-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pb-blue);
  border: 2px solid rgba(255, 255, 255, 0.95);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(18, 101, 243, 0.2);
}

.brief-step-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(16, 33, 59, 0.6);
}

.brief-progress i {
  width: 42px;
  height: 1px;
  background: rgba(18, 101, 243, 0.2);
}

.brief-status {
  min-height: 1.5rem;
  margin-bottom: 0.4rem;
  color: #b42318;
  font-size: 0.92rem;
}

.brief-step {
  display: none;
}

.brief-step.active {
  display: block;
  animation: briefStepIn 340ms ease both;
}

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

.brief-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.brief-field-grid label,
.brief-textarea,
.brief-choice-group {
  display: grid;
  gap: 0.45rem;
  color: var(--deep-navy);
  font-weight: 600;
}

.brief-field-grid .wide {
  grid-column: 1 / -1;
}

.brief-field-grid input,
.brief-field-grid select,
.brief-textarea textarea {
  width: 100%;
  border: 1px solid rgba(18, 101, 243, 0.14);
  border-radius: 16px;
  padding: 0.92rem 1rem;
  background: rgba(255, 255, 255, 0.76);
  color: var(--deep-navy);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.brief-field-grid input:focus,
.brief-field-grid select:focus,
.brief-textarea textarea:focus,
.brief-choice-group input:focus-visible,
.project-brief-close:focus-visible {
  outline: 3px solid rgba(18, 101, 243, 0.24);
  outline-offset: 2px;
}

.brief-choice-group {
  border: 0;
  padding: 0;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brief-choice-group legend {
  grid-column: 1 / -1;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.brief-choice-group label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(18, 101, 243, 0.12);
  background: rgba(255, 255, 255, 0.66);
}

.brief-choice-group input {
  width: 18px;
  height: 18px;
  accent-color: var(--pb-blue);
}

.brief-textarea {
  margin-bottom: 1rem;
}

.brief-textarea small {
  color: rgba(16, 33, 59, 0.62);
  font-weight: 400;
}

.brief-textarea textarea {
  min-height: 180px;
  resize: vertical;
}

.brief-summary {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(18, 101, 243, 0.12);
  background: rgba(255, 255, 255, 0.68);
}

.brief-summary p,
.brief-privacy {
  margin: 0;
  color: rgba(16, 33, 59, 0.78);
  line-height: 1.55;
}

.brief-privacy {
  margin-top: 0.9rem;
  font-size: 0.92rem;
}

.brief-actions {
  position: sticky;
  bottom: -2.1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin: 1.5rem -2.1rem -2.1rem;
  padding: 1rem 2.1rem;
  background: rgba(255, 255, 255, 0.76);
  border-top: 1px solid rgba(18, 101, 243, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brief-success {
  min-height: 420px;
  display: grid;
  align-content: center;
  justify-items: start;
}

.brief-success[hidden] {
  display: none;
}

.brief-check {
  position: relative;
  padding-left: 1.7rem;
  font-weight: 700;
  color: var(--deep-navy) !important;
}

.brief-check::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--pb-blue);
  box-shadow: 0 0 0 6px rgba(18, 101, 243, 0.12);
}

.brief-success .brief-system-animation {
  grid-auto-flow: column;
  grid-template-columns: none;
  max-width: none;
  margin: 1rem 0;
}

.brief-success .brief-system-animation span {
  color: var(--deep-navy);
  border-color: rgba(18, 101, 243, 0.14);
  background: rgba(255, 255, 255, 0.78);
}

.brief-success .brief-system-animation i {
  width: 44px;
  height: 1px;
  margin: auto 0;
  background: linear-gradient(90deg, rgba(18,101,243,0), rgba(18,101,243,0.6), rgba(18,101,243,0));
}

.inner-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(18, 101, 243, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 101, 243, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 20% 12%, rgba(18, 101, 243, 0.08), transparent 34%),
    #ffffff;
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.inner-page main {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 8rem 0 4rem;
}

.inner-hero {
  position: relative;
  padding: 3rem 0 2rem;
}

.inner-hero h1 {
  margin: 0 0 1rem;
  max-width: 900px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--deep-navy);
}

.inner-hero p:not(.section-label) {
  max-width: 760px;
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(16, 33, 59, 0.78);
}

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

.inner-card {
  padding: 1.35rem;
  border-radius: 20px;
  border: 1px solid rgba(18, 101, 243, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 46px rgba(16, 33, 59, 0.07);
}

.inner-card > p:first-child {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pb-blue);
}

.inner-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.inner-card a {
  color: var(--deep-navy);
  text-decoration-color: rgba(18, 101, 243, 0.28);
  text-underline-offset: 0.22em;
}

.inner-card p {
  margin: 0;
  line-height: 1.65;
  color: rgba(16, 33, 59, 0.74);
}

.answer-section {
  display: grid;
  gap: 1rem;
  max-width: 920px;
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid rgba(18, 101, 243, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 60px rgba(16, 33, 59, 0.08);
}

.answer-section h2 {
  margin: 1rem 0 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--deep-navy);
}

.answer-section h2:first-child {
  margin-top: 0;
}

.answer-section p,
.answer-section li {
  line-height: 1.7;
  color: rgba(16, 33, 59, 0.78);
}

.answer-section ul {
  margin: 0;
  padding-left: 1.2rem;
}

@media (max-width: 920px) {
  .engineering-intro,
  .stack-header,
  .buddy-header,
  .cta-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .engineeering-section,
  .stack-section,
  .buddy-section,
  .cta-section {
    padding-inline: 1rem;
  }

  .engineering-step {
    grid-template-columns: 52px minmax(0, 1fr);
  }
}

.project-type {
  margin: 0 0 0.5rem;
  font-family: 'Geist Mono', 'SFMono-Regular', Consolas, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pb-blue);
}

.project-detail h3 {
  margin: 0 0 0.6rem;
  font-size: 1.45rem;
  color: var(--deep-navy);
}

.project-detail ul {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-detail li {
  padding: 0.42rem 0.62rem;
  border-radius: 999px;
  background: rgba(234, 242, 255, 0.9);
  font-size: 0.82rem;
}

.progress-indicator {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 25;
}

.progress-step {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 101, 243, 0.2);
  background: rgba(255,255,255,0.8);
  display: block;
  font-size: 0;
}

.progress-step.active {
  background: var(--pb-blue);
  box-shadow: 0 0 0 4px rgba(18, 101, 243, 0.14);
}

@media (max-width: 920px) {
  .system-canvas {
    width: min(100%, 860px);
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .hero-visual {
    min-height: 300px;
    justify-content: flex-start;
  }

  .capabilities-shell {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .capabilities-copy {
    max-width: none;
    padding-right: 0;
  }

  .capabilities-visual {
    width: 100%;
  }

  .transition-intro {
    flex-direction: column;
  }

  .capability-block,
  .project-shell {
    grid-template-columns: 1fr;
  }

  .project-index {
    gap: 0.6rem;
  }

  .project-item {
    padding: 0.9rem 0.95rem;
  }
}

@media (max-width: 720px) {
  .site-nav {
    padding: 0.9rem 1rem;
    width: calc(100% - 1rem);
    border-radius: 999px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .hero {
    padding-top: 6.2rem;
  }

  .hero-copy {
    padding-top: 2rem;
  }

  .hero-headline {
    font-size: clamp(2.5rem, 8vw, 3.2rem);
  }

  .hero-description {
    font-size: 0.98rem;
  }

  .transition-section,
  .capabilities-section,
  .projects-section {
    padding: 1.5rem 1rem 2rem;
  }

  .transition-section,
  .capabilities-section,
  .projects-section {
    width: auto;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-inline: clamp(20px, 5vw, 24px);
    box-sizing: border-box;
  }

  .section-label,
  .projects-intro,
  .projects-intro > div,
  .projects-intro h2,
  .projects-intro p,
  .project-shell,
  .project-item,
  .project-panel {
    min-width: 0;
  }

  .section-label {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .projects-intro {
    transform: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
  }

  .projects-intro h2,
  .projects-intro p {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .project-shell {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .project-item {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .transition-section {
    padding: 1.75rem 0 2.5rem;
  }

  .system-canvas {
    padding: 0;
    width: min(100%, calc(100% - 1.25rem));
    border-radius: 20px;
  }

  .capabilities-visual {
    border-radius: 24px;
  }

  .progress-indicator {
    display: none;
  }

  .project-brief-modal {
    padding: 0.5rem 0.75rem 1rem;
    align-items: start;
  }

  .project-brief-shell {
    width: 100%;
    max-height: calc(100vh - 1.4rem);
    border-radius: 18px;
    grid-template-columns: 1fr;
  }

  .project-brief-aside {
    display: none;
  }

  .project-brief-form {
    padding: 1.2rem;
  }

  .brief-header h2,
  .brief-success h2 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .brief-progress {
    gap: 0.4rem;
  }

  .brief-progress i {
    width: 22px;
  }

  .brief-field-grid,
  .brief-choice-group {
    grid-template-columns: 1fr;
  }

  .brief-actions {
    position: sticky;
    bottom: 0;
    margin: 0;
    padding: 0.9rem 1rem 0.8rem;
  }

  .inner-page main {
    padding-top: 6.5rem;
  }

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

  .answer-section {
    padding: 1.25rem;
  }

  .projects-intro {
    transform: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
  }

  .projects-intro > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .projects-intro h2,
  .projects-intro p {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .projects-section {
    width: auto;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .project-shell,
  .project-index,
  .project-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
