/* Pine Top 3D landing — custom styles layered on the design-system tokens.
   Animations are gated behind prefers-reduced-motion. */

html, body { height: 100%; }
body { margin: 0; background: var(--surface-page); color: var(--text-body); }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--neutral-300); border-radius: 999px; }

.pt-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* link reset for nav/anchors used as buttons */
a.pt-plain { color: inherit; text-decoration: none; }
a.pt-plain:hover { text-decoration: none; }

/* ===================== Media stage ===================== */
.ptm { isolation: isolate; }
.ptm__sheen {
  position: absolute; inset: -30%; opacity: 0.9; mix-blend-mode: screen;
}
.ptm--anim .ptm__sheen { animation: ptm-spin 22s linear infinite; }
.ptm__trees {
  position: absolute; right: -26px; bottom: -22px; width: 190px; opacity: 0.10;
  filter: brightness(0) invert(1);
}
.ptm__stage {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.ptm__disc {
  position: absolute; width: 62%; aspect-ratio: 1 / 1; border-radius: 50%;
  transform: translateY(6%);
}
.ptm--anim .ptm__disc { animation: ptm-pulse 6s var(--ease-standard) infinite; }
.ptm__icon { position: relative; z-index: 1; }
.ptm--anim .ptm__icon { animation: ptm-float 6s var(--ease-standard) infinite; }
.ptm__pill {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(0, 38, 58, 0.34); backdrop-filter: blur(6px);
  color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.ptm__scrim {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 22px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(0, 30, 46, 0.62));
}
.ptm__cat { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.ptm__name { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.ptm__spec { font-family: var(--font-body); font-size: 13px; margin-top: 5px; }

/* progress dots */
.ptm-dots {
  position: absolute; z-index: 3; bottom: 16px; right: 18px;
  display: flex; gap: 7px;
}
.ptm-dot {
  width: 8px; height: 8px; border-radius: 999px; border: none; cursor: pointer; padding: 0;
  background: rgba(255, 255, 255, 0.4); transition: all var(--duration-base) var(--ease-standard);
}
.ptm-dot:hover { background: rgba(255, 255, 255, 0.7); }
.ptm-dot.is-active { width: 22px; background: var(--cyan-500); }

@keyframes ptm-spin { to { transform: rotate(360deg); } }
@keyframes ptm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes ptm-pulse { 0%, 100% { opacity: 0.85; transform: translateY(6%) scale(1); } 50% { opacity: 1; transform: translateY(6%) scale(1.04); } }

@media (prefers-reduced-motion: reduce) {
  .ptm--anim .ptm__sheen, .ptm--anim .ptm__disc, .ptm--anim .ptm__icon { animation: none; }
}

/* ===================== Section rhythm ===================== */
.pt-section { padding: 76px 0; }
.pt-section--tight { padding: 56px 0; }
.pt-band-navy { background: var(--navy-700); color: #fff; }
.pt-band-soft { background: var(--navy-050); }
.pt-eyebrow-line { display: inline-flex; align-items: center; gap: 10px; }
.pt-eyebrow-line::before { content: ""; width: 22px; height: 2px; background: var(--cyan-500); border-radius: 2px; }

.pt-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.pt-h2 { font-size: 34px; line-height: 1.08; margin: 8px 0 0; letter-spacing: -0.02em; }
.pt-lede { font-size: 18px; color: var(--text-muted); max-width: 540px; line-height: 1.6; }

/* category card */
.pt-catcard {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 24px; background: var(--surface-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs); cursor: pointer; overflow: hidden;
  transition: box-shadow var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard);
}
.pt-catcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--navy-100); }
.pt-catcard__icon {
  width: 52px; height: 52px; border-radius: var(--radius-md); flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-050); color: var(--navy-700);
}
.pt-catcard:hover .pt-catcard__icon { background: var(--navy-700); color: #fff; }
.pt-catcard__count { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--text-subtle); }

/* model card */
.pt-modelcard { display: flex; flex-direction: column; height: 100%; }
.pt-modelcard .pt-card__body { display: flex; flex-direction: column; flex: 1; }
.pt-stat { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--text-muted); }

/* stat strip */
.pt-statnum { font-family: var(--font-display); font-weight: 900; font-size: 40px; letter-spacing: -0.02em; line-height: 1; color: #fff; }
.pt-statlbl { font-family: var(--font-body); font-size: 14px; color: var(--pale-teal); margin-top: 8px; }

/* resource row */
.pt-reslink { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface-card); transition: border-color var(--duration-base) var(--ease-standard), background var(--duration-base) var(--ease-standard); cursor: pointer; }
.pt-reslink:hover { border-color: var(--navy-300); background: var(--navy-050); }

/* fade-up entrance */
.pt-rise { opacity: 0; transform: translateY(14px); animation: pt-rise 0.6s var(--ease-out) forwards; }
@keyframes pt-rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pt-rise { opacity: 1; transform: none; animation: none; } }

@media (max-width: 900px) {
  .pt-h2 { font-size: 28px; }
  .pt-section { padding: 56px 0; }
}

/* ===================== Mobile (≤768px) ===================== */
@media (max-width: 768px) {
  /* --- Header: swap desktop nav for hamburger --- */
  .pt-nav-desktop,
  .pt-search-desktop,
  .pt-cta-desktop { display: none !important; }
  .pt-menu-btn { display: inline-flex !important; }
  .pt-mobile-menu a.pt-plain { min-height: 44px; display: flex; align-items: center; }

  /* --- Collapse multi-column layouts to a single column --- */
  .pt-grid-3,
  .pt-grid-split,
  .pt-footer-grid,
  .pt-model-grid,
  .pt-hero-grid { grid-template-columns: 1fr !important; }

  /* tighten the big column gaps once stacked */
  .pt-hero-grid { gap: 36px !important; }
  .pt-grid-split { gap: 32px !important; }
  .pt-footer-grid { gap: 32px !important; }

  /* photo-thumbnail strip → two-up */
  .pt-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }

  /* mosaic hero → stacked tiles with explicit heights (cells no longer size them) */
  .pt-mosaic-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    gap: 14px !important;
  }
  .pt-mosaic-grid > * { grid-row: auto !important; height: 230px !important; }

  /* --- Headings scale down --- */
  .pt-hero-h1 { font-size: 34px !important; line-height: 1.07 !important; }
  .pt-page-h1 { font-size: 30px !important; line-height: 1.08 !important; }

  /* --- Hero CTAs stack full-width --- */
  .pt-cta-row { flex-direction: column; align-items: stretch; }
  .pt-cta-row .pt-btn { width: 100%; }

  /* closing stat band: stat tiles flow from the left, full width */
  .pt-stat-row { justify-content: flex-start; }
  .pt-stat-row > * { flex: 1 1 140px; }

  /* --- Body copy floor of 16px on small screens --- */
  .pt-m-body { font-size: 16px !important; }

  /* --- Tap targets ≥44px --- */
  .pt-btn { min-height: 44px; }
  .pt-tag { min-height: 44px; padding: 0 16px; }
  .ptm-dot { width: 12px; height: 12px; }
  .ptm-dot.is-active { width: 26px; }
}
