/* ============================================================
   home.css — the V_20 homepage.

   Kainoa-inspired pass: everything sits on the shared 12-column
   .kg grid (portfolio.css) with the small 550-weight type system.
   No wordmark, no montage — the orb in the header carries the
   identity and the work leads. Built on the portfolio.css tokens
   so the home page reads as the same site as the case studies.
   ============================================================ */

/* ── Hero — short, Kainoa-style: one statement, one support line ── */
.hm-hero {
  padding: clamp(140px, 22vh, 240px) 0 clamp(72px, 12vh, 140px);
}
.hm-hero__h {
  grid-column: 3 / span 8;
  font-size: var(--t-stmt);
  font-weight: var(--w-med);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-stmt);
  color: var(--ink);
  margin: 0 0 clamp(24px, 4vh, 40px);
}
.hm-hero__h .soft { color: var(--muted); }
.hm-hero__line {
  grid-column: 3 / span 5;
  font-size: var(--t-body);
  line-height: 1.6;
  letter-spacing: 0.005em;
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
}
.hm-hero__line a {
  color: var(--ink);
  font-weight: var(--w-med);
  border-bottom: 1px solid var(--line);
}
.hm-hero__line a:hover { border-bottom-color: var(--ink); }
.hm-hero__cta {
  grid-column: 3 / span 5;
  justify-self: start;
  margin-top: clamp(20px, 3.5vh, 34px);
  font-size: var(--t-body);
  font-weight: var(--w-med);
  letter-spacing: 0.01em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.hm-hero__cta:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Featured project (FedEx) — meta row over full-width media ── */
.hm-feat { padding: clamp(56px, 9vh, 110px) 0 0; }
.hm-feat__meta {
  align-items: start;
  margin-bottom: clamp(28px, 5vh, 56px);
}
.hm-feat__name {
  grid-column: 1 / span 2;
  font-size: var(--t-label);
  font-weight: var(--w-med);
  letter-spacing: var(--tr-lg);
  line-height: 1.3;
  margin: 0;
}
.hm-feat__yrs {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.hm-feat__services {
  grid-column: 3 / span 2;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: var(--w-med);
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.hm-feat__desc {
  grid-column: 6 / span 4;
  font-size: var(--t-body);
  line-height: 1.6;
  letter-spacing: 0.005em;
  color: var(--muted);
  margin: 0 0 14px;
}
.hm-feat__body { grid-column: 6 / span 4; }
.hm-feat__body .hm-feat__desc { grid-column: auto; }
.hm-feat__cta {
  font-size: 13px;
  font-weight: var(--w-med);
  letter-spacing: 0.01em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.hm-feat__cta:hover { border-bottom-color: var(--ink); }

/* Featured media: inset from the page edge by the gutter, flat corners.
   The 3:2 crop keeps a tall source (the 4:3 monitor render) reading as
   a cinematic band instead of dominating the page. */
.hm-media { padding-inline: var(--gut); }
.hm-media img,
.hm-media video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  background: var(--accent-soft);
}
a.hm-media img { transition: opacity 0.3s ease; }
a.hm-media:hover img { opacity: 0.93; }

/* ── Statement between sections — alternating grid offsets ── */
.hm-stmt-wrap { padding: clamp(88px, 16vh, 200px) 0; }
.hm-stmt {
  grid-column: 3 / span 7;
  font-size: var(--t-stmt);
  font-weight: var(--w-med);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-stmt);
  color: var(--ink);
  margin: 0;
}
.hm-stmt-wrap--alt .hm-stmt { grid-column: 6 / span 7; }
.hm-stmt .soft { color: var(--muted); }

/* ── Work grid — Kainoa-style 2-up thumbnails with caption rows ── */
.hm-cards { padding: clamp(40px, 7vh, 80px) 0 0; }
.hm-cards .kg { row-gap: clamp(48px, 7vh, 88px); }
.hm-card {
  grid-column: span 6;
  display: block;
}
.hm-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  background: var(--accent-soft);
  transition: opacity 0.3s ease;
}
.hm-card:hover .hm-card__img { opacity: 0.92; }
.hm-card__cap {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 20px;
  padding-top: 14px;
  align-items: start;
}
.hm-card__name {
  font-size: var(--t-label);
  font-weight: var(--w-med);
  letter-spacing: var(--tr-lg);
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}
.hm-card__tags {
  font-size: 13px;
  font-weight: var(--w-med);
  letter-spacing: 0.01em;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.hm-card__serv {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: var(--w-med);
  letter-spacing: 0.01em;
  line-height: 1.6;
  color: var(--ink);
}
.hm-cards__all {
  grid-column: 1 / -1;
  justify-self: start;
  font-size: 13px;
  font-weight: var(--w-med);
  letter-spacing: 0.01em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.hm-cards__all:hover { border-bottom-color: var(--ink); }

/* ── Client logos ──────────────────────────────────────────── */
.hm-clients { padding: clamp(84px, 16vh, 190px) 0 0; }
.hm-clients__eyebrow {
  font-family: var(--mono);
  font-size: var(--t-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--space-lg);
}
.hm-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hm-marquee__track {
  display: flex; align-items: center;
  gap: clamp(36px, 4vw, 64px);
  width: max-content;
  animation: hm-scroll 46s linear infinite;
}
.hm-marquee:hover .hm-marquee__track { animation-play-state: paused; }
@keyframes hm-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hm-logo { display: block; height: auto; filter: brightness(0); opacity: 0.32; }
.hm-logo--xs { width: 60px; } .hm-logo--sm { width: 78px; }
.hm-logo--lg { width: 100px; } .hm-logo--shield { width: 27px; }

/* ── Lab row ───────────────────────────────────────────────── */
.hm-lab-sec { padding: clamp(84px, 16vh, 190px) 0 clamp(96px, 16vh, 200px); }
.hm-lab-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hm-lab-row a { display: block; text-decoration: none; }
.hm-lab-row img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top;
  transition: opacity 0.3s ease;
}
.hm-lab-row a:hover img { opacity: 0.92; }
.hm-lab-row b {
  display: block; font-family: var(--display); font-weight: var(--w-med);
  font-size: 15px; letter-spacing: 0.01em; margin-top: 12px; color: var(--ink);
}
.hm-lab-row span { font-size: 13px; font-weight: var(--w-med); color: var(--muted); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 820px) {
  .hm-hero__h { margin-bottom: 20px; }
  .hm-hero__line { max-width: none; }
  .hm-hero__cta { display: inline-block; }
  .hm-feat__name { margin-bottom: 14px; }
  .hm-feat__services { margin-bottom: 18px; }
  .hm-card { margin-bottom: 52px; }
  .hm-cards .kg > .hm-card:last-of-type { margin-bottom: 0; }
  .hm-card__cap { grid-template-columns: 1fr 1fr; }
  .hm-card__name { grid-column: 1 / -1; }
  .hm-cards__all { display: inline-block; margin-top: 40px; }
  .hm-lab-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-marquee__track { animation: none; }
  a.hm-media img, .hm-card__img, .hm-lab-row img { transition: none; }
}
