/** VarleyLabs homepage layout, showcase components and homepage-only animation styles. */
.hero {
  min-height: 92vh;
  display: grid;
  place-items: center;
  padding: 158px 0 120px;
  overflow: hidden;
  isolation: isolate;
  color: white;
  background:
    radial-gradient(circle at 8% 28%, rgba(118, 80, 232, 0.20), transparent 30rem),
    radial-gradient(circle at 92% 30%, rgba(31, 100, 249, 0.20), transparent 34rem),
    linear-gradient(180deg, #0D1020 0%, #171827 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 56vw;
  height: 46vw;
  background: radial-gradient(circle, rgba(118, 80, 232, 0.62), rgba(31, 100, 249, 0.18) 42%, transparent 70%);
  filter: blur(58px);
  opacity: 0.55;
  transform: translate(-28%, 28%);
  z-index: -3;
  animation: glowDrift 11s ease-in-out infinite alternate;
}

.hero::after {
  left: auto;
  right: 0;
  background: radial-gradient(circle, rgba(235, 71, 133, 0.52), rgba(118, 80, 232, 0.16) 42%, transparent 70%);
  transform: translate(30%, 24%);
  animation-delay: -5s;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -4;
  opacity: 0.46;
  filter: saturate(0.38) brightness(0.92);
  mix-blend-mode: luminosity;
}

.grid-floor {
  position: absolute;
  left: 50%;
  bottom: -70px;
  width: min(1040px, 92vw);
  height: 340px;
  transform: translateX(-50%) perspective(900px) rotateX(62deg);
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 20%, rgba(118, 80, 232, 0.38), transparent 54%);
  background-size: 54px 54px, 54px 54px, 100% 100%;
  -webkit-mask-image: linear-gradient(to top, black, transparent 92%);
  mask-image: linear-gradient(to top, black, transparent 92%);
  opacity: .56;
  z-index: -2;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
  transform: translateY(var(--hero-shift, 0px));
  opacity: var(--hero-opacity, 1);
  transition: opacity 80ms linear;
}

.hero-copy {
  color: rgba(var(--on-dark), .74);
  font-size: var(--text-lg);
  line-height: 1.66;
  max-width: 980px;
  margin: 0 auto 36px;
}

.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.services {
  color: white;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 0%, rgba(118, 80, 232, 0.20), transparent 34rem),
    linear-gradient(180deg, #0D1020 0%, #171827 100%);
}

.services .section-head p { color: rgba(var(--on-dark), .72); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(21, 24, 45, .97), rgba(13, 16, 32, .98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-card);
  min-height: 410px;
  padding: 34px;
  isolation: isolate;
}

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.14), transparent 34%),
              linear-gradient(120deg, transparent 0%, rgba(118,80,232,.16), rgba(31,100,249,.10), transparent 72%);
  z-index: -1;
  opacity: .9;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  border-radius: 999px;
  padding: 9px 15px;
  color: white;
  background: rgba(255,255,255,.09);
  font-weight: 800;
  font-size: var(--text-xs);
}

.service-card h3 {
  font-size: var(--h3);
  line-height: 1.14;
  letter-spacing: var(--tight);
  margin: 0 0 20px;
}

.check-list {
  display: grid;
  gap: 13px;
  color: rgba(var(--on-dark), .78);
  font-size: var(--text-sm);
  line-height: 1.55;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}

.check-list li::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-top: 1px;
  background: linear-gradient(135deg, #1F64F9, #7650E8);
  box-shadow: 0 0 22px rgba(118, 80, 232, .38);
}

.portfolio {
  background:
    radial-gradient(circle at 50% 0%, rgba(118, 80, 232, .10), transparent 34rem),
    #FFFFFF;
  overflow: hidden;
}

.portfolio-eyebrow {
  color: var(--ink);
  background: rgba(241, 243, 250, .92);
  border-color: rgba(23, 24, 39, .08);
  box-shadow: none;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #FFFFFF;
  border: 1px solid rgba(23, 24, 39, .09);
  box-shadow: 0 18px 48px rgba(23, 24, 39, .10);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 58px rgba(23, 24, 39, .14);
}

.project-preview {
  position: relative;
  display: block;
  aspect-ratio: 1.54 / 1;
  overflow: hidden;
  background: #E9ECF5;
  border-bottom: 1px solid rgba(23, 24, 39, .08);
}

.project-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 -34px 52px -48px rgba(23, 24, 39, .46);
}

.project-preview img,
.project-preview > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.project-card:hover .project-preview img,
.project-card:hover .project-preview > svg { transform: scale(1.018); }

.project-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 28px 30px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  width: 100%;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 800;
}

.project-type { color: var(--blue); }

.project-label {
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  white-space: nowrap;
}

.project-copy h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: var(--h3);
  line-height: 1.12;
}

.project-copy p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.68;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 800;
}

.project-link span {
  color: var(--violet);
  transition: transform 180ms ease;
}

.project-link:hover span { transform: translate(2px, -2px); }

.portfolio-foot {
  max-width: 660px;
  margin: 34px auto 0;
  text-align: center;
}

.portfolio-foot p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

.insight {
  background: var(--paper);
  overflow: hidden;
}

/* Eyebrow variant for placement on a light/paper background. */
.eyebrow-on-light { color: var(--ink); background: #fff; }

.insight-stage {
  position: relative;
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 380px) minmax(240px, 1fr);
  gap: 38px;
  align-items: center;
  margin-top: 12px;
}

.floating-list {
  display: grid;
  gap: 16px;
  align-content: center;
}

.mini-card {
  min-height: 104px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(23,24,39,.08);
  box-shadow: 0 16px 38px rgba(23,24,39,.08);
  border-radius: 18px;
  padding: 18px 20px;
  color: #676B7C;
  font-size: var(--text-sm);
  line-height: 1.52;
  font-weight: 600;
  opacity: 0;
  transform: translateY(16px);
}

.mini-card.is-visible,
.about-panel.is-visible,
.contact-panel.is-visible,
.card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms ease, transform 600ms ease;
}

.mini-card .x,
.mini-card .tick {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-bottom: 9px;
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.mini-card .x { background: #9297A8; }

.mini-card .tick { background: linear-gradient(135deg, var(--blue), var(--violet)); }

.audit-scan {
  width: min(330px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.as-score { text-align: center; }

.as-ringwrap {
  position: relative;
  width: 128px;
  height: 128px;
  margin-inline: auto;
}

.as-ringwrap svg { display: block; }

.as-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.as-lab {
  margin-top: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.as-window {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(23, 24, 39, .10);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(23, 24, 39, .12);
}

.as-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  background: #EEF0F7;
  border-bottom: 1px solid rgba(23, 24, 39, .07);
}

.as-bar b { width: 8px; height: 8px; border-radius: 50%; background: #C5C9D6; }

.as-url {
  margin-left: 6px;
  font-size: 11px;
  color: var(--muted);
  background: #fff;
  border-radius: 20px;
  padding: 4px 12px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.as-page {
  position: relative;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow: hidden;
}

.as-hero {
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(31, 100, 249, .20), rgba(118, 80, 232, .20), rgba(235, 71, 133, .18));
}

.as-row { display: flex; gap: 10px; align-items: center; }

.as-th { width: 42px; height: 34px; border-radius: 7px; background: #E1E5EF; flex: none; }

.as-ll { display: flex; flex-direction: column; gap: 6px; flex: 1; }

.as-ll i { height: 7px; border-radius: 4px; background: #E1E5EF; display: block; }

.as-ll i:nth-child(2) { width: 62%; }

.as-chip {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  color: #1858E8;
  background: #EEF3FF;
  border: 1px solid #C9D8FF;
  border-radius: 20px;
  padding: 3px 9px;
  white-space: nowrap;
  opacity: 0;
  transform: scale(.7);
}

.as-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 18px;
  background: linear-gradient(180deg, rgba(118, 80, 232, 0), rgba(118, 80, 232, .34) 60%, rgba(118, 80, 232, 0));
  border-top: 2px solid var(--violet);
  box-shadow: 0 0 18px rgba(118, 80, 232, .58);
  animation: asScan 3.6s ease-in-out infinite;
}

.r1 .as-chip { animation: asChip 3.6s ease-in-out infinite; animation-delay: .85s; }

.r2 .as-chip { animation: asChip 3.6s ease-in-out infinite; animation-delay: 1.5s; }

.r3 .as-chip { animation: asChip 3.6s ease-in-out infinite; animation-delay: 2.15s; }

.about {
  background: var(--paper);
}

.about-panel {
  opacity: 0;
  transform: translateY(20px);
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 0;
  overflow: hidden;
  border-radius: 44px;
  background: #171827;
  color: white;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,.18);
}

.about-copy {
  padding: clamp(34px, 5vw, 70px);
  background: linear-gradient(180deg, rgba(23,26,47,.97), rgba(13,16,32,.99));
}

.about-copy h2 {
  font-size: var(--h2);
  line-height: 1.04;
  margin-bottom: 22px;
}

.about-copy p { color: rgba(var(--on-dark), .72); line-height: 1.72; font-size: var(--text-base); }

.about-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  color: #AFC5FF;
  font-size: var(--text-sm);
  font-weight: 800;
}

.about-more span { transition: transform 180ms ease; }

.about-more:hover span { transform: translateX(4px); }

.about-visual {
  position: relative;
  min-height: 360px;
  background: #0D1020;
  overflow: hidden;
}

.about-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cn-net { animation: cnFloat 12s ease-in-out infinite; }

.cn-nd { animation: cnTw 3s ease-in-out infinite; }

.cn-star { animation: cnTw 4.5s ease-in-out infinite; }

.contact {
  background:
    radial-gradient(circle at 30% 0%, rgba(118,80,232,.11), transparent 34rem),
    linear-gradient(180deg, var(--paper), #FFFFFF);
}

.contact-panel {
  opacity: 0;
  transform: translateY(20px);
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 20px;
  padding: 18px;
  border-radius: 42px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(23,24,39,.08);
}

.contact-intro {
  padding: clamp(30px, 4vw, 54px);
  border-radius: 30px;
  color: white;
  background:
    radial-gradient(circle at 10% 10%, rgba(118,80,232,.30), transparent 18rem),
    radial-gradient(circle at 90% 0%, rgba(31,100,249,.22), transparent 18rem),
    linear-gradient(180deg, #171A2F, #0F1224);
}

.contact-intro h2 {
  font-size: var(--h2);
  line-height: 1.04;
  margin-bottom: 22px;
}

.contact-intro p { color: rgba(var(--on-dark), .72); line-height: 1.7; font-size: var(--text-base); }

@keyframes glowDrift {
  from { opacity: .42; filter: blur(70px); }
  to { opacity: .78; filter: blur(46px); }
}

@keyframes asScan {
  0% { transform: translateY(-14px); opacity: 0; }
  8% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(190px); opacity: 0; }
}

@keyframes asChip {
  0%, 10% { opacity: 0; transform: scale(.7); }
  17% { opacity: 1; transform: scale(1.1); }
  26% { transform: scale(1); }
  88% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.7); }
}

@keyframes cnFloat {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(8px, -6px); }
  50% { transform: translate(-6px, 7px); }
  75% { transform: translate(6px, 4px); }
}

@keyframes cnTw {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}

@media (max-width: 920px) {
.hero { min-height: auto; padding: 138px 0 96px; }
.service-grid,
.project-grid,
.insight-stage,
.about-panel,
.contact-panel { grid-template-columns: 1fr; }
.card { min-height: 320px; }
.insight-stage { min-height: auto; gap: 28px; }
.about-visual { min-height: 300px; }
}

@media (max-width: 640px) {
.hero-copy { font-size: 0.98rem; }
.about-copy h2,
.contact-intro h2 { letter-spacing: -0.06em; }
.service-card { gap: 36px; }
.project-copy { padding: 24px 22px 26px; }
.project-label { margin-left: 0; }
.contact-panel { padding: 10px; border-radius: 30px; }
.contact-intro { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
.as-chip { opacity: 1 !important; transform: none !important; }
.as-scanline { display: none !important; }
.cn-nd,
.cn-star { opacity: 1 !important; }
}

.tool-strip-inner {
  border-color: rgba(23, 24, 39, .08) !important;
  box-shadow: 0 18px 44px -30px rgba(23, 24, 39, .42) !important;
}

.tool-strip-label { color: rgba(23, 24, 39, .58) !important; }

#as-grad stop:nth-child(1) { stop-color: #1F64F9; }

#as-grad stop:nth-child(2) { stop-color: #7650E8; }

#as-grad stop:nth-child(3) { stop-color: #EA4F8B; }

.about-visual .cn-net > .cn-nd circle:first-child {
  fill: #7650E8 !important;
  opacity: .13 !important;
}

.about-visual .cn-net > .cn-nd circle:last-child { fill: #7650E8 !important; }

.about-visual .cn-net > .cn-nd:nth-of-type(3n/**/+1) circle:first-child { fill: #1F64F9 !important; }

.about-visual .cn-net > .cn-nd:nth-of-type(3n/**/+1) circle:last-child { fill: #1F64F9 !important; }

.about-visual .cn-net > .cn-nd:nth-of-type(3n/**/+2) circle:first-child { fill: #EA4F8B !important; }

.about-visual .cn-net > .cn-nd:nth-of-type(3n/**/+2) circle:last-child { fill: #EA4F8B !important; }

.project-card {
  position: relative;
  isolation: isolate;
  transition:
    transform 420ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 420ms ease,
    border-color 420ms ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(118, 80, 232, .24);
  box-shadow: 0 32px 72px rgba(23, 24, 39, .16), 0 14px 34px rgba(118, 80, 232, .10);
}

.project-preview { isolation: isolate; }

.project-preview::before {
  content: "Concept preview";
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  color: #fff;
  background: rgba(13, 16, 32, .72);
  backdrop-filter: blur(12px);
  font-size: .72rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease, transform 300ms cubic-bezier(.22, 1, .36, 1);
}

.project-preview img,
.project-preview > svg {
  transform: scale(1.035) translateY(0);
  transition: transform 950ms cubic-bezier(.16, 1, .3, 1), filter 420ms ease;
  will-change: transform;
}

.project-card:hover .project-preview img,
.project-card:hover .project-preview > svg {
  transform: scale(1.095) translateY(-3.2%);
  filter: saturate(1.04) contrast(1.02);
}

.project-card:hover .project-preview::before { opacity: 1; transform: translateY(0); }

.project-card:hover .project-link span { transform: translate(4px, -4px); }

.project-card.pointer-glow::after {
  background: radial-gradient(380px circle at var(--spot-x) var(--spot-y), rgba(77, 163, 255, .13), rgba(118, 80, 232, .055) 36%, transparent 70%);
}

.contact-intro.pointer-glow::after,
.about-panel.pointer-glow::after {
  background: radial-gradient(520px circle at var(--spot-x) var(--spot-y), rgba(77, 163, 255, .16), rgba(118, 80, 232, .07) 34%, transparent 70%);
}

@media (max-width: 920px) {
.project-preview::before { display: none; }
.project-card:hover { transform: none; }
.project-card:hover .project-preview img,
.project-card:hover .project-preview > svg { transform: scale(1.035); filter: none; }
}

@media (prefers-reduced-motion: reduce) {
.project-preview img,
.project-preview > svg,
.project-card:hover .project-preview img,
.project-card:hover .project-preview > svg { transform: none !important; }
}

.tool-strip { margin-top: 44px; animation: toolfade .7s ease both; }

.tool-strip-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 30px;
  border: 1px solid rgba(23,24,39,.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px -30px rgba(23,24,39,.42);
}

.tool-strip-label {
  margin: 0 0 20px;
  text-align: center;
  color: rgba(23,24,39,.58);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tool-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 26px 46px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-logos li { display: flex; align-items: center; }

.tool-logos img {
  width: auto;
  height: 30px;
  max-width: 158px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .6;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}

.tool-logos img:hover { filter: none; opacity: 1; transform: translateY(-2px); }

.project-preview { cursor: default; }

.project-preview::before { pointer-events: none; }

.contact-email { margin-top: 26px; }

.contact-email a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.35);
  text-underline-offset: 4px;
}

.contact-email a:hover { text-decoration-color: #fff; }

@keyframes toolfade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
.tool-strip-inner { padding: 22px 18px; }
.tool-logos { gap: 20px 30px; }
.tool-logos img { height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
.tool-strip { animation: none; }
.tool-logos img { transition: none; }
}

.demo-preview {
  cursor: pointer;
  background: #0D1020;
}

.demo-preview::after {
  z-index: 1;
  background: linear-gradient(180deg, rgba(13,16,32,.08) 12%, rgba(13,16,32,.12) 42%, rgba(13,16,32,.88) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.demo-preview::before {
  content: "Open live demo ↗";
  z-index: 4;
  cursor: pointer;
}

.demo-preview img {
  filter: saturate(.9) contrast(1.02) brightness(.86);
}

.project-card:hover .demo-preview img {
  filter: saturate(1.03) contrast(1.03) brightness(.94);
}

.demo-browser-bar {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
  right: 14px;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 11px;
  color: rgba(255,255,255,.84);
  background: rgba(13,16,32,.58);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(13,16,32,.18);
}

.demo-browser-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.54);
}

.demo-browser-bar b {
  margin-left: auto;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.demo-preview-caption {
  position: absolute;
  z-index: 3;
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: grid;
  gap: 4px;
  color: #fff;
  text-shadow: 0 3px 18px rgba(13,16,32,.42);
}

.demo-preview-caption small {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

.demo-preview-caption strong {
  max-width: 72%;
  font-size: clamp(1.15rem, 1.7vw, 1.48rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

@media (min-width: 641px) and (max-width: 920px) {
.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
.demo-browser-bar {
    top: 10px;
    left: 10px;
    right: 10px;
    min-height: 30px;
  }
.demo-preview-caption {
    left: 18px;
    right: 18px;
    bottom: 16px;
  }
.demo-preview-caption strong { max-width: 100%; }
}


/* ===== V2 hero: 50/50 split + pills (added 2026-07) ===== */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
  max-width: var(--container-max, 1180px);
}
.hero-split .hero-copy { margin-inline: 0; max-width: 560px; }
.hero-split .hero-cta { justify-content: flex-start; }
.hero-split .cube-stage { margin-inline: auto; }

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}
.hero-pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(var(--on-dark), .85);
  font-size: var(--text-xs);
  font-weight: 700;
}
.hero-pills li::before {
  content: "✓";
  color: #8b7bf5;
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .hero-split .hero-copy { margin-inline: auto; }
  .hero-split .hero-cta, .hero-pills { justify-content: center; }
}

@media (max-width: 640px) {
  .hero-split .hero-cta {
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .hero-split .hero-cta .btn { width: 100%; }
}

/* ===== V2 service cards: big price, no dead middle ===== */
.service-card { justify-content: flex-start; gap: 18px; }
.price-line {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: var(--tight);
  line-height: 1;
  margin: 0;
  background: linear-gradient(120deg, #fff, #b6a8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* Pass 2 — proof-first homepage */
.services-more { display:flex; justify-content:center; margin-top:30px; }
.services-more a { display:inline-flex; align-items:center; gap:9px; padding:12px 17px; border-radius:999px; border:1px solid rgba(255,255,255,.12); color:rgba(255,255,255,.78); background:rgba(255,255,255,.045); font-size:var(--text-sm); font-weight:800; }
.services-more a span { color:#AFC5FF; transition:transform 180ms ease; }
.services-more a:hover span { transform:translateX(4px); }

.recent-work { color:#fff; background:radial-gradient(circle at 50% 0,rgba(118,80,232,.16),transparent 34rem),linear-gradient(180deg,#0D1020,#15172C); }
.recent-work-head { max-width:840px; }
.recent-work-head > p { color:rgba(var(--on-dark),.69); }
.recent-work-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.recent-work-card { overflow:hidden; border:1px solid rgba(255,255,255,.11); border-radius:32px; background:rgba(255,255,255,.055); box-shadow:0 30px 76px rgba(0,0,0,.22); }
.recent-work-card-dark { background:linear-gradient(150deg,rgba(31,100,249,.08),rgba(255,255,255,.035)); }
.recent-work-visual { position:relative; display:block; overflow:hidden; aspect-ratio:1.42/1; background:#F3F4F8; border-bottom:1px solid rgba(255,255,255,.09); }
.recent-work-visual img { width:100%; height:100%; object-fit:cover; object-position:top center; transition:transform 600ms cubic-bezier(.16,1,.3,1); }
.recent-work-card:hover .recent-work-visual img { transform:scale(1.018); }
.recent-browser-bar { position:absolute; z-index:5; top:0; left:0; right:0; min-height:43px; display:flex; align-items:center; gap:6px; padding:0 14px; background:rgba(245,246,249,.94); border-bottom:1px solid rgba(23,24,39,.08); }
.recent-browser-bar i { width:7px; height:7px; border-radius:50%; background:#B8BECC; }
.recent-browser-bar b { margin-left:auto; margin-right:auto; color:#697083; font-size:.62rem; letter-spacing:.04em; font-weight:800; }
.recent-work-live { position:absolute; z-index:7; right:16px; bottom:16px; padding:8px 11px; border-radius:999px; color:#fff; background:rgba(13,16,32,.78); backdrop-filter:blur(12px); font-size:.63rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.recent-work-iframe-wrap { position:absolute; inset:43px 0 0; overflow:hidden; background:#2E382E; }
.recent-work-iframe-wrap iframe { width:100%; height:100%; border:0; pointer-events:none; }
.recent-work-copy { padding:28px 28px 30px; }
.recent-work-copy .project-meta { color:rgba(255,255,255,.58); }
.recent-work-copy .project-type { color:#AFC5FF; }
.recent-work-copy .project-label { color:rgba(255,255,255,.64); background:rgba(255,255,255,.07); }
.recent-work-copy h3 { margin:13px 0 12px; color:#fff; font-size:clamp(1.65rem,2.6vw,2.55rem); line-height:1; }
.recent-work-copy p { margin:0; color:rgba(var(--on-dark),.68); line-height:1.7; }
.recent-work-actions { display:flex; flex-wrap:wrap; gap:18px; margin-top:22px; }
.recent-work-actions .project-link { color:#fff; }
.recent-work-actions .project-link-muted { color:rgba(255,255,255,.58); }
.design-directions { margin-top:46px; padding-top:34px; border-top:1px solid rgba(255,255,255,.10); }
.design-directions-head { display:flex; align-items:end; justify-content:space-between; gap:28px; margin-bottom:20px; }
.design-directions-head > div { display:grid; gap:5px; }
.design-directions-head span { color:#AFC5FF; font-size:.68rem; font-weight:800; text-transform:uppercase; letter-spacing:.12em; }
.design-directions-head strong { color:#fff; font-size:1.05rem; }
.design-directions-head > a { flex:none; color:rgba(255,255,255,.72); font-size:var(--text-sm); font-weight:800; }
.design-direction-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.design-direction-card { position:relative; min-height:210px; overflow:hidden; border:1px solid rgba(255,255,255,.10); border-radius:22px; background:#171A31; }
.design-direction-card::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 20%,rgba(9,11,24,.92) 100%); }
.design-direction-card img { width:100%; height:100%; object-fit:cover; filter:saturate(.76) brightness(.73); transition:transform 600ms cubic-bezier(.16,1,.3,1),filter 250ms ease; }
.design-direction-card:hover img { transform:scale(1.035); filter:saturate(.9) brightness(.82); }
.design-direction-card span,.design-direction-card strong { position:absolute; z-index:2; left:20px; right:20px; }
.design-direction-card span { bottom:52px; color:rgba(255,255,255,.58); font-size:.61rem; font-weight:800; text-transform:uppercase; letter-spacing:.10em; }
.design-direction-card strong { bottom:20px; color:#fff; font-size:1.2rem; }
.concept-note { margin:16px 0 0; color:rgba(255,255,255,.47); font-size:.76rem; }

@media (max-width: 900px) {
  .recent-work-grid { grid-template-columns:1fr; }
  .design-direction-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .design-direction-card:last-child { grid-column:1/-1; }
}
@media (max-width: 620px) {
  .recent-work-card { border-radius:25px; }
  .recent-work-copy { padding:23px 20px 25px; }
  .recent-work-visual { aspect-ratio:1.18/1; }
  .design-directions-head { align-items:start; flex-direction:column; }
  .design-direction-grid { grid-template-columns:1fr; }
  .design-direction-card:last-child { grid-column:auto; }
  .design-direction-card { min-height:190px; }
}


/* ===== Pass 3: compact ecommerce proof ===== */
.ecommerce-feature {
  display:grid;
  grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);
  gap:42px;
  align-items:center;
  margin-top:48px;
  padding:34px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:30px;
  background:linear-gradient(135deg,rgba(31,100,249,.08),rgba(118,80,232,.08) 48%,rgba(255,255,255,.035));
  box-shadow:0 26px 72px rgba(0,0,0,.18);
}
.ecommerce-feature-copy .eyebrow { margin-bottom:14px; }
.ecommerce-feature-copy h3 { margin:0; max-width:610px; color:#fff; font-size:clamp(2rem,4vw,3.7rem); line-height:.98; letter-spacing:-.055em; }
.ecommerce-feature-copy > p { margin:18px 0 0; max-width:620px; color:rgba(var(--on-dark),.68); line-height:1.72; }
.ecommerce-feature-copy > p strong { color:#fff; }
.ecommerce-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.ecommerce-tags span { padding:8px 11px; border:1px solid rgba(255,255,255,.10); border-radius:999px; color:rgba(255,255,255,.74); background:rgba(255,255,255,.05); font-size:.68rem; font-weight:800; letter-spacing:.02em; }
.ecommerce-feature-link { display:inline-flex; margin-top:22px; color:#fff; }
.ecommerce-feature-visual { overflow:hidden; border:1px solid rgba(255,255,255,.12); border-radius:24px; background:#F7F8FC; color:#111426; box-shadow:0 22px 54px rgba(0,0,0,.20); }
.ecom-visual-top { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px 22px; border-bottom:1px solid #E6E8F0; background:#fff; }
.ecom-visual-top > div { display:grid; gap:3px; }
.ecom-visual-top span { color:#74798A; font-size:.62rem; font-weight:800; text-transform:uppercase; letter-spacing:.11em; }
.ecom-visual-top strong { color:#111426; font-size:1rem; }
.ecom-visual-top a { flex:none; color:#3F51C7; font-size:.72rem; font-weight:800; }
.ecom-work-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; background:#E3E6EF; }
.ecom-work-item { min-height:122px; padding:22px; background:#F8F9FC; }
.ecom-work-item span { display:block; margin-bottom:9px; color:#6670DE; font-size:.61rem; font-weight:800; text-transform:uppercase; letter-spacing:.11em; }
.ecom-work-item strong { display:block; max-width:230px; color:#171A2C; font-size:.96rem; line-height:1.35; }
.ecom-tool-row { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; border-top:1px solid #E3E6EF; background:#E3E6EF; }
.ecom-tool-row > div { display:flex; align-items:center; gap:8px; min-width:0; padding:13px 14px; background:#fff; }
.ecom-tool-row img { width:21px; height:21px; object-fit:contain; }
.ecom-tool-row span { overflow:hidden; color:#6F7486; font-size:.60rem; font-weight:700; white-space:nowrap; text-overflow:ellipsis; }

@media (max-width: 900px) {
  .ecommerce-feature { grid-template-columns:1fr; gap:26px; padding:27px; }
}
@media (max-width: 640px) {
  .ecommerce-feature { margin-top:34px; padding:22px 18px; border-radius:24px; }
  .ecommerce-feature-copy h3 { font-size:clamp(2rem,11vw,3rem); }
  .ecom-visual-top { align-items:flex-start; flex-direction:column; gap:9px; padding:17px; }
  .ecom-work-grid { grid-template-columns:1fr; }
  .ecom-work-item { min-height:0; padding:18px; }
  .ecom-tool-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
