/* AMMO house style. Reference: ammo.tools; shared tokens live in studio.css. */
.home-page main {
  display: block;
  padding-top: 0;
  padding-bottom: 0;
}

.home-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
  gap: 64px;
  padding: 80px 0 56px;
}

.home-hero h1 {
  max-width: none;
  margin: 0 0 24px;
  font-size: clamp(2.5rem, 4.1vw, 3.7rem);
  line-height: 1.12;
  text-wrap: balance;
}

.home-hero .lede {
  max-width: 48ch;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.hero-actions .button {
  font-size: .9rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 10px;
  font-size: .9rem;
}

.studio-photo {
  margin: 0;
}

.studio-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1.3;
  object-fit: cover;
  object-position: 55% center;
  border-radius: 12px;
}

.studio-photo figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: .78rem;
}

.home-section {
  padding-block: 52px;
  border-top: 1px solid var(--line);
}

.home-page h2 {
  font-size: 1.8rem;
  line-height: 1.3;
  text-wrap: balance;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 0;
}

.section-heading > p {
  max-width: 40ch;
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.service-grid article {
  border-top: 2px solid var(--primary-fill);
  padding-top: 22px;
}

.service-grid article:nth-child(2) {
  border-top-color: var(--purple);
}

.service-grid article:nth-child(3) {
  border-top-color: var(--red);
}

.service-grid h3 {
  font-size: 1.55rem;
  line-height: 1.3;
  margin: 0 0 14px;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.7;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.product-entry {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.product-entry .status {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  color: var(--accent);
  font-size: .75rem;
}

.product-thumbnail {
  display: block;
  width: calc(100% + 48px);
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: -24px -24px 24px;
  border-radius: 11px 11px 0 0;
  border-bottom: 1px solid var(--line);
}

.product-entry h3 {
  font-size: 1.8rem;
}

.product-entry h3 a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--fg);
}

.product-entry h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
}

.product-entry h3 a:hover {
  color: var(--accent);
}

.product-entry .arrow-icon {
  color: var(--accent);
}

.product-entry p:last-child {
  margin: 12px 0 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.7;
}

.home-page .cta-band {
  border-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.home-page .cta-band h2 {
  max-width: 28ch;
  margin: 0;
}

.home-page .cta-band p {
  margin: 0;
  color: var(--muted);
}

.arrow-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .home-hero { gap: 32px; padding-top: 64px; }
}

@media (max-width: 700px) {
  .home-hero { grid-template-columns: 1fr; gap: 36px; padding: 46px 0 36px; }
  .home-hero h1 { font-size: 2.65rem; max-width: 18ch; }
  .home-hero .lede { font-size: .97rem; }
  .studio-photo img { aspect-ratio: 1.8; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 28px; }
  .home-section { padding-block: 36px; }
  .home-page h2 { font-size: 1.6rem; }
  .service-grid, .product-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-grid h3 { font-size: 1.4rem; }
  .service-grid h3 br { display: none; }
}
