/* Home page. Replaces hero.css, products.css and the home use of features.css.
   Structure: ruled sections, a narrow label column on the left, content on the right. */

.home-hero { padding: 176px 0 96px;}
.home-hero h1 {
  font-size: clamp(44px, 7.4vw, 108px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
  max-width: 18ch;
  margin-bottom: 96px;
}
.home-hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 32px 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}
.home-hero-foot p {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: 32px;
}
.home-hero-foot .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.home-section {
  padding: 96px 0;
  border-top: 1px solid var(--border-soft);
  color: var(--text-primary);
}
.home-section .inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 32px 48px;
}
.home-section h2 { font-size: 15px; font-weight: 600; }

/* Portfolio */
.portfolio-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid var(--border-soft);
}
.portfolio-row:first-child { border-top: none; padding-top: 0; }
.portfolio-logo {
  width: 96px; height: 96px;
  padding: 12px;
}
.portfolio-logo img { width: 100%; height: 100%; object-fit: contain; }
.portfolio-row h3 { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.portfolio-meta { font-size: 14px; color: var(--text-muted); margin: 6px 0 16px; }
.portfolio-row p { color: var(--text-secondary); max-width: 52ch; }
.portfolio-row.pending h3 { color: var(--text-muted); }
.text-link {
  font-weight: 500;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}
.text-link:hover { border-color: var(--text-primary); }

/* Mission */
.home-statement {
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 30ch;
  margin-bottom: 72px;
}
.home-defs > div {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border-soft);
}
.home-defs dt { font-size: 18px; font-weight: 600; }
.home-defs dd { font-size: 17px; color: var(--text-secondary); max-width: 56ch; }

/* Company index: full-row links */
.home-index a {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--border-soft);
}
.home-index a:last-child { border-bottom: 1px solid var(--border-soft); }
.home-index .row-title { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.home-index .row-desc { color: var(--text-secondary); max-width: 44ch; }
.home-index .row-go { font-weight: 500; color: var(--text-muted); transition: color 0.15s ease; }
.home-index a:hover .row-title { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.home-index a:hover .row-go { color: var(--text-primary); }

@media (max-width: 860px) {
  .home-hero { padding: 128px 0 64px; }
  .home-hero h1 { margin-bottom: 56px; }
  .home-hero-foot, .home-section .inner { grid-template-columns: 1fr; gap: 24px; }
  .home-section { padding: 64px 0; }
  .portfolio-row { grid-template-columns: 72px 1fr; gap: 20px; }
  .portfolio-logo { width: 72px; height: 72px; }
  .portfolio-row .text-link { grid-column: 2; justify-self: start; }
  .home-defs > div { grid-template-columns: 1fr; gap: 8px; }
  .home-index a { grid-template-columns: 1fr; gap: 8px; }
}