/* Pictify marketing shell — extras beyond Tailwind */

:root {
  --text-muted: #64748b;
  --accent: #ea580c;
  --ice: #e0f2fe;
  --ice-ink: #0369a1;
}

html {
  scroll-behavior: auto; /* JS handles timed smooth scroll */
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

/* Expanding logo → compact on scroll */
.header-inner {
  padding-top: 1rem;
  padding-bottom: 1rem;
  transition: padding 0.3s ease;
}

.site-logo {
  height: 3.75rem; /* 60px — prominent at rest */
  width: auto;
  max-width: min(220px, 48vw);
  object-fit: contain;
  object-position: left center;
  transition: height 0.3s ease, max-width 0.3s ease;
}

#site-header.is-compact {
  box-shadow: 0 8px 24px -18px rgba(15, 23, 42, 0.35);
}

#site-header.is-compact .header-inner {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

#site-header.is-compact .site-logo {
  height: 2.5rem; /* 40px — compact while scrolled */
  max-width: min(160px, 42vw);
}

@media (min-width: 640px) {
  .site-logo {
    height: 4.5rem; /* 72px */
    max-width: 260px;
  }

  #site-header.is-compact .site-logo {
    height: 2.75rem; /* 44px */
    max-width: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-inner,
  .site-logo {
    transition: none;
  }
}

/* Header scroll-spy: ice pill */
.nav-link.is-active {
  background-color: var(--ice);
  color: var(--ice-ink);
}

/* Page-level active (footer / multi-page), matching Developed Exposure underline */
.footer-links a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #0f172a;
}

.footer-links a.is-active {
  color: #0f172a;
  box-shadow: inset 0 -2px 0 var(--accent);
  padding-bottom: 0.15rem;
}

.beta-pill {
  position: relative;
}

.beta-pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.55);
  animation: beta-pulse 1.8s ease-out infinite;
}

@keyframes beta-pulse {
  0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(234, 88, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}

/* Soft photo tiles — gradients for placeholder tiles; .tile-photo uses real images */
.tile {
  position: relative;
  background-size: cover;
  background-position: center;
}

.tile-photo {
  background-image: none;
  background-color: #e2e8f0;
}

.tile-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tile-img--wide {
  object-position: center 28%;
}

.tile-a {
  background-image:
    linear-gradient(145deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.05)),
    linear-gradient(160deg, #fdba74 0%, #fb923c 40%, #7dd3fc 100%);
}

.tile-b {
  background-image:
    linear-gradient(160deg, rgba(15, 23, 42, 0.15), transparent 50%),
    linear-gradient(200deg, #bae6fd 0%, #38bdf8 45%, #f97316 100%);
}

.tile-c {
  background-image:
    linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.25)),
    linear-gradient(120deg, #fed7aa, #f472b6 55%, #67e8f9);
}

.tile-d {
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent),
    linear-gradient(45deg, #0ea5e9, #0369a1 40%, #ea580c 100%);
}

.tile-e {
  background-image:
    linear-gradient(200deg, rgba(15, 23, 42, 0.2), transparent),
    linear-gradient(90deg, #ffedd5, #fdba74 40%, #7dd3fc);
}

.tile-f {
  background-image:
    linear-gradient(160deg, #f0f9ff, #bae6fd 50%, #fb923c);
}

.avatar-chip {
  position: relative;
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #e2e8f0;
  overflow: hidden;
  background: #e2e8f0;
  flex-shrink: 0;
}

.avatar-chip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.avatar-chip.is-active {
  box-shadow: 0 0 0 2px var(--accent);
  transform: scale(1.06);
}

/* Full-bleed video / image separator bands */
.parallax-band {
  isolation: isolate;
}

.parallax-band-video {
  z-index: 0;
  pointer-events: none;
}

/* GPU parallax layers */
[data-parallax-drift],
[data-parallax-layer],
[data-parallax-slow] {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .beta-pulse { animation: none; }
  .parallax-band-video {
    display: none;
  }
  [data-parallax-drift],
  [data-parallax-layer],
  [data-parallax-slow] {
    transform: none !important;
  }
}

/* Legal / inner pages */
.page-inner {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}

.page-inner h1 {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
}

.page-inner .muted {
  color: #64748b;
  font-size: 0.875rem;
  margin-top: 0.35rem;
}

.page-inner .prose {
  margin-top: 1.75rem;
  color: #334155;
  line-height: 1.7;
  font-size: 0.975rem;
}

.page-inner .prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-blurb a {
  color: var(--text-muted);
}

/* Floating contact — shared across all pages */
.pf-contact-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.05rem 0.85rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 16px 40px -18px rgba(194, 65, 12, 0.85);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pf-contact-fab:hover,
.pf-contact-fab:focus-visible {
  background: #c2410c;
  transform: translateY(-2px);
  outline: none;
}

.pf-contact-fab-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.pf-contact-fab-label {
  line-height: 1;
}

.pf-contact-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
}

.pf-contact-panel {
  position: fixed;
  z-index: 80;
  right: 1rem;
  bottom: 4.75rem;
  width: min(22.5rem, calc(100vw - 2rem));
  max-height: min(34rem, calc(100vh - 6.5rem));
  overflow: auto;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 28px 60px -28px rgba(15, 23, 42, 0.45);
  padding: 1.15rem 1.15rem 1.25rem;
}

.pf-contact-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pf-contact-title {
  margin: 0;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.pf-contact-sub {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
}

.pf-contact-sub a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pf-contact-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  flex-shrink: 0;
}

.pf-contact-close svg {
  width: 1rem;
  height: 1rem;
}

.pf-contact-close:hover,
.pf-contact-close:focus-visible {
  border-color: #cbd5e1;
  color: #0f172a;
  outline: none;
}

.pf-contact-form {
  display: grid;
  gap: 0.85rem;
}

.pf-contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

.pf-contact-form input,
.pf-contact-form textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-weight: 400;
  color: #0f172a;
  resize: vertical;
}

.pf-contact-form input:focus,
.pf-contact-form textarea:focus {
  outline: 2px solid rgba(234, 88, 12, 0.35);
  outline-offset: 1px;
  border-color: #fdba74;
  background: #fff;
}

.pf-contact-altcha {
  min-height: 2.5rem;
}

.pf-contact-status {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.pf-contact-status.is-error {
  color: #b91c1c;
}

.pf-contact-status.is-success {
  color: #047857;
}

.pf-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pf-contact-submit:hover:not(:disabled),
.pf-contact-submit:focus-visible:not(:disabled) {
  background: #c2410c;
  transform: translateY(-1px);
  outline: none;
}

.pf-contact-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

body.pf-contact-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .pf-contact-fab-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .pf-contact-fab {
    right: 1rem;
    bottom: 1rem;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    justify-content: center;
  }

  .pf-contact-panel {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pf-contact-fab,
  .pf-contact-submit {
    transition: none;
  }
}
