/* Life180 Labs - Homepage sections (geometry measured from L180_HomePage Wireframe.png) */

/* ---------- Hero ---------- */
.hero { background: var(--color-canvas); padding: 62px 0 50px; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 512px) minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}
.hero h1 { margin-bottom: 25px; }
.hero__lead {
  font-size: var(--body-lg-size);
  line-height: var(--body-lg-line);
  max-width: 44ch;
  margin-bottom: 35px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__art { position: relative; min-width: 0; margin-top: -42px; margin-right: -35px; }
.hero__art svg { width: 100%; height: auto; display: block; }

/* Hero diagram: chip/node cards float gently, pulses trace the AI Layer ->
   Orchestration -> Business Systems -> Outcome path. */
.hv-drift { animation: hv-float 8s ease-in-out infinite; }
@keyframes hv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hv-pulse { opacity: 0; }
.hv-pulse--a { animation: hv-pulse-a 2.8s ease-in-out infinite; }
.hv-pulse--b { animation: hv-pulse-b 2.8s ease-in-out .9s infinite; }
@keyframes hv-pulse-a {
  0% { opacity: 0; transform: translateY(0); }
  18% { opacity: 1; }
  70% { opacity: 1; transform: translateY(140px); }
  100% { opacity: 0; transform: translateY(150px); }
}
@keyframes hv-pulse-b {
  0% { opacity: 0; transform: translateY(0); }
  20% { opacity: 1; }
  75% { opacity: 1; transform: translateY(112px); }
  100% { opacity: 0; transform: translateY(122px); }
}
@media (prefers-reduced-motion: reduce) {
  .hv-drift, .hv-pulse--a, .hv-pulse--b { animation: none; }
}

/* ---------- Differentiators ---------- */
.differentiators { background: var(--color-soft-section); padding: 38px 0 42px; }
.differentiators__head { margin-bottom: 40px; }
.differentiators__head h2 { font-size: var(--h2-sec-size); line-height: var(--h2-sec-line); margin-top: 14px; }
.differentiators__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.differentiator {
  display: flex;
  gap: 23px;
  padding: 0 39px;
  min-width: 0;
}
.differentiator:first-child { padding-left: 0; }
.differentiator:last-child { padding-right: 0; }
.differentiator + .differentiator { border-left: 1px solid var(--color-border-soft); }

.differentiator__icon {
  width: 53px; height: 53px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid #F6E4C4;
  background: #FEFAF3;
}
.differentiator h3 {
  font-size: var(--h4-size);
  line-height: var(--h4-line);
  font-weight: 600;
  margin-bottom: 16px;
}
.differentiator p { font-size: 16px; line-height: 1.85; }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: #FAF9F6;
  border-radius: var(--radius-xl);
  padding: 35px 0;
}
.trust-bar__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item {
  display: flex;
  align-items: center;
  gap: 21px;
  padding: 5px 30px;
  min-width: 0;
}
.trust-item + .trust-item { border-left: 1px solid #E7E5E0; }
.trust-item svg { width: 44px; height: 44px; flex-shrink: 0; }
.trust-item p {
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--color-heading);
}
.trust-item p span { font-weight: 500; }

/* ---------- Value quote ---------- */
.value-quote { background: var(--color-canvas); padding: 56px 0 112px; text-align: center; }
.value-quote h2 { max-width: 27ch; margin: 0 auto 36px; }
.value-quote__actions { display: flex; gap: 21px; justify-content: center; flex-wrap: wrap; }
.value-quote__action { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.value-quote__action small { color: var(--color-muted); font-size: 15px; }

/* ---------- Featured work ---------- */
/* .featured-work is a nested div (section > .container > .featured-work),
   not the section itself - background goes on the actual full-bleed
   section via its aria-labelledby so the band spans edge-to-edge. */
section[aria-labelledby="work-heading"] { background: var(--color-soft-section); padding: 48px 0; }
.featured-work {
  padding: 0;
}
.featured-work__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: 46px;
  flex-wrap: wrap;
}
.featured-work__head h2 {
  font-size: var(--h2-sec-size);
  line-height: var(--h2-sec-line);
  margin-top: 14px;
}
.featured-work__viewall {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-heading);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.featured-work__viewall:hover { color: var(--color-amber); }
.featured-work__viewall svg { transition: transform .2s ease; }
.featured-work__viewall:hover svg { transform: translateX(3px); }
.featured-work__controls { display: flex; align-items: center; gap: 14px; }

.work-carousel__nav {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-heading);
  flex-shrink: 0;
}
.work-carousel__nav:hover:not(:disabled) { background: var(--color-soft-section); }
.work-carousel__nav:disabled { opacity: 0.35; cursor: default; }

.work-carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.work-carousel__viewport::-webkit-scrollbar { display: none; }
.work-carousel__track { display: flex; gap: 20px; }

.work-card {
  scroll-snap-align: start;
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
  background: #0F1E30;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-width: 0;
  transition: transform .25s ease, box-shadow .25s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: reduce) { .work-card { transition: none; } .work-card:hover { transform: none; } }
.work-card__art {
  position: relative;
  height: 208px;
  background: radial-gradient(120% 120% at 30% 15%, #182C44 0%, #0B1522 72%);
}
.work-card__art svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--color-ai-accent); }
.work-card__body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.work-card__body h3 { color: #fff; font-size: 19px; line-height: 1.3; margin-bottom: 10px; }
.work-card__body p { color: #A9B4C7; font-size: 14.5px; line-height: 1.55; margin-bottom: 20px; }
.work-card__arrow {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-amber);
  color: var(--color-heading);
  display: flex; align-items: center; justify-content: center;
  margin-top: auto;
  margin-left: auto;
  transition: background-color .15s ease, color .15s ease;
}
.work-card__arrow:hover { background: var(--color-amber-hover); color: #fff; }

.work-carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.work-carousel__dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  padding: 0;
}
.work-carousel__dots button[aria-current="true"] {
  background: var(--color-amber);
  width: 22px;
  border-radius: 5px;
  transition: width .2s ease;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-xl); }
  .hero__art { order: -1; max-width: 520px; margin: 0 auto; }
  .hero__lead { max-width: none; }

  .differentiators__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .differentiator { padding: 0; }
  .differentiator + .differentiator {
    border-left: none;
    border-top: 1px solid var(--color-border-soft);
    padding-top: var(--space-xl);
  }

  .trust-bar__grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: none; }
  .trust-item:nth-child(n+3) { margin-top: var(--space-lg); }

  .work-card { flex-basis: 320px; }
}

@media (max-width: 767px) {
  .hero { padding: var(--space-lg) 0 var(--space-2xl); }
  .hero h1 { margin-bottom: 18px; }
  .hero__actions .btn { flex: 1; }

  .trust-bar__grid { grid-template-columns: 1fr; }
  .trust-item { border-left: none !important; margin-top: 0 !important; padding: 14px 22px; }
  .trust-item + .trust-item { border-top: 1px solid #E7E5E0; }

  .value-quote { padding: var(--space-2xl) 0; }
  .value-quote__actions { flex-direction: column; align-items: stretch; }

  .work-card { flex-basis: 78vw; }
  .work-carousel__nav { display: none; }
}

/* Wireframe-exact line breaks (suppressed on narrow viewports) */
@media (max-width: 1100px) {
  br.wf { display: none; }
}
