/* Homeowner Story Timeline — customer project page */

body.pc-homeowner-story-page {
  background:
    radial-gradient(ellipse 100% 55% at 50% -8%, rgba(37, 99, 235, 0.14), transparent 52%),
    linear-gradient(180deg, #050d18 0%, #081424 42%, #050d18 100%);
}

body.pc-homeowner-story-page .project-main {
  padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
}

.pc-homeowner-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: rgba(147, 197, 253, 0.95);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.28);
  flex-shrink: 0;
}

.pc-homeowner-header__aside {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Trust card */
.pc-homeowner-trust-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: color-mix(in srgb, #0c1c32 88%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pc-homeowner-trust-card--live {
  border-color: rgba(56, 189, 248, 0.38);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(56, 189, 248, 0.12);
}

.pc-homeowner-trust-card__pulse {
  flex: 0 0 auto;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.55);
}

.pc-homeowner-trust-card__pulse.is-live {
  background: #38bdf8;
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.55);
  animation: pc-homeowner-pulse 2s ease-in-out infinite;
}

@keyframes pc-homeowner-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(56, 189, 248, 0);
  }
}

.pc-homeowner-trust-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.pc-homeowner-trust-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #f8fafc;
}

.pc-homeowner-trust-card__sub {
  margin: 0.18rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(203, 213, 225, 0.88);
}

.pc-homeowner-trust-card__time {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(148, 163, 184, 0.95);
  padding: 0.22rem 0.45rem;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

/* Progress summary */
.pc-homeowner-progress {
  margin: 0 0 1rem;
  padding: 0.15rem 0.05rem 0.65rem;
}

.pc-homeowner-progress__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.28rem;
}

.pc-homeowner-progress__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.92);
}

.pc-homeowner-progress__pct {
  font-size: 0.88rem;
  font-weight: 800;
  color: #93c5fd;
  font-variant-numeric: tabular-nums;
}

.pc-homeowner-progress__name {
  margin: 0 0 0.55rem;
  font-size: clamp(1.15rem, 4.2vw, 1.35rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #f8fafc;
}

.pc-homeowner-progress__track {
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.16);
  overflow: hidden;
  margin-bottom: 0.55rem;
}

.pc-homeowner-progress__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
  transition: width 0.35s ease;
}

.pc-homeowner-progress__summary {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  font-style: italic;
  color: rgba(203, 213, 225, 0.88);
}

/* Story rail + timeline */
.pc-homeowner-timeline-section__head h2 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pc-homeowner-story-rail {
  position: relative;
  padding-left: 1.15rem;
}

.pc-homeowner-story-rail::before {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.65), rgba(59, 130, 246, 0.08));
  pointer-events: none;
}

.timeline--homeowner-story {
  --tl-rail-x: 0;
  padding-left: 0;
}

.pc-story-rail-item {
  position: relative;
  padding-left: 0.35rem;
  margin-bottom: 0.85rem;
}

.pc-story-rail-item__dot {
  position: absolute;
  left: -0.92rem;
  top: 1.15rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #081424;
  border: 2px solid #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  z-index: 2;
}

.pc-story-rail-item:first-child .pc-story-rail-item__dot {
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.22);
}

.timeline--homeowner-story .timeline-item--progress-card .timeline-item__body {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 28, 50, 0.72);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.timeline--homeowner-story .timeline-item--story-hero .timeline-item__columns {
  flex-direction: column;
  width: 100%;
  gap: 0;
}

.timeline--homeowner-story .timeline-item--story-hero .timeline-item__clock {
  display: none;
}

.timeline--homeowner-story .timeline-item__media-col {
  width: 100%;
  max-width: 100%;
}

.timeline--homeowner-story .timeline-item--story-hero .timeline-item__media-col {
  position: relative;
}

.timeline--homeowner-story .timeline-item__thumb-wrap {
  display: block;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
}

.timeline--homeowner-story .timeline-item--story-hero .timeline-item__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: min(52vw, 320px);
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.timeline--homeowner-story .timeline-item__thumb-wrap--before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 4 / 3;
  max-height: min(52vw, 320px);
}

.timeline--homeowner-story .timeline-item__thumb--ba {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline--homeowner-story .timeline-item__thumb-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

.timeline--homeowner-story .timeline-item__thumb-row .timeline-item__thumb {
  aspect-ratio: 1;
  max-height: none;
}

.pc-story-card__hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 2rem 0.75rem 0.65rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

.pc-story-card__hero-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  color: #f8fafc;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.pc-story-card__badges {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  right: 0.45rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  pointer-events: none;
}

.pc-story-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.95);
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pc-story-card__badge--verified {
  border-color: rgba(56, 189, 248, 0.35);
  color: #bae6fd;
}

.pc-story-card__badge--live {
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.timeline--homeowner-story .timeline-item__copy--below {
  padding: 0.75rem 0.85rem 0.85rem;
}

.timeline--homeowner-story .timeline-item__title {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}

.timeline--homeowner-story .timeline-item__note {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.92);
}

.timeline--homeowner-story .timeline-item__story-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 0.74rem;
  color: rgba(148, 163, 184, 0.95);
}

.timeline--homeowner-story .timeline-item__thumb-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(2,  6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 1rem;
  pointer-events: none;
}

.timeline--homeowner-story .asset-client-layer__actions {
  padding: 0 0.85rem 0.75rem;
  gap: 0.35rem;
}

.timeline--homeowner-story .asset-client-layer__btn {
  border-radius: 999px;
  font-size: 0.78rem;
}

.timeline-story-day {
  margin: 0.5rem 0 0.65rem -1.15rem;
  padding-left: 1.15rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.92);
}

/* FAB + ask sheet */
.pc-homeowner-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: 3.25rem;
  height: 3.25rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, #2563eb, #4f46e5);
  color: #fff;
  box-shadow:
    0 12px 32px rgba(37, 99, 235, 0.42),
    0 8px 20px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pc-homeowner-fab:active {
  transform: scale(0.94);
}

.pc-homeowner-fab__ico {
  font-size: 1.25rem;
  line-height: 1;
}

.pc-homeowner-ask-sheet-layer[hidden] {
  display: none !important;
}

.pc-homeowner-ask-sheet-layer:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pc-homeowner-ask-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
}

.pc-homeowner-ask-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  margin: 0;
  padding: 0.85rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border-radius: 18px 18px 0 0;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-bottom: 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}

.pc-homeowner-ask-sheet__handle {
  width: 2.5rem;
  height: 0.28rem;
  margin: 0 auto 0.65rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
}

.pc-homeowner-ask-sheet__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
}

.pc-homeowner-ask-sheet__sub {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.95);
}

.pc-homeowner-ask-sheet__input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.55);
  color: #f8fafc;
  padding: 0.65rem 0.75rem;
  font: inherit;
  resize: vertical;
}

.pc-homeowner-ask-sheet__actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  .pc-homeowner-trust-card__pulse.is-live,
  .timeline--homeowner-story .timeline-item--animate-in {
    animation: none !important;
  }

  .pc-homeowner-fab,
  .pc-homeowner-progress__fill {
    transition: none;
  }
}

@media (max-width: 640px) {
  .pc-homeowner-story-body,
  .pc-homeowner-timeline-section .card__body {
    padding-inline: max(0.65rem, env(safe-area-inset-left)) max(0.65rem, env(safe-area-inset-right));
  }
}
