/* ==========================================================================
   TerrainDriver — shared components
   Loaded after styles.css (homepage) and product-pages.css (product pages).
   Follows the house design language: square corners, hairline dividers,
   monospaced micro-labels, navy panels.
   ========================================================================== */

/* Contact section: email + postal address rows (mirrors .contact-phone) */
.contact-email {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-align: center;
  text-decoration: none;
}

.contact-email span {
  flex: none;
  color: var(--muted);
  font-size: 14px;
}

.contact-email strong {
  color: var(--blue);
  font: 16px/1.3 var(--font-mono);
  text-align: center;
  word-break: break-word;
}

.contact-email:hover strong { text-decoration: underline; text-underline-offset: 5px; }

.contact-address {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  padding-top: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.contact-address address {
  max-width: 360px;
  font-style: normal;
  text-align: center;
}

/* The contact block inherits `gap: 12%` from the original sheet, written for a
   single grid row. Below 860px it stacks into two rows, and a percentage
   row-gap on an auto-height container resolves badly: the grid box ends up
   shorter than its contents and the location line spills 2.7px over the footer
   at 390px. A fixed row-gap measures correctly and leaves the desktop
   single-row layout untouched. */
.contact { row-gap: 32px; }

/* --------------------------------------------------------------------------
   Variant switcher — one product, several builds
   -------------------------------------------------------------------------- */
.variant-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 42px 0 0;
  border: 1px solid var(--line);
  border-right: 0;
}

.variant-tab {
  flex: 1 1 auto;
  min-height: 54px;
  padding: 0 22px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  font: 13px var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.variant-tab small {
  display: block;
  margin-top: 3px;
  color: #8b9cb2;
  font: 10px var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.variant-tab:hover { color: var(--ink); background: var(--mist); }

.variant-tab[aria-selected="true"] {
  color: var(--white);
  background: var(--navy);
}

.variant-tab[aria-selected="true"] small { color: var(--blue); }

.variant-panel[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Native specification tables — the print spec sheets, rebuilt as markup
   -------------------------------------------------------------------------- */
.spec-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
}

.spec-table caption {
  margin-bottom: 18px;
  color: var(--blue);
  font: 12px var(--font-mono);
  letter-spacing: 0.04em;
  text-align: left;
}

.spec-table th,
.spec-table td {
  padding: 16px 18px 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
  text-align: left;
}

.spec-table th {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.spec-table td {
  color: var(--ink);
  font: 15px var(--font-mono);
}

.spec-table-group th {
  padding-top: 26px;
  color: var(--blue);
  font: 11px var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spec-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font: 12px var(--font-sans);
}

.spec-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
  gap: 0 56px;
  margin-top: 40px;
}

.spec-downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-items: center;
  gap: 0 56px;
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.spec-download {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 22px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
}

.spec-download span {
  color: var(--muted);
  font: 13px var(--font-mono);
  letter-spacing: 0.06em;
}

.spec-download i {
  color: var(--blue);
  font-style: normal;
  transition: transform 180ms ease;
}

.spec-download:hover i { transform: translate(3px, -3px); }

@media (max-width: 860px) {
  .variant-tab { flex: 1 1 100%; border-bottom: 1px solid var(--line); }
  .variant-bar { border-bottom: 0; }
  .spec-columns { grid-template-columns: 1fr; gap: 0; }
  .contact-email,
  .contact-address { flex-direction: column; gap: 8px; align-items: center; text-align: center; }
  .contact-address address { text-align: center; }
}

@media (max-width: 600px) {
  .contact-email strong { font-size: 15px; text-align: center; }
  .spec-table th { font-size: 13px; }
  .spec-table td { font-size: 14px; }
  .spec-table th,
  .spec-table td { padding: 13px 12px 13px 0; }
}

/* --------------------------------------------------------------------------
   Catalog: three product lines read best as a single row
   -------------------------------------------------------------------------- */
.catalog-grid { grid-template-columns: repeat(3, 1fr); }

/* Three product photos share one fixed frame so they always line up at the
   same size, no matter how the source images are cropped. */
.catalog-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ice);
  border-bottom: 1px solid var(--line);
}
.catalog-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-image-graphic {
  display: grid;
  place-items: center;
  padding: 40px;
  background: var(--ice);
  border-bottom: 1px solid var(--line);
}
.catalog-summary { min-height: 86px; }
.catalog-copy h3 { margin-top: 26px; }

@media (max-width: 1040px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-summary { min-height: 0; }
}

/* --------------------------------------------------------------------------
   Product detail pages
   -------------------------------------------------------------------------- */
.detail-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.detail-hero-tags li {
  padding: 8px 12px;
  color: #2e4159;
  border: 1px solid rgba(7 27 60 / 14%);
  font: 11px var(--font-mono);
  letter-spacing: 0.04em;
}

.variant-section { padding-block: 110px; border-bottom: 2px solid var(--divider); }
.variant-section h2 { margin: 0; font-size: clamp(31px, 3.7vw, 53px); font-weight: 400; line-height: 1.06; letter-spacing: -.021em; }

.variant-intro {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 10%;
  align-items: end;
}

.variant-intro .detail-copy { margin: 0; }

.variant-panel { padding-top: 64px; }

.variant-summary {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.variant-lead {
  margin: 34px 0 0;
  padding-left: 22px;
  color: var(--ink);
  border-left: 2px solid var(--blue);
  font-size: 17px;
  line-height: 1.8;
}

.consult-email {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  color: var(--blue);
  border-bottom: 1px solid var(--line);
  font: 16px var(--font-mono);
  text-decoration: none;
  word-break: break-word;
}

.consult-links { display: grid; gap: 4px; }

@media (max-width: 860px) {
  .variant-section { padding-block: 76px; }
  .variant-intro { grid-template-columns: 1fr; gap: 30px; align-items: start; }
  .variant-panel { padding-top: 48px; }
  .variant-summary { font-size: 17px; }
}

@media (max-width: 600px) {
  .variant-section h2 { font-size: 28px; }
  .consult-email { flex-direction: column; gap: 8px; font-size: 14px; }
}

/* --------------------------------------------------------------------------
   Graphic plates — used where product photography does not exist yet.
   Built from the same geometric vocabulary as the technology symbols, so a
   product without a photo still reads as part of the family.
   -------------------------------------------------------------------------- */
.product-media-graphic {
  display: grid;
  place-items: center;
  padding: 44px;
  background: var(--ice);
  border: 1px solid var(--line);
}

.graphic-plate { display: grid; width: 100%; max-width: 430px; }

.graphic-plate-label {
  margin: 0;
  color: var(--blue);
  font: 11px/1.6 var(--font-mono);
  letter-spacing: 0.06em;
}

.graphic-plate-name {
  margin: 20px 0 0;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.022em;
}

.graphic-plate-mark {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 40px 0;
}

.graphic-plate-mark::before {
  position: absolute;
  inset: 12px;
  border: 1px solid var(--blue);
  content: "";
  transform: rotate(45deg);
}

.graphic-plate-mark::after {
  position: absolute;
  top: 14px;
  left: 54px;
  width: 1px;
  height: 82px;
  background: var(--blue);
  content: "";
}

.graphic-plate-mark span {
  position: absolute;
  top: 50px;
  left: 50px;
  width: 10px;
  height: 10px;
  background: var(--blue);
}

.graphic-plate-meta {
  margin: 0;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font: 11px/1.6 var(--font-mono);
  letter-spacing: 0.05em;
}

/* Dark counterpart: a compact capability list inside a media slot */
.product-media-list {
  display: grid;
  align-content: center;
  padding: 38px 34px;
  background: var(--navy);
}

.plate-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(7 27 60 / 12%);
}

.plate-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 17px 0;
  color: #2e4159;
  border-bottom: 1px solid rgba(7 27 60 / 12%);
  font-size: 14px;
  line-height: 1.5;
}

.plate-list span { color: var(--blue); font: 11px var(--font-mono); }

/* Contour motif for detail heroes that have no photograph */
.detail-hero-motif {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 5%;
  width: 430px;
  height: 430px;
  border: 1px solid rgb(104 182 192 / 16%);
  border-radius: 50%;
  transform: translateY(-50%);
}

.detail-hero-motif::before,
.detail-hero-motif::after {
  position: absolute;
  border: 1px solid rgb(104 182 192 / 13%);
  border-radius: 50%;
  content: "";
}

.detail-hero-motif::before { inset: 58px; }
.detail-hero-motif::after { inset: 124px; }

.detail-hero-motif span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  background: var(--blue);
  box-shadow: 0 0 0 8px rgb(10 96 104 / 16%);
}

@media (max-width: 1040px) {
  .detail-hero-motif { right: -12%; opacity: .6; }
}

@media (max-width: 860px) {
  .product-media-graphic { padding: 34px; }
  .detail-hero-motif { display: none; }
}

/* --------------------------------------------------------------------------
   Legal / utility pages
   -------------------------------------------------------------------------- */
.legal { padding-block: 128px 108px; }

.legal h1 {
  margin: 24px 0 0;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.021em;
}

.legal-lede {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.legal-body {
  max-width: 760px;
  margin-top: 62px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
}

.legal-body h2 {
  margin: 44px 0 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p,
.legal-body li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.legal-body p { margin: 14px 0 0; }

.legal-body ul { margin: 14px 0 0; padding-left: 20px; }
.legal-body li { margin-top: 8px; }

.legal-body a { color: var(--blue); }

.legal-meta {
  margin-top: 54px;
  padding-top: 22px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font: 11px var(--font-mono);
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .legal { padding-block: 84px 76px; }
  .legal h1 { font-size: 32px; }
  .legal-body { margin-top: 42px; padding-top: 34px; }
  .legal-body h2 { font-size: 17px; }
}

/* --------------------------------------------------------------------------
   Enquiry form
   The only input on the site, so it stays inside the house language: square
   corners, hairline rules, mono field numbers — no boxes, no shadows, no
   floating labels. Fields read as one more row of the contact block rather
   than as a widget bolted on afterwards.
   -------------------------------------------------------------------------- */
.enquiry {
  background: var(--tint-enquiry);
  border-bottom: 2px solid var(--divider);
}

.enquiry-head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.enquiry h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.021em;
}

.enquiry-note {
  max-width: 46em;
  margin: 20px auto 0;
  color: #4f647c;
  font-size: 18px;
  line-height: 1.8;
}

.enquiry-form {
  max-width: 760px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}

.field {
  margin: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

/* Off-screen, not display:none — bots that honour display:none would skip it,
   and a trap nobody falls into is just dead weight. */
.field-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

.field label em {
  color: var(--blue);
  font-style: normal;
}

/* Group label for the multi-select checkbox block (no single <label for>). */
.field-label {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

.field-hint {
  margin-left: 10px;
  color: var(--muted);
  font: 12px var(--font-mono);
  letter-spacing: 0.04em;
}

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 44px;
}

.field .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}

/* Stop the generic .field input rule (appearance:none + border) bleeding onto
   the checkboxes. Restore the native control explicitly. */
.field .checkbox input {
  -webkit-appearance: checkbox;
  -moz-appearance: checkbox;
  appearance: auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--blue);
  flex: none;
  cursor: pointer;
}

@media (max-width: 600px) {
  .checkbox-group { grid-template-columns: 1fr; }
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  color: var(--ink);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  font: 16px var(--font-sans);
  transition: border-color 180ms ease, background-color 180ms ease;
  appearance: none;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(7 27 60 / 25%);
}

.field select {
  padding-right: 36px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230e6a71' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  cursor: pointer;
}

.field textarea {
  min-height: 140px;
  font: 16px/1.8 var(--font-sans);
  resize: vertical;
}

.field ::placeholder {
  color: #7c8ca3;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-bottom-color: var(--blue);
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--blue);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-bottom-color: #c8452f;
}

.enquiry-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  grid-column: 1 / -1;
  gap: 18px 28px;
  margin-top: 4px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.enquiry-submit .button {
  min-width: 176px;
  letter-spacing: 0.02em;
}

.enquiry-submit .button[disabled] {
  background: #b9c6d8;
  cursor: progress;
}

.enquiry-consent {
  flex: 1 1 320px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.enquiry-consent a {
  color: var(--blue);
}

.enquiry-status {
  flex: 1 0 100%;
  margin: 0;
  font: 13px/1.7 var(--font-mono);
}

.enquiry-status[data-state="ok"] {
  color: var(--blue);
}

.enquiry-status[data-state="error"] {
  color: #c8452f;
}

.enquiry-fallback {
  flex: 1 0 100%;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* ===== News page ===== */
.news-hero { padding: 84px 0 32px; text-align: center; }
.news-hero .section-index { margin: 0 0 16px; }
.news-hero h1 { font-size: clamp(34px, 5vw, 56px); margin: 0 0 18px; letter-spacing: -0.01em; }
.news-lede { max-width: 62ch; margin-inline: auto; color: var(--muted); font-size: 17px; line-height: 1.8; }

.news-list { padding: 26px 0 36px; }
.news-item { display: block; padding: 30px 0; border-top: 1px solid var(--line); }
.news-item:last-child { border-bottom: 1px solid var(--line); }
.news-meta { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 12px; }
.news-date { font: 12px var(--font-mono); letter-spacing: 0.06em; color: var(--muted); }
.news-tag {
  font: 11px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--line);
  padding: 3px 9px;
}
.news-item h2 { margin: 0 0 12px; font-size: clamp(20px, 2.6vw, 27px); line-height: 1.35; }
.news-item h2 a { color: var(--ink); text-decoration: none; }
.news-item h2 a:hover { color: var(--blue); }
.news-summary { margin: 0 0 14px; max-width: 60ch; margin-inline: auto; color: var(--muted); font-size: 15.5px; line-height: 1.8; }
.news-link { font: 13px var(--font-mono); letter-spacing: 0.04em; color: var(--blue); text-decoration: none; }
.news-link:hover { text-decoration: underline; }
.news-foot { display: flex; align-items: center; gap: 26px; padding: 8px 0 84px; }

/* About figure (rewritten company section) */
.about-figure {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 36px;
  background: var(--line);
  border: 1px solid var(--line);
}
.about-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  display: block;
  background: transparent;
}
@media (max-width: 600px) {
  .about-figure { grid-template-columns: 1fr; }
}

/* About key-points strip — highlighted facts under the company copy */
.about-keypoints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 46px auto 0;
  max-width: 940px;
  padding: 0;
  list-style: none;
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-keypoints li {
  flex: 1 1 220px;
  padding: 26px 22px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.about-keypoints li:last-child { border-right: 0; }
.about-keypoints strong {
  display: block;
  color: var(--blue);
  font: 600 44px/1 var(--font-sans);
  letter-spacing: -0.02em;
}
/* The caption under each figure used to be 12px mono — too small next to a
   44px number (user: 除了数字其他的字都很小). */
.about-keypoints span {
  display: block;
  margin-top: 14px;
  color: #45617e;
  font: 17px/1.55 var(--font-sans);
  letter-spacing: 0.005em;
}
@media (max-width: 600px) {
  .about-keypoints li {
    flex-basis: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .about-keypoints li:last-child { border-bottom: 0; }
}

/* ===== Image lightbox (click to enlarge) ===== */
.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  background: rgba(7, 27, 60, 0.94);
}
.lightbox.is-open { display: flex; }
.lightbox-img { max-width: 100%; max-height: 86vh; border: 1px solid rgba(255, 255, 255, 0.25); background: #fff; }
.lightbox-caption {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  color: #cdd9e8;
  font: 12px var(--font-mono);
  letter-spacing: 0.04em;
  padding: 0 20px;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  color: #fff;
  font: 22px var(--font-mono);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.12); }

.enquiry-fallback a {
  color: var(--blue);
}

@media (max-width: 700px) {
  .enquiry-form {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ===== Hero product carousel (home, first section) ===== */
.hero-carousel {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  min-height: clamp(340px, 54vh, 640px);
}

/* soft ground shadow that anchors the floating product */
.hero-ground {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  width: min(640px, 64vw);
  height: 42px;
  background: radial-gradient(50% 50% at 50% 50%, rgb(7 27 60 / 20%), transparent 72%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 800ms ease;
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide img {
  height: clamp(280px, 46vh, 540px);
  width: auto;
  max-width: min(86vw, 1120px);
  object-fit: contain;
  object-position: bottom;
  margin-bottom: 116px;
  filter: drop-shadow(0 26px 22px rgb(7 27 60 / 14%));
}
.hero-slide-cap {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  pointer-events: none;
  max-width: 92vw;
}
.hero-slide-cap .cap-name {
  display: block;
  font-family: var(--font-sans);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-shadow: 0 1px 2px rgb(255 255 255 / 90%), 0 2px 14px rgb(255 255 255 / 75%);
}
.hero-slide-cap .cap-desc {
  display: block;
  margin-top: 5px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--muted);
  text-shadow: 0 1px 8px rgb(255 255 255 / 85%), 0 1px 2px rgb(255 255 255 / 95%);
}
/* Rider cutout is narrow — display it larger so it holds the stage */
.hero-slide--rider img {
  height: clamp(340px, 58vh, 660px);
}
/* side-view companion image shown beside the front view in one slide */
.hero-slide .duo-side {
  height: clamp(190px, 31vh, 360px);
  margin-left: clamp(20px, 3vw, 48px);
  opacity: 0.97;
}
.hero-slide--rider .duo-side {
  height: clamp(230px, 38vh, 440px);
}
.hero-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: rgb(234 241 245 / 70%);
  border: 1px solid var(--line);
  font: 22px/1 var(--font-mono);
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.hero-carousel-nav:hover { background: var(--surface); }
.hero-prev { left: 18px; }
.hero-next { right: 18px; }
.hero-dots {
  position: absolute;
  right: 20px;
  bottom: 22px;
  z-index: 4;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  background: transparent;
  border: 1px solid rgb(7 27 60 / 45%);
  cursor: pointer;
}
.hero-dot.is-active { background: var(--navy); border-color: var(--navy); }

@media (max-width: 760px) {
  .hero-slide img { height: 40vh; margin-bottom: 58px; }
  .hero-slide .duo-side { height: 24vh; }
  .hero-ground { bottom: 42px; width: 74vw; }
  .hero-carousel-nav { display: none; }
  .hero-slide-cap { font-size: 10px; max-width: 86vw; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 520px) {
  .hero-slide .duo-side { display: none; }
}

/* ===== Product showcase — three equal product photos (home) ===== */
.product-showcase {
  display: grid;
  /* auto-fit: five product cards fill every row with no empty cells */
  grid-template-columns: repeat(auto-fit, minmax(216px, 1fr));
  gap: 1px;
  width: min(calc(100% - 72px), var(--page-width));
  margin: 0 auto 96px;
  background: var(--line);
  border: 1px solid var(--line);
}
.showcase-card {
  display: block;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.showcase-media {
  overflow: hidden;
  display: block;
  padding: 0;
  background: transparent;
}
.showcase-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 16px 16px rgb(7 27 60 / 12%));
  transition: transform 700ms cubic-bezier(.2, .7, .2, 1);
}
.showcase-card:hover .showcase-media img { transform: scale(1.04); }
.showcase-body { padding: 22px 24px 26px; text-align: center; }
.showcase-index { margin: 0; color: var(--blue); font: 11px/1.4 var(--font-mono); letter-spacing: 0.06em; }
.showcase-body h3 { margin: 12px 0 6px; font-size: 26px; font-weight: 400; letter-spacing: -0.02em; }
.showcase-type { margin: 0; color: var(--muted); font-size: 15px; }

@media (max-width: 860px) {
  .product-showcase {
    grid-template-columns: 1fr;
    width: min(calc(100% - 40px), var(--page-width));
    margin-bottom: 64px;
  }
  .showcase-media { aspect-ratio: 1 / 1; }
}

/* ===== News — image/video + short caption ===== */
.news-item {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) 1.08fr;
  gap: 28px 40px;
  align-items: start;
}
.news-item:last-child { border-bottom: 1px solid var(--line); }
.news-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eef3f9;
  border: 1px solid var(--line);
}
.news-media img,
.news-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-media video { background: #000; }
.news-body { align-self: center; text-align: center; }
.news-summary { max-width: 60ch; }

@media (max-width: 760px) {
  .news-item { grid-template-columns: 1fr; gap: 16px; }
}
