/* ===== Home Page ===== */
.page-home {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px var(--gutter) 48px;
}

/* Reusable card look (page-scoped) */
.page-home .card {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  padding: 18px;
  margin: 14px 0;
  background: #fff;
}

.page-home .muted {
  opacity: 0.8;
}

/* ===== Hero ===== */
.home-hero {
  padding: 10px 0 12px;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  align-items: center;
}

.home-hero__subhead {
  margin-top: 10px;
  line-height: 1.5;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* Home media images */
.page-home .media {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
}

/* ===== Lite YouTube (click-to-load) ===== */
.page-home .video-lite {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.12);
  background: #000;
}

.page-home .video-lite__poster {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.page-home .video-lite__play {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(0,0,0,0.25);
  cursor: pointer;
}

.page-home .video-lite__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
}

.page-home .video-lite__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 24px;
  transform: translate(-35%, -50%);
  background: #000;
  clip-path: polygon(0 0, 0 100%, 100% 50%);
}

.page-home .video-lite__play:focus-visible {
  outline: 3px solid rgba(0,0,0,0.65);
  outline-offset: 3px;
}

/* ===== Bullets ===== */
.bullets {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

/* ===== Featured project ===== */
.featured__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  align-items: start;
}

.hook {
  margin-top: 10px;
  font-style: italic;
}

.status {
  margin-top: 12px;
}

.section-head h2 {
  margin: 0 0 6px;
}

.section-head p {
  margin: 0;
}

/* ===== Updates list (injected by JS) ===== */
.updates {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.update-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}

.update-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.update-meta {
  font-size: 12px;
  opacity: 0.75;
  margin: 0 0 8px;
}

.update-card p {
  margin: 0;
}

/* ===== Newsletter (Netlify Form) ===== */
.newsletter__embed {
  margin-top: 12px;
}

.page-home .newsletter-form {
  margin-top: 12px;
}

.page-home .newsletter-form .form-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.page-home .newsletter-form .field {
  display: grid;
  gap: 6px;
}

.page-home .newsletter-form .field-label {
  font-size: 13px;
  opacity: 0.85;
}

.page-home .newsletter-form input[type="email"],
.page-home .newsletter-form input[type="text"] {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  font-size: 14px;
  line-height: 1.3;
  outline: none;
}

.page-home .newsletter-form input:focus {
  border-color: rgba(0,0,0,0.35);
}

.page-home .newsletter-form .btn {
  margin-top: 14px;
}

/* ===== Mobile (use literal 768px) ===== */
@media (max-width: 768px) {
  .home-hero__grid,
  .featured__grid {
    grid-template-columns: 1fr;
  }

  .page-home .card {
    padding: 14px;
  }

  .cta-row a {
    width: 100%;
    justify-content: center;
  }

  .page-home .newsletter-form .form-grid {
    grid-template-columns: 1fr;
  }
}
