/* ============================================================
   Quati — Hero: Playful + Personal (two-dev polaroid)
   ============================================================ */

.hero-pf {
  position: relative;
  padding: 88px 32px 96px;
  overflow: visible;
}

/* ---- Floating background marks ---- */
.hero-pf .floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-pf .floater {
  position: absolute;
  color: var(--clay);
  opacity: 0.18;
}
.hero-pf .floater.f3 { top: 60px; right: 32%; width: 22px; opacity: 0.32; animation: spin 18s linear infinite; }
.hero-pf .floater.f5 { top: 220px; left: -10px; width: 26px; opacity: 0.28; animation: bob 8s ease-in-out infinite 0.3s; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(6deg); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- Content stacks above floaters ---- */
.hero-pf > *:not(.floaters) { position: relative; z-index: 1; }

/* ---- Eyebrow chip row ---- */
.hero-pf .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.hero-pf .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bone-2);
  border: 1px solid var(--stone-light);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.hero-pf .chip .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--positive);
  position: relative;
}
.hero-pf .chip .pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--positive);
  opacity: 0.3;
  animation: pulse 2s infinite;
}

/* ---- Headline ---- */
.hero-pf .display {
  font-size: clamp(3.25rem, 8vw, 6rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
}

/* Hand-drawn squiggle */
.hero-pf .display .underline-wrap {
  display: inline-block;
  position: relative;
  color: var(--clay);
  font-style: italic;
}
.hero-pf .display .underline-wrap .squiggle {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -10px;
  width: 104%;
  height: 14px;
  pointer-events: none;
}

/* ---- Lead ---- */
.hero-pf .lead-pf {
  margin-top: 28px;
  max-width: 52ch;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.hero-pf .lead-pf .hl {
  background: linear-gradient(transparent 62%, var(--clay-tint) 62%);
  padding: 0 3px;
}

/* ---- Actions ---- */
.hero-pf .actions-pf {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
  position: relative;
}
.hero-pf .actions-pf .btn-primary:hover {
  transform: translateY(-2px) rotate(-1deg);
}

/* ---- Trust ribbon ---- */
.hero-pf .ribbon {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px dashed var(--stone);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.hero-pf .ribbon span { display: inline-flex; align-items: center; gap: 6px; }
.hero-pf .ribbon .em {
  color: var(--clay);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
}

/* ---- Wave divider ---- */
.hero-pf .wave-divider {
  margin-top: 64px;
  width: 100%;
  height: 22px;
  color: var(--clay);
  opacity: 0.55;
}

/* ============================================================
   PERSONAL HERO — two-column with dev portraits
   ============================================================ */
.hero-personal .hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-personal .display {
  font-size: clamp(2.75rem, 5.6vw, 4.6rem);
  letter-spacing: -0.025em;
  line-height: 1.04;
}
.hero-personal .display em {
  font-style: italic;
  color: var(--ink);
}

.hero-personal .ribbon {
  margin-top: 36px;
  padding-top: 20px;
}

/* ---- Devs column ---- */
.hero-personal .devs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 32px;
  padding-right: 8px;
}

.hero-personal .dev {
  position: relative;
  background: var(--bone);
  border: 1px solid var(--stone-light);
  border-radius: 18px;
  padding: 14px 14px 16px;
  box-shadow: 0 18px 40px rgba(26, 20, 16, 0.10), 0 2px 6px rgba(26, 20, 16, 0.06);
  transition: transform 300ms var(--ease-spring), box-shadow 300ms;
}
.hero-personal .dev:hover {
  transform: translateY(-6px) !important;
  z-index: 5;
  box-shadow: 0 28px 60px rgba(26, 20, 16, 0.16);
}

.hero-personal .dev-1 {
  transform: rotate(-2.5deg);
  background: var(--clay-tint);
  margin-top: 12px;
}
.hero-personal .dev-2 {
  transform: rotate(2.5deg);
  background: var(--bone-2);
  margin-top: 36px;
}

.hero-personal .dev .photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bone-2), var(--sand));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}
.hero-personal .dev-1 .photo { background: linear-gradient(160deg, #F5D7C2, #EBB492); }
.hero-personal .dev-2 .photo { background: linear-gradient(160deg, #D9D6CB, #B9B4A4); }

.hero-personal .dev .photo img {
  width: 92%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 6px 8px rgba(26, 20, 16, 0.12));
  transition: transform 300ms var(--ease-spring);
}
.hero-personal .dev:hover .photo img {
  transform: translateY(-4px) scale(1.03);
}

.hero-personal .dev .name-tag {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.hero-personal .dev .name-tag .name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hero-personal .dev .name-tag .role {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  white-space: nowrap;
}

/* Speech bubbles */
.hero-personal .dev .bubble {
  margin-top: 12px;
  background: var(--ink);
  color: var(--bone);
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 8px 16px rgba(26, 20, 16, 0.16);
  position: relative;
}
.hero-personal .dev .bubble em {
  color: var(--clay-soft);
  font-style: italic;
}
.hero-personal .dev .bubble::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 28px;
  width: 12px;
  height: 12px;
  background: inherit;
  transform: rotate(45deg);
  border-radius: 2px;
}
.hero-personal .dev-2 .bubble {
  background: var(--moss);
}
.hero-personal .dev-2 .bubble::before {
  left: auto;
  right: 28px;
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .hero-personal .hero-split {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero-personal .devs { max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 560px) {
  .hero-personal .devs { grid-template-columns: 1fr; gap: 24px; }
  .hero-personal .dev-1, .hero-personal .dev-2 { margin-top: 0; }
}
@media (max-width: 720px) {
  .hero-pf .floater.f3 { display: none; }
}
