/* HAWOSE — home page */

/* ---------- Hero (layout kept: centered title, lead, two buttons) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  color: var(--on-charcoal); text-align: center;
  background:
    linear-gradient(180deg, rgba(31, 31, 31, .55) 0%, rgba(31, 31, 31, .62) 55%, rgba(31, 31, 31, .92) 100%),
    url("../images/hero.webp?v=20261119") center / cover no-repeat;
  background-color: var(--charcoal);
}
@media (max-width: 767.98px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(31, 31, 31, .55) 0%, rgba(31, 31, 31, .62) 55%, rgba(31, 31, 31, .92) 100%),
      url("../images/hero-mobile.webp?v=20261119");
  }
}
@media (min-width: 1024px) and (hover: hover) {
  .hero { background-attachment: fixed; }
}
.hero__inner {
  align-self: center; display: grid; justify-items: center; gap: var(--space-4);
  padding-top: calc(var(--nav-h) + var(--space-8)); padding-bottom: var(--space-8);
}
.hero__eyebrow { display: inline-flex; gap: var(--space-2); align-items: center; color: var(--on-charcoal); padding: var(--space-1) var(--space-3); border: var(--rule-hairline) solid var(--on-charcoal-line); background: rgba(31, 31, 31, .4); }
.hero__eyebrow .hw-spec { font-size: 13px; line-height: 16px; letter-spacing: 0; text-transform: none; }
.hero__title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(64px, 19vw, 168px); line-height: .9; letter-spacing: .02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero__title::after { content: ""; display: block; width: 72px; height: var(--rule-heavy); margin: var(--space-4) auto 0; background: var(--madder); animation: hw-draw 500ms var(--ease-out) 450ms both; }
.hero__lead {
  font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
  font-size: 16px; line-height: 24px; color: var(--on-charcoal); max-width: 32ch;
}
.hero__actions { justify-content: center; margin-top: var(--space-4); width: 100%; max-width: 420px; }
.hero__actions .hw-btn { min-height: 56px; min-width: 200px; font-size: 17px; }
@media (max-width: 767.98px) {
  .hero { min-height: calc(100svh - 64px - env(safe-area-inset-bottom)); }
}
@media (max-width: 575.98px) {
  /* Primary action first on phones */
  .hero__actions .hw-btn--primary { order: -1; }
}
@media (min-width: 576px) { .hero__actions { max-width: none; } }
@media (min-width: 768px) { .hero__lead { font-size: 20px; line-height: 28px; } }

.hero__strip { position: relative; border-top: var(--rule-hairline) solid var(--on-charcoal-line); background: rgba(31, 31, 31, .55); }
.hero__tags {
  list-style: none; margin: 0 auto; padding-top: var(--space-4); padding-bottom: var(--space-4);
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-6);
  font-family: var(--font-label); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-charcoal-muted);
}
.hero__tags li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero__tags i { color: var(--madder-on-dark); }
.hero__cue {
  position: absolute; right: var(--gutter); top: 0; transform: translateY(-50%);
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--madder); color: var(--on-madder); text-decoration: none;
}
.hero__cue:hover { background: var(--madder-hover); color: var(--on-madder); }
@media (max-width: 575.98px) {
  .hero__tags { justify-content: space-between; gap: var(--space-2); font-size: 11px; letter-spacing: .1em; padding-top: var(--space-6); }
  .hero__tags li { flex-direction: column; gap: var(--space-1); flex: 1; }
  .hero__tags i { font-size: 18px; }
}

/* ---------- Intro ---------- */
.intro__grid { display: grid; gap: var(--space-12); align-items: center; }
.intro__text { max-width: 60ch; }
.intro__text p { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-muted); }
.intro__actions { margin-top: var(--space-8); }
.intro__media { aspect-ratio: 4 / 3; margin: 0 var(--space-2); }
@media (min-width: 992px) {
  .intro__grid { grid-template-columns: 1fr 1fr; gap: var(--space-16); }
  .intro__media { margin: 0; }
}

/* ---------- Services ---------- */
.services__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4) var(--space-8); margin-bottom: var(--space-8); }
.services__head .hw-section-head { margin-bottom: 0; }
.services__grid { display: grid; gap: var(--space-6); }
@media (min-width: 768px) and (max-width: 1023.98px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
  .services__grid > :last-child { grid-column: 1 / -1; }
  .services__grid > :last-child .hw-service__media { aspect-ratio: 21 / 9; }
}
@media (min-width: 1024px) {
  .services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .services__head { margin-bottom: var(--space-12); }
}

/* ---------- Machine ---------- */
.machine { position: relative; overflow: hidden; }
.machine::after {
  content: ""; position: absolute; right: 0; top: 0; width: 120px; height: 100%;
  background: repeating-linear-gradient(-45deg, rgba(252, 247, 248, .04) 0 14px, transparent 14px 28px);
  pointer-events: none;
}
.machine__grid { position: relative; z-index: 1; display: grid; gap: var(--space-12); align-items: center; }
.machine__media { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-bottom: var(--rule-heavy) solid var(--madder); }
.machine__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.machine__grid:not(.machine__grid--alt) .machine__media img { object-position: 12% center; }
.machine__copy .hw-section-head { margin-bottom: var(--space-8); }
.spec-table { margin: 0 0 var(--space-8); border-top: var(--rule-hairline) solid var(--on-charcoal-line); }
.spec-table div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: var(--rule-hairline) solid var(--on-charcoal-line); }
.spec-table dt { color: var(--on-charcoal-muted); font-weight: 500; }
.spec-table dd { margin: 0; font-size: 16px; color: var(--on-charcoal); }
@media (max-width: 767.98px) {
  .machine::after { display: none; }
  .machine__media { aspect-ratio: 4 / 3; }
}
@media (min-width: 992px) {
  .machine__grid { grid-template-columns: 5fr 7fr; gap: var(--space-16); }
}
/* Second machine (Kubota): landscape photo, mirrored on desktop */
.machine__grid + .machine__grid { margin-top: var(--space-16); }
.machine__grid--alt .machine__media { aspect-ratio: 4 / 3; }
.machine__grid--alt .machine__media img { object-position: 59% center; }
@media (min-width: 992px) {
  .machine__grid--alt { grid-template-columns: 5fr 7fr; }
  .machine__grid--alt .machine__media { order: 2; }
}
