.home-services,
.home-process {
  padding-block: clamp(60px, 8vw, 110px);
}

.home-services h2,
.home-process h2,
.home-workflow h2#workflow-title {
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.05;
  margin-bottom: 28px;
}

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

.home-service {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: #f6f5f8;
  transition: border-color .2s, background-color .2s;
}

.home-service:hover { border-color: #9387df; background: #efecfa; }
.home-service img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.home-service > div {
  position: relative;
  padding: 22px 48px 25px 24px;
}

.home-service h3, .home-process h3 { font-size: clamp(21px, 2vw, 29px); }
.home-service p, .home-process p { margin-top: 8px; color: var(--muted); }
.home-service span { position: absolute; right: 21px; top: 22px; color: #4539ae; }

.home-workflow { background: #f2f0fa; padding-block: clamp(55px, 7vw, 94px); }
.home-workflow-intro > p { color: var(--muted); }
.home-workflow .dashboard-section { padding-block: 30px 0; }

.home-process ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: decimal-leading-zero inside;
  padding: 0;
  gap: 22px;
}
.home-process li { padding-top: 18px; border-top: 1px solid var(--line); }
.home-process li::marker { color: #5646ce; font-weight: 700; }
.home-process h3 { margin-top: 12px; }

.home-faq { padding-top: 0; }
.final-panel-simple { grid-template-columns: 1fr; min-height: auto; }
.final-panel-simple h2 { max-width: 15ch; }

@media (max-width: 760px) {
  .home-service-grid, .home-process ol { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .home-service { transition: none; }
}

.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: clamp(700px, 61vw, 960px);
  margin: 12px 16px 0;
  overflow: hidden;
  border-radius: 24px;
  color: #f7f5ff;
  background:
    radial-gradient(ellipse at 83% 72%, #51478c50 0%, transparent 51%),
    radial-gradient(ellipse at 62% 115%, #293f865c 0%, transparent 55%),
    linear-gradient(150deg, #10101f 15%, #161429 64%, #101122 100%);
}

.home-hero-layout {
  display: flex;
  align-items: center;
  width: min(76%, 1260px);
  padding-block: 126px 64px;
}

.home-hero-copy { position: relative; z-index: 2; width: min(43%, 470px); }
.home-hero h1 { font-size: clamp(44px, 4.25vw, 76px); line-height: 1.01; letter-spacing: -.045em; }
.home-hero .ref-subtitle { margin-top: 18px; max-width: 38ch; font-size: clamp(16px, 1.3vw, 20px); color: #d3cfe5; }
.hero-workflow-link { display: inline-flex; gap: 9px; align-items: center; margin: 20px 0 24px; font-size: 14px; font-weight: 600; }
.hero-workflow-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-intake { display: flex; gap: 6px; padding: 5px; border: 1px solid #ffffff32; border-radius: 9px; background: #f1eef9; }
.hero-email-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero-intake input { width: 100%; min-width: 0; padding: 8px 10px; border: 0; border-radius: 5px; background: transparent; color: #201936; font: inherit; font-size: 14px; }
.hero-intake .button.primary { flex: none; border-radius: 5px; background: #b9a8ff; color: #191332; white-space: nowrap; padding-inline: 14px; }
.hero-intake .button.primary:hover { background: #cfc4ff; }

.hero-device-scene {
  position: absolute;
  z-index: 1;
  top: 19%;
  right: -8%;
  width: 61%;
  height: 63%;
  margin: 0;
  perspective: 1250px;
  pointer-events: none;
  container-type: inline-size;
}
.hero-device-rig { position: relative; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--scene-x, 0deg)) rotateY(var(--scene-y, 0deg)); transition: transform .45s cubic-bezier(.2,.65,.3,1); }
.hero-device-rig::after { content: ""; position: absolute; z-index: -1; bottom: -1%; left: -10%; width: 110%; height: 12%; background: radial-gradient(ellipse, #050510c2 0, #0c0a2580 33%, transparent 71%); filter: blur(15px); }
.hero-monitor {
  position: absolute;
  inset: 0 0 1% 17%;
  padding: clamp(9px, 1.2vw, 20px);
  border-radius: 4.5cqw;
  border: 2px solid #5d566d;
  background: linear-gradient(135deg, #24212d, #08070d 50%, #302936);
  box-shadow: inset 0 1px 1px #ffffff50, -5px 8px 0 #100e1c, -15px 25px 48px #0806128c;
  transform: rotateY(-14deg) rotateZ(2.3deg);
  overflow: hidden;
}
.hero-monitor-screen { display: flex; width: 100%; height: 100%; border-radius: 2.6cqw; overflow: hidden; color: #252033; background: #f1eff6; }
.device-sidebar { flex: 0 0 8%; display: grid; align-content: start; justify-items: center; gap: 2cqw; padding-block: 2cqw; background: white; color: #6a617d; font-size: 1.8cqw; }
.device-sidebar img { width: 2.6cqw; height: 2.6cqw; }
.device-workspace { width: 92%; padding: 3cqw 2.8cqw; }
.device-heading { display: grid; gap: .25cqw; margin-bottom: 2cqw; }
.device-heading strong { font-size: 4cqw; line-height: 1.12; letter-spacing: -.045em; }
.device-heading span { font-size: 1.35cqw; color: #665f76; }
.device-panels { display: grid; grid-template-columns: 1.12fr 1fr; gap: 1.15cqw; }
.device-panel { min-width: 0; padding: 1.5cqw; border: 1px solid #e5e0ef; border-radius: 1cqw; background: #fff; font-size: 1.55cqw; }
.device-panel p { margin: .8cqw 0 0; font-size: 1.2cqw; color: #514a63; }
.device-chart { display: flex; align-items: end; justify-content: space-between; gap: .8cqw; height: 13cqw; margin-top: 1.4cqw; background: repeating-linear-gradient(to top, #ede8f5 0 1px, transparent 1px 3.25cqw); }
.device-chart i { flex: 1; height: 42%; border-radius: .4cqw .4cqw 0 0; background: linear-gradient(#8167ed, #ddd1ff); }
.device-chart i:nth-child(2) { height: 55%; }.device-chart i:nth-child(3) { height: 49%; }.device-chart i:nth-child(4) { height: 67%; }.device-chart i:nth-child(5) { height: 76%; }.device-chart i:nth-child(6) { height: 69%; }.device-chart i:nth-child(7) { height: 91%; }
.device-days { display: flex; justify-content: space-between; margin-top: .55cqw; font-size: .95cqw; color: #655c75; }
.device-queue > span { display: flex; align-items: center; gap: .75cqw; margin-top: 1.3cqw; padding-bottom: .7cqw; border-bottom: 1px solid #eae5f2; font-size: 1.3cqw; }
.device-queue i { width: .8cqw; height: .8cqw; border-radius: 50%; background: #9c86eb; }

/* A narrow titanium rail, even bezels and a pill cutout frame the inset display. */
.hero-phone {
  position: absolute;
  left: 3%;
  bottom: 0;
  width: 19.5%;
  aspect-ratio: 0.485;
  padding: .65cqw;
  border: 1px solid #9693a5;
  border-radius: 3.8cqw;
  background: linear-gradient(110deg, #777688, #282633 23%, #0b0a11 70%, #7e7b90);
  box-shadow: inset 0 0 0 .35cqw #0d0c13, -4px 7px 0 #0d0c14, -15px 17px 32px #050510a8;
  transform: translateZ(42px) rotateY(10deg) rotateZ(2deg);
}
.hero-phone::before, .hero-phone::after {
  content: "";
  position: absolute;
  width: .2cqw;
  min-width: 1px;
  border-radius: 4px;
  background: #8d899c;
}
.hero-phone::before { left: -.24cqw; top: 24%; height: 7%; box-shadow: 0 3.5cqw #8d899c; }
.hero-phone::after { right: -.23cqw; top: 31%; height: 10%; }
.hero-phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: .35cqw solid #09080e;
  border-radius: 3.13cqw;
  background: #faf9fd;
  color: #25203a;
}
.device-camera { position: absolute; z-index: 1; top: .75cqw; left: 32%; width: 36%; height: 1.65cqw; border-radius: 3cqw; background: #0b0b12; }
.device-camera::after { content: ""; position: absolute; right: 13%; top: 34%; width: .48cqw; aspect-ratio: 1; border-radius: 50%; background: #282a4b; }
.phone-status { display: flex; align-items: center; justify-content: space-between; padding: 1cqw 1.35cqw .4cqw; font-size: 1.02cqw; font-weight: 700; }
.phone-status-icons { display: flex; align-items: end; gap: .35cqw; }
.phone-signal { width: .75cqw; height: .6cqw; background: currentColor; clip-path: polygon(0 100%,100% 0,100% 100%); }
.phone-battery { width: 1cqw; height: .58cqw; border: 1px solid currentColor; border-radius: .18cqw; background: #303044; }
.phone-content { padding: 1.6cqw 1.2cqw 0; font-size: 2.45cqw; }
.phone-home-indicator { position: absolute; bottom: .62cqw; left: 34%; width: 32%; height: .29cqw; border-radius: 2px; background: #292638; }
.phone-notification { display: grid; gap: .6cqw; margin-top: 1.4cqw; padding: 1.3cqw; border-radius: 1cqw; background: #eae2fc; }
.phone-notification small { font-size: .9cqw; color: #514081; }
.phone-notification b, .phone-notification span, .hero-phone-screen p, .phone-row { font-size: 1.35cqw; }
.hero-phone-screen p { margin: 1.6cqw 0 .6cqw; font-weight: 700; }
.phone-row { border-top: 1px solid #e8e1ef; padding-block: .8cqw; }
.hero-device-tile { position: absolute; left: 14%; bottom: -2%; width: 29%; aspect-ratio: 1.64; display: flex; align-items: flex-start; gap: .7cqw; padding: 1.75cqw; color: #f5efff; font-size: 1.8cqw; border-radius: 1.4cqw; border: 1px solid #736690; box-shadow: -3px 5px 0 #1b1329, -8px 12px 22px #07041288; background: repeating-radial-gradient(ellipse at top left, transparent 0 5px, #d2c5ff12 6px 7px, transparent 8px 11px), linear-gradient(140deg, #323047, #151323 70%); transform: translateZ(72px) rotateY(-7deg) rotateZ(-2deg); }
.hero-device-tile img { width: 2.6cqw; height: 2.6cqw; }

.hero-capabilities { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 22px; width: min(76%, 1260px); margin: 0 auto; padding: 20px 0 25px; border-top: 1px solid #ffffff25; color: #c7c0dd; font-size: clamp(13px, 1.2vw, 17px); font-weight: 600; }

.home-service-grid { perspective: 1500px; }
.home-service { transition: transform .32s, box-shadow .32s, border-color .2s, background-color .2s; }
.home-service:focus-visible { box-shadow: 0 12px 28px #33295820; }
.home-workflow .dashboard { box-shadow: 0 7px 0 #c5bbdf, 0 19px 40px #35226325; transition: transform .32s, box-shadow .32s; }
@media (hover: hover) and (pointer: fine) {
  .home-service:hover { transform: translateZ(15px) rotateX(2deg); box-shadow: 0 14px 30px #33295819; }
  .home-workflow .dashboard:hover { transform: translateY(-3px); box-shadow: 0 10px 0 #c5bbdf, 0 22px 44px #3522632a; }
}

@media (max-width: 920px) {
  .home-hero { min-height: 0; }
  .home-hero-layout { width: min(88%, 660px); padding: 108px 0 0; }
  .home-hero-copy { width: min(100%, 500px); }
  .home-hero h1 { font-size: clamp(40px, 7vw, 62px); }
  .hero-device-scene { position: relative; inset: auto; width: 86%; height: auto; aspect-ratio: 1.55; margin: 42px 0 27px auto; }
  .hero-capabilities { width: 88%; }
}
@media (max-width: 480px) {
  .home-hero { margin-inline: 8px; border-radius: 18px; }
  .hero-intake .button.primary { padding-inline: 9px; font-size: 12px; }
  .hero-capabilities { display: grid; grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-device-rig, .home-service, .home-workflow .dashboard { transition: none; }
  .hero-device-rig, .home-service:hover, .home-workflow .dashboard:hover { transform: none; }
}


/* Compact floating navigation, with the logo separated from the links. */
body .topbar .nav, body.dark .topbar:not(.is-scrolled) .nav {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(658px, calc(100% - 32px));
  height: 60px;
  padding: 0 12px 0 19px;
  border: 1px solid #fff9;
  border-radius: 100px;
  background: #f4f3f8f2;
  color: #191821;
  box-shadow: 0 5px 22px #07061924;
  backdrop-filter: blur(16px);
}
.topbar .nav .brand { flex: none; gap: 0; position: relative; }
.topbar .nav .brand img { width: 33px; height: 33px; padding: 3px; border-radius: 10px; background: linear-gradient(145deg, #ece6ff, #c5b3fb); }
.topbar .nav .brand span { display: none; }
.topbar .nav .nav-links { flex: 1; min-width: 0; gap: 25px; font-size: 14px; }
.topbar .nav .nav-links a { color: #191821; }
.topbar .nav .nav-cta { flex: none; margin: 0; padding: 8px 15px; color: #fff; background: #2445f5; border-radius: 100px; font-size: 13px; }
.topbar .nav .nav-cta:hover { background: #1934d4; }
@media (min-width: 761px) {
  .topbar .nav .brand { margin-right: 9px; padding-right: 19px; }
  .topbar .nav .brand::after { content: ""; position: absolute; right: 0; top: 25%; height: 50%; border-right: 1px solid #201b3320; }
  body .topbar .nav .nav-links { display: flex; position: static; background: none; color: inherit; border: 0; box-shadow: none; padding: 0; }
  body .topbar .nav .menu-button { display: none; }
  .topbar .nav .nav-links a:last-child { margin-left: auto; padding: 6px 13px; border: 1px solid #201b331b; border-radius: 100px; }
}
@media (max-width: 760px) {
  body .topbar .nav, body.dark .topbar:not(.is-scrolled) .nav { height: 54px; justify-content: space-between; padding: 0 9px 0 13px; }
  body .topbar .nav .nav-links { display: none; }
  body .topbar .nav:has(.menu-button[aria-expanded=true]) .nav-links { display: grid; gap: 4px; }
  body .topbar .nav .menu-button { display: block; }
  body .topbar .nav .nav-cta { display: inline-flex; margin-left: auto; }
}

.topbar .nav .brand img, .footer .brand img {
  width: 135px; height: 38px; object-fit: contain; padding: 0; background: none; border-radius: 0;
}
@media (max-width: 760px) {
  .topbar .nav .brand img, .footer .brand img { width: 105px; height: 32px; }
}

/* Neural Eight's violet and pale lavender brand palette. */
:root{
  --ne-action:#5140d5;
  --ne-hover:#624ae4;
  --ne-lavender:#c6a9ff;
  --ne-paper:#f6f5fc;
  --ne-base:#0b0812;
  --ne-night:#110c1b;
  --ne-muted-dark:#b7acc6;
}
body.light{background:var(--ne-paper)}
body.light .topbar .nav{background:#f6f5fcf5}
body .topbar .nav .nav-cta,.button.primary,.booking-progress-track span,.quick-contact{background:var(--ne-action)}
body .topbar .nav .nav-cta:hover,.button.primary:hover,.quick-contact:hover{background:var(--ne-hover)}
.text-link,.showcase-editorial .text-link{color:#4e38bc}
.chat-header{background:linear-gradient(120deg,#281849,#5140d5)}
.choice:has(input:checked){border-color:#8c72e4;background:#eee8ff}

/* Shared surfaces and form states. */
body .topbar .nav { background: #fbf9feed; border-color: #e5deef; box-shadow: 0 4px 16px #2316410e; }
body .topbar.is-scrolled .nav { background: #fcfaff; box-shadow: 0 7px 24px #23164116; }
body .topbar .nav a[aria-current="page"] { color: #4c31a6; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
body :focus-visible { outline: 2px solid #6543c9; outline-offset: 4px; }
body .nav-links a { border-radius: 5px; }
body .button:active { scale: .96; }
body .button { transition: background-color .2s, border-color .2s, scale .2s; }
.inner-hero { background: radial-gradient(ellipse at 95% 20%, #e6daf9, transparent 62%), #f6f2fb; }
.inner-hero h1 { color: #191624; }
.inner-hero .wrap > p:last-child { color: #5c5769; text-wrap: pretty; }
.inner-hero .eyebrow { color: #584096; }
.service-detail-art { border-radius: 24px; }
.service-detail-art img { display: block; object-position: center; }
.service-detail li::before { content: '–'; color: #5b3aba; }
.service-detail :is(h2,p) { text-wrap: pretty; }
.work-grid { margin-top: clamp(40px, 7vw, 100px); }
.work-card,.work-card:first-child { display: flex; flex-direction: column; grid-column: auto; align-items: stretch; border: 1px solid #e8e2ee; border-radius: 22px; background: #faf8fd; scroll-margin-top: 108px; }
.work-card img,.work-card:first-child img { aspect-ratio: 16 / 9; height: auto; }
.work-card-copy { flex: 1; display: flex; align-items: start; flex-direction: column; padding: clamp(20px, 3vw, 42px); }
.work-card p.work-category { color: #5d4497; font-size: 14px; font-weight: 600; margin: 0 0 7px; }
.work-card-copy > .text-link { margin-top: auto; }
.editorial-faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: 36px; padding-block: clamp(54px, 8vw, 110px); }
.editorial-faq h2 { font-size: clamp(35px, 5vw, 62px); line-height: 1.08; text-wrap: balance; }
.editorial-faq details { border-top: 1px solid #e3ddec; }
.editorial-faq details:last-child { border-bottom: 1px solid #e3ddec; }
.editorial-faq summary { padding-block: 16px; font-weight: 600; cursor: pointer; }
.editorial-faq summary::marker { color: #6543c9; }
.editorial-faq details p { max-width: 60ch; color: #5c5769; padding: 0 0 20px 18px; line-height: 1.55; }
.about-layout p { text-wrap: pretty; max-width: 55ch; }
.about-process .process-grid article { background: #f8f5fc; border: 1px solid #e8e2ee; border-radius: 20px; }
.contact-path { background: #f1ebfa; }
.contact-layout aside { border-top: 1px solid #e4d9f0; padding-top: 24px; }
.booking-progress-label { font-variant-numeric: tabular-nums; }
.booking-intake { background: #fbf9fd; border-color: #e8e0f1; box-shadow: 0 12px 35px #2316410d; }
.booking-intake legend { text-wrap: balance; }
.booking-intake .choice span:hover { border-color: #a98ad8; }
.booking-intake .choice input:focus-visible + span { outline: 2px solid #6543c9; outline-offset: 2px; }
.quick-contact { bottom: max(16px, env(safe-area-inset-bottom)); }
.footer-grid a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .editorial-faq { grid-template-columns: 1fr; gap: 22px; }
  main .contact-path { margin-top: 34px; }
}
@media (prefers-reduced-motion: reduce) { body .button { transition: none; } body .button:active { scale: 1; } }

.concept-details div + div { margin-top: 11px; }
.concept-details dt { font-weight: 650; }
.concept-details dd { margin: 3px 0 0; color: #5c5367; }
#project-brief { scroll-margin-top: 110px; }
@media (max-width: 640px) {
  .booking-layout { padding-top: 98px; gap: 17px; }
  .booking-intro h1 { font-size: clamp(32px,8.6vw,45px); }
  .booking-intro .booking-kicker { margin-bottom: 6px; }
  .booking-intro>p:not(.booking-kicker) { margin-top: 9px; font-size: 15px; }
  .booking-assurance { margin-top: 9px; font-size: 13px; }
  .booking-intake { padding: 18px 15px; }
  .booking-progress { margin-bottom: 19px; }
  .choice span { min-height: 45px; }
  .booking-intake fieldset>p:not(.step-error):not(.booking-privacy):not(.booking-status) { margin: 8px 0 12px; }
}
