/* Products — the whole catalogue on one page. Extends style.css, adds no new tokens.
   Density is the point: compact cards carry photo + brand + name only, and the
   descriptive copy lives in each division's intro instead of repeating per card. */

/* Page head and breadcrumb live in style.css — every interior page uses them. */

/* ---------------- JUMP BAR ---------------- */
.jumpbar {
  border-bottom: 1px solid var(--mist);
  background: var(--white);
}
.jumpbar .container {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  flex-wrap: wrap;
}
.jumpbar a {
  font-family: var(--font-mono);
  font-size: 0.78125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 15px 0;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.jumpbar a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}
.jumpbar .n {
  color: var(--slate);
  font-size: 0.72rem;
}

/* ---------------- DIVISION ---------------- */
.division {
  padding-block: clamp(34px, 5vw, 58px);
  scroll-margin-top: 80px;
}
.division.alt {
  background: var(--surface);
}
.division-head {
  margin-bottom: clamp(20px, 2.6vw, 28px);
}
.division-head h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  margin-top: 6px;
}
.division-head .blurb {
  color: var(--slate);
  margin-top: 12px;
  max-width: 62ch;
  line-height: 1.65;
}

/* the middle level of the taxonomy — Raw Materials / Machine within a division.
   Heavier than a category rule, lighter than a division head, so three levels read
   as three levels without a third type size. */
.typehead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 34px 0 4px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.typehead:first-of-type {
  margin-top: 0;
}

/* sub-group rule — a full section head per sub-group would cost ~80px each; this costs ~20 */
.subhead {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 30px 0 16px;
}
.subhead:first-of-type {
  margin-top: 0;
}
.subhead .lbl {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}
.subhead .bmeta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--slate);
  white-space: nowrap;
}
.subhead .rule {
  flex: 1;
  height: 1px;
  background: var(--mist);
}
.subhead .n {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate);
}

/* ---------------- PRODUCT GRID ---------------- */
.pgrid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.pcard {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 10px;
  overflow: hidden;
  color: inherit;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.pcard:hover {
  transform: translateY(-3px);
  border-color: var(--haze);
  box-shadow: 0 12px 26px -14px rgba(30, 34, 38, 0.45);
}

/* positioned out of flow so the frame's aspect-ratio decides the height — every source
   here happens to be 4:3 today, but a non-4:3 one would otherwise stretch its card */
.pcard .shot {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-bottom: 1px solid var(--mist);
}
.pcard .shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* names sit on the bottom edge so they line up across a row whether or not the
   card above them carries a brand line */
.pcard .pbody {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  padding: 13px 15px 15px;
  flex: 1;
}
.pcard .pbrand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--red);
}
.pcard h3 {
  font-size: 0.9375rem;
  line-height: 1.18;
}
/* the arrow sits inline so the affordance costs no extra card height */
.pcard h3::after {
  content: "\2192";
  color: var(--haze);
  margin-left: 7px;
  display: inline-block;
  transition:
    transform 0.18s ease,
    color 0.18s ease;
}
.pcard:hover h3::after {
  color: var(--red);
  transform: translateX(3px);
}

/* ---------------- ALSO SUPPLIED (awaiting photography) ---------------- */
.also {
  margin-top: 26px;
  border: 1px solid var(--mist);
  border-radius: 10px;
  padding: 20px 22px;
  background: var(--white);
}
.division.alt .also {
  background: transparent;
}
.also .alabel {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 15px;
}
.also ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 11px 28px;
}
.also li {
  font-size: 0.875rem;
  color: var(--steel);
  line-height: 1.4;
  padding-left: 15px;
  position: relative;
}
.also li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}
.also a {
  transition: color 0.15s ease;
}
.also a:hover {
  color: var(--red);
}
.also .units {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  color: var(--slate);
  margin-top: 5px;
  line-height: 1.6;
}

/* ---------------- SOFTWARE PANEL ---------------- */
/* one product with seven modules is not a grid item — it gets the room it needs */
.swpanel {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--ink);
  color: var(--white);
  border-radius: 14px;
  overflow: hidden;
}
@media (min-width: 900px) {
  .swpanel {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
.swbody {
  padding: clamp(24px, 3.2vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
}
.swbody .pbrand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--red);
}
.swbody h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
}
.swbody p {
  color: var(--mist);
  line-height: 1.65;
  font-size: 0.9375rem;
}
.swchips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.swchip {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  padding: 6px 13px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--mist);
}
.swbody .btn {
  align-self: flex-start;
  margin-top: 4px;
}
.swshots {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  min-height: 280px;
}
.swshots img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
