/* Homepage Visual V2 design system. Pages that reuse it load this file and add body class "hx-page";
   /index.html uses "home". hx- component styles are shared, page-specific styles live in their own file. */

.home,
.hx-page {
  --hx-dark: #141619;
  --hx-dark-2: #1b1e23;
  --hx-dark-rule: rgba(255, 255, 255, 0.12);
  --hx-dark-muted: #a9afb8;
  --hx-green-soft: #8fb39a;
  --hx-rule: #d7d2c9;
  --hx-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --hx-grid-dark: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  --hx-grid-light: linear-gradient(rgba(28, 31, 36, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 31, 36, 0.045) 1px, transparent 1px);
  background: var(--bg);
}
.home main, .hx-page main { overflow-x: clip; }
.home .site-header, .hx-page .site-header { border-bottom-color: rgba(255, 255, 255, 0.06); }
.home .site-footer, .hx-page .site-footer { border-top: 1px solid rgba(255, 255, 255, 0.07); }

/* ---------- shared homepage primitives ---------- */

.hx-kicker,
.hx-eyebrow {
  margin: 0 0 18px;
  font-family: var(--hx-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hx-kicker--green { color: var(--green); }
.hx-kicker--light, .hx-eyebrow { color: var(--hx-dark-muted); }
.hx-eyebrow::before,
.hx-kicker::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin-right: 12px;
  vertical-align: middle;
  background: currentColor;
  opacity: 0.7;
}

.hx-h2 {
  margin: 0;
  font-size: clamp(30px, 3.7vw, 54px);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 17em;
}
.hx-h2--md { font-size: clamp(28px, 3vw, 42px); }
.hx-intro {
  margin: 20px 0 0;
  max-width: 40em;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}
.hx-section-head { margin-bottom: clamp(40px, 5vw, 72px); }
.hx-section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 32px 64px;
  align-items: end;
}
.hx-section-head--split .hx-intro { margin: 0; }

.hx-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.hx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.hx-btn--primary { background: var(--cta); color: #fff; }
.hx-btn--primary:hover { background: var(--cta-hover); }
.hx-btn--line { color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.hx-btn--line:hover { border-color: #fff; }
.hx-btn--line span { transition: transform 0.2s ease; }
.hx-btn--line:hover span { transform: translateX(4px); }

.hx-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
}
.hx-arrow-link::after {
  content: "→";
  transition: transform 0.2s ease;
}
.hx-arrow-link:hover::after,
a:hover > .hx-arrow-link::after { transform: translateX(4px); }

/* Media slots: drop a real .jpg/.webp/<video> in place of the schematic SVG; the frame stays. */
.hx-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background-color: var(--hx-dark-2);
  background-image: var(--hx-grid-dark);
  background-size: 48px 48px;
  --c: rgba(255, 255, 255, 0.35);
}
.hx-media::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) left top / 18px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left top / 1px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 18px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 1px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 18px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 1px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 18px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 1px 18px no-repeat;
}
.hx-media img,
.hx-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hx-media img[src$=".svg"] { object-fit: contain; padding: 7% 8%; }
.hx-media:has(> img:not([src$=".svg"]))::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(20, 22, 25, 0.6) 0%, rgba(20, 22, 25, 0) 32%);
}
.hx-media--light {
  background-color: #eeeae3;
  background-image: var(--hx-grid-light);
  --c: rgba(28, 31, 36, 0.35);
}
.hx-media--light:has(> img)::after { display: none; }
.hx-media--light .hx-slot-tag { color: rgba(28, 31, 36, 0.5); }
.hx-slot-tag {
  position: absolute;
  z-index: 2;
  left: 28px;
  bottom: 24px;
  font-family: var(--hx-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

/* ---------- 01 Hero ---------- */

.hx-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(600px, calc(100vh - var(--nav-h)), 920px);
  background-color: var(--hx-dark);
  background-image: var(--hx-grid-dark);
  background-size: 80px 80px;
  background-position: center top;
  color: #fff;
  overflow: hidden;
}
.hx-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--hx-dark) 0%, rgba(20, 22, 25, 0.92) 34%, rgba(20, 22, 25, 0.2) 72%, rgba(20, 22, 25, 0) 100%),
    linear-gradient(0deg, var(--hx-dark) 0%, rgba(20, 22, 25, 0) 26%);
}
.hx-hero__media.hx-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(66%, 1100px);
  background: none;
}
.hx-hero__media.hx-media::before,
.hx-hero__media.hx-media::after { display: none; }
.hx-hero__media img:not([src$=".svg"]) { object-position: 60% 55%; }
.hx-hero__media img[src$=".svg"] { object-position: 100% 100%; padding: 22% 3% 118px 0; }
.hx-hero__media .hx-slot-tag { left: auto; right: 28px; bottom: 112px; }

.hx-hero__inner {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 9vh, 120px) 0 clamp(40px, 6vh, 72px);
}
.hx-hero__title {
  margin: 0 0 28px;
  font-size: clamp(40px, 5.2vw, 78px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 15.5em;
}
.hx-hero__title span { display: block; }
.hx-br-wide { display: none; }
@media (min-width: 961px) { .hx-br-wide { display: inline; } }
.hx-hero:has(.hx-hero__media > img:not([src$=".svg"])) .hx-hero__title,
.hx-hero:has(.hx-hero__media > img:not([src$=".svg"])) .hx-hero__lead { text-shadow: 0 2px 28px rgba(10, 11, 13, 0.55); }
.hx-hero:has(.hx-hero__media > img:not([src$=".svg"]))::after {
  background:
    linear-gradient(90deg, var(--hx-dark) 0%, rgba(20, 22, 25, 0.94) 36%, rgba(20, 22, 25, 0.6) 56%, rgba(20, 22, 25, 0.12) 80%, rgba(20, 22, 25, 0) 100%),
    linear-gradient(0deg, var(--hx-dark) 0%, rgba(20, 22, 25, 0) 24%);
}
.hx-hero__title span + span { color: #d9dde2; }
.hx-hero__lead {
  margin: 0 0 40px;
  max-width: 34em;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--hx-dark-muted);
}

.hx-hero__foot {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 26px;
  border-top: 1px solid var(--hx-dark-rule);
}
.hx-hero__index {
  display: flex;
  gap: clamp(20px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--hx-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hx-dark-muted);
}
.hx-hero__index span { color: var(--hx-green-soft); margin-right: 10px; }
.hx-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: var(--hx-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hx-dark-muted);
}
.hx-scroll:hover { color: #fff; }
.hx-scroll__line {
  position: relative;
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
.hx-scroll__line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: #fff;
  animation: hx-scroll 2.2s ease-in-out infinite;
}
@keyframes hx-scroll {
  0% { top: -40%; }
  100% { top: 100%; }
}

/* ---------- 02 Material transformation ---------- */

.hx-transform { padding: clamp(80px, 10vw, 150px) 0 clamp(80px, 9vw, 130px); }
.hx-transform__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 48px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.hx-transform__head .hx-kicker { grid-column: 1 / -1; margin: 0; }
.hx-transform__head .hx-h2 { font-size: clamp(36px, 5vw, 72px); }
.hx-value-line {
  margin: 0 0 10px;
  max-width: 17em;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--green);
}

.hx-stages {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 0 72px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}
.hx-stage { position: relative; }
.hx-stage__label {
  margin: 0 0 18px;
  font-family: var(--hx-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hx-stage__label span { color: var(--green); margin-right: 10px; }
.hx-stage__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.hx-stage__list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--hx-rule);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 550;
  letter-spacing: -0.01em;
}
.hx-stage--in .hx-stage__list li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 14px;
  vertical-align: 0.15em;
  background: var(--green);
}
.hx-stage--out .hx-stage__list a { display: flex; justify-content: space-between; gap: 12px; }
.hx-stage--out .hx-stage__list a::after { content: "→"; color: var(--muted); transition: transform 0.2s ease; }
.hx-stage--out .hx-stage__list a:hover::after { transform: translateX(4px); color: var(--ink); }

.hx-stage--in::after,
.hx-stage--core::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -52px;
  width: 32px;
  height: 1px;
  background: var(--ink);
}
.hx-stage--in::before,
.hx-stage--core::before {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  right: -52px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  transform: rotate(45deg);
}

.hx-stage--core {
  padding: clamp(32px, 3.4vw, 52px);
  background-color: var(--hx-dark);
  background-image: var(--hx-grid-dark);
  background-size: 40px 40px;
  color: #fff;
}
.hx-stage--core .hx-stage__label { color: var(--hx-dark-muted); margin-bottom: 28px; }
.hx-stage--core .hx-stage__label span { color: var(--cta); }
.hx-stage__steps { margin: 0; padding: 0; list-style: none; }
.hx-stage__steps li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--hx-dark-rule);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hx-stage__steps li:last-child { color: #fff; }
.hx-stage__steps li:not(:last-child) { color: #cdd1d6; }
.hx-stage__steps span {
  font-family: var(--hx-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--hx-dark-muted);
}
.hx-stage__steps li:last-child span { color: var(--cta); }

/* ---------- 03 Industrial process line ---------- */

.hx-process {
  padding: clamp(80px, 9vw, 136px) 0;
  background-color: #eeeae3;
  background-image: var(--hx-grid-light);
  background-size: 40px 40px;
  border-top: 1px solid var(--hx-rule);
  border-bottom: 1px solid var(--hx-rule);
}
.hx-line { position: relative; }
.hx-line__groups {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0 10px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.hx-line__groups li {
  grid-column: span var(--span);
  position: relative;
  padding-top: 12px;
  border-top: 1px solid var(--steel);
  font-family: var(--hx-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.hx-line__groups li::before,
.hx-line__groups li::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 1px;
  height: 9px;
  background: var(--steel);
}
.hx-line__groups li::before { left: 0; }
.hx-line__groups li::after { right: 0; }

.hx-line__nodes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hx-line__nodes::before {
  content: "";
  position: absolute;
  left: 0;
  right: 14px;
  top: 37px;
  height: 1px;
  background: var(--ink);
}
.hx-line__nodes::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 33px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  transform: rotate(45deg);
}
.hx-line__nodes > li { position: relative; min-width: 0; }
.hx-node {
  display: block;
  height: 100%;
  padding: 0 12px 20px 0;
  color: inherit;
}
.hx-node__n {
  display: block;
  height: 16px;
  margin-bottom: 14px;
  font-family: var(--hx-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.hx-node__mark {
  position: relative;
  z-index: 1;
  display: block;
  width: 14px;
  height: 14px;
  margin-bottom: 22px;
  background: #eeeae3;
  border: 1px solid var(--ink);
  transition: background-color 0.2s ease;
}
.hx-node strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.hx-node__note {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
a.hx-node:hover .hx-node__mark { background: var(--ink); }
a.hx-node:hover strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.hx-line__nodes > li.is-core .hx-node__n { color: var(--cta); font-weight: 700; }
.hx-line__nodes > li.is-core .hx-node__mark {
  width: 22px;
  height: 22px;
  margin: -4px 0 18px -4px;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: inset 0 0 0 5px var(--ink), inset 0 0 0 11px var(--cta);
}
.hx-line__nodes > li.is-core strong { font-size: 19px; }
.hx-node__tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 8px;
  font-family: var(--hx-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
}

/* ---------- 04 Flagship solution ---------- */

.hx-flagship {
  padding: clamp(88px, 10vw, 150px) 0 clamp(64px, 7vw, 104px);
  background: var(--hx-dark);
  color: #fff;
}
.hx-flagship__main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.hx-flagship__media { aspect-ratio: 16 / 11; border: 1px solid rgba(255, 255, 255, 0.06); }
.hx-flagship__title {
  margin: 0 0 20px;
  font-size: clamp(34px, 4.2vw, 60px);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.hx-flagship__lead { margin: 0 0 32px; font-size: 19px; line-height: 1.5; color: var(--hx-dark-muted); }
.hx-flagship__stages {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin: 0 0 40px;
  padding: 18px 0;
  list-style: none;
  border-top: 1px solid var(--hx-dark-rule);
  border-bottom: 1px solid var(--hx-dark-rule);
  font-family: var(--hx-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c3c8cf;
}
.hx-flagship__stages li:not(:last-child)::after { content: "→"; margin: 0 12px; color: rgba(255, 255, 255, 0.3); }
.hx-flagship__stages li.is-core { color: var(--cta); font-weight: 700; }

.hx-secondary { margin-top: clamp(64px, 7vw, 104px); }
.hx-secondary__label {
  margin: 0 0 18px;
  font-family: var(--hx-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hx-dark-muted);
}
.hx-secondary__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hx-secondary__list a {
  position: relative;
  display: block;
  height: 100%;
  padding: 22px 32px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.2s ease;
}
.hx-secondary__list a:hover { border-top-color: var(--cta); }
.hx-secondary__list strong { display: block; margin-bottom: 8px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.hx-secondary__list span { display: block; font-size: 14px; line-height: 1.5; color: var(--hx-dark-muted); }
.hx-secondary__list em {
  position: absolute;
  top: 22px;
  right: 4px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.45);
  transition: transform 0.2s ease, color 0.2s ease;
}
.hx-secondary__list a:hover em { transform: translateX(4px); color: #fff; }
.hx-secondary__list .hx-secondary__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  margin: 0 0 18px;
  overflow: hidden;
  background: #eeeae3;
}
.hx-secondary__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.hx-secondary__list a:hover .hx-secondary__thumb img { transform: scale(1.03); }
.hx-secondary__thumb--pending {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  background: transparent;
  font-family: var(--hx-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--hx-dark-muted);
}
.hx-secondary__list a:has(.hx-secondary__thumb) em { top: auto; bottom: 8px; }

/* ---------- 05 Equipment system ---------- */

.hx-equipment { padding: clamp(88px, 9vw, 136px) 0; }
.hx-equipment__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.hx-feature { display: block; margin-top: 44px; color: inherit; }
.hx-feature__media { aspect-ratio: 4 / 3; margin-bottom: 24px; }
.hx-feature__media:has(> img[src*="-square."]) { aspect-ratio: 1 / 1; }
.hx-feature__meta {
  display: block;
  margin-bottom: 10px;
  font-family: var(--hx-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cta);
}
.hx-feature__name { display: block; font-size: clamp(24px, 2.2vw, 30px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
.hx-feature__text { display: block; margin: 8px 0 6px; font-size: 16px; color: var(--muted); }

.hx-index { padding-top: 6px; }
.hx-index__group + .hx-index__group { margin-top: 36px; }
.hx-index__stage {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.hx-index__stage span {
  font-family: var(--hx-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}
.hx-index__row {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.1fr) 24px;
  gap: 16px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--hx-rule);
  color: inherit;
  transition: background-color 0.2s ease;
}
.hx-index__row::after {
  content: "→";
  justify-self: end;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}
.hx-index__row:hover { background: rgba(28, 31, 36, 0.03); }
.hx-index__row:hover::after { transform: translateX(4px); color: var(--ink); }
.hx-index__n { font-family: var(--hx-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.hx-index__row strong { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.hx-index__text { font-size: 14px; line-height: 1.5; color: var(--muted); }
.hx-index__row.is-core .hx-index__n { color: var(--cta); font-weight: 700; }
.hx-index__row:has(.hx-index__thumb) {
  grid-template-columns: 36px 128px minmax(0, 1fr) minmax(0, 1.1fr) 24px;
  align-items: center;
  padding: 14px 0;
}
.hx-index__thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eeeae3;
}
.hx-index__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hx-index__thumb--pending {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--hx-rule);
  background: transparent;
  font-family: var(--hx-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}
.hx-index__all { margin-top: 28px; }

/* ---------- 06 Input / transformation / output ---------- */

.hx-io {
  padding: clamp(80px, 8vw, 120px) 0;
  background: var(--surface);
  border-top: 1px solid var(--hx-rule);
  border-bottom: 1px solid var(--hx-rule);
}
.hx-io__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.46fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  margin-bottom: 32px;
}
.hx-io__media { aspect-ratio: 4 / 3; margin-bottom: 24px; }
.hx-io__label {
  margin: 0 0 12px;
  font-family: var(--hx-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hx-io__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hx-io__list li { padding: 12px 0; border-top: 1px solid var(--hx-rule); font-size: 17px; font-weight: 550; }
.hx-io__list a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.hx-io__core {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0 28px;
  padding: 32px 20px;
  background: var(--hx-dark);
  color: #fff;
}
.hx-io__core .hx-io__label { color: var(--hx-dark-muted); }
.hx-io__core-name { margin: 0; font-size: clamp(20px, 1.8vw, 26px); font-weight: 650; line-height: 1.2; letter-spacing: -0.02em; }
.hx-io__arrow {
  position: relative;
  display: block;
  width: 64px;
  height: 1px;
  margin-top: 28px;
  background: var(--cta);
}
.hx-io__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--cta);
  border-right: 1px solid var(--cta);
  transform: rotate(45deg);
}

/* ---------- 06b Applications & innovation entry ---------- */

.hx-explore {
  padding: clamp(72px, 7vw, 104px) 0;
  background-color: var(--hx-dark);
  background-image: var(--hx-grid-dark);
  background-size: 80px 80px;
  color: #fff;
}
.hx-explore__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
  gap: 48px clamp(48px, 6vw, 96px);
  align-items: center;
}
.hx-explore__title {
  margin: 0 0 18px;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hx-explore__text { margin: 0 0 32px; max-width: 28em; font-size: 16px; line-height: 1.6; color: var(--hx-dark-muted); }
.hx-explore__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--hx-dark-rule);
}
.hx-explore__list a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 8px 28px 12px;
  border-right: 1px solid var(--hx-dark-rule);
  transition: background-color 0.2s ease;
}
.hx-explore__list a:hover { background: rgba(255, 255, 255, 0.04); }
.hx-explore__glyph {
  width: 64px;
  height: 40px;
  margin-bottom: 36px;
  fill: none;
  stroke: #e6e9ec;
  stroke-opacity: 0.75;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hx-explore__tag {
  margin-bottom: 10px;
  font-family: var(--hx-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hx-green-soft);
}
.hx-explore__list strong { margin-bottom: 8px; font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.hx-explore__desc { font-size: 14px; line-height: 1.5; color: var(--hx-dark-muted); }
.hx-explore__list a strong::after { content: " →"; color: rgba(255, 255, 255, 0.45); transition: color 0.2s ease; }
.hx-explore__list a:hover strong::after { color: var(--cta); }

/* ---------- 07 Engineering capability ---------- */

.hx-capability { padding: clamp(88px, 9vw, 136px) 0; }
.hx-principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hx-principles li { padding-top: 22px; border-top: 2px solid var(--ink); }
.hx-principles__n { display: block; margin-bottom: 28px; font-family: var(--hx-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--muted); }
.hx-principles h3 { margin: 0 0 10px; font-size: 19px; font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; }
.hx-principles p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

.hx-factory {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(72px, 8vw, 120px);
}
.hx-factory__media { aspect-ratio: 16 / 10; }
.hx-factory__title { margin: 0 0 28px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 650; line-height: 1.1; letter-spacing: -0.02em; }
.hx-factory__index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.hx-factory__index li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--hx-rule); font-size: 16px; font-weight: 550; }
.hx-factory__index span { font-family: var(--hx-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }
.hx-factory__strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}
.hx-factory__shot { aspect-ratio: 4 / 3; margin: 0; }
.hx-factory__shot .hx-slot-tag { left: 10px; bottom: 8px; font-size: 9.5px; }
.hx-factory__strip p { display: flex; gap: 10px; align-items: baseline; margin: 12px 0 0; font-size: 15px; font-weight: 550; }
.hx-factory__strip p span { font-family: var(--hx-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }

/* ---------- 08 Knowledge strip ---------- */

.hx-knowledge { background: var(--surface); border-top: 1px solid var(--hx-rule); border-bottom: 1px solid var(--hx-rule); }
.hx-knowledge__inner { display: flex; align-items: center; gap: 16px 40px; padding: 26px 0; }
.hx-knowledge__label {
  flex: 0 0 auto;
  margin: 0;
  font-family: var(--hx-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.hx-knowledge__text { flex: 1 1 auto; margin: 0; font-size: 16px; color: var(--muted); }

/* ---------- 09 Project inquiry ---------- */

.hx-inquiry {
  padding: clamp(96px, 11vw, 160px) 0;
  background-color: var(--hx-dark);
  background-image: var(--hx-grid-dark);
  background-size: 80px 80px;
  color: #fff;
}
.hx-inquiry__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 56px clamp(48px, 6vw, 104px);
  align-items: end;
}
.hx-inquiry__title {
  margin: 0 0 40px;
  max-width: 12em;
  font-size: clamp(36px, 4.8vw, 68px);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hx-inquiry__prep-label {
  margin: 0 0 8px;
  font-family: var(--hx-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hx-dark-muted);
}
.hx-inquiry__prep ol { margin: 0; padding: 0; list-style: none; }
.hx-inquiry__prep li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--hx-dark-rule);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 550;
}
.hx-inquiry__prep li span { font-family: var(--hx-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--hx-green-soft); }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .hx-hero__media.hx-media { width: 74%; opacity: 0.75; }
  .hx-stages { gap: 0 56px; }
  .hx-stage--in::after, .hx-stage--core::after { right: -44px; width: 28px; }
  .hx-stage--in::before, .hx-stage--core::before { right: -44px; }
  .hx-node strong { font-size: 14px; }
  .hx-node__note { font-size: 12px; }
}

@media (max-width: 960px) {
  .hx-section-head--split,
  .hx-transform__head { grid-template-columns: 1fr; align-items: start; }
  .hx-section-head--split .hx-intro { margin-top: 0; }
  .hx-value-line { margin: 0; }

  .hx-hero { min-height: clamp(600px, calc(100vh - var(--nav-h)), 780px); }
  .hx-hero__index { display: none; }
  .hx-hero__foot { justify-content: flex-end; }

  .hx-stages { grid-template-columns: 1fr; gap: 56px; }
  .hx-stage--in::after, .hx-stage--core::after {
    top: auto;
    bottom: -44px;
    right: auto;
    left: 24px;
    width: 1px;
    height: 32px;
  }
  .hx-stage--in::before, .hx-stage--core::before {
    top: auto;
    bottom: -44px;
    right: auto;
    left: 20px;
    transform: rotate(135deg);
  }

  .hx-line__groups { display: none; }
  .hx-line__nodes { grid-template-columns: 1fr; max-width: 620px; }
  .hx-line__nodes::before { left: 6px; right: auto; top: 8px; bottom: 14px; width: 1px; height: auto; }
  .hx-line__nodes::after { left: 2px; right: auto; top: auto; bottom: 4px; transform: rotate(135deg); }
  .hx-line__nodes > li[data-group]::before {
    content: attr(data-group);
    display: block;
    padding: 22px 0 10px 40px;
    font-family: var(--hx-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green);
  }
  .hx-line__nodes > li:first-child::before { padding-top: 0; }
  .hx-node {
    position: relative;
    height: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    padding: 14px 0 14px 40px;
  }
  .hx-node__n { grid-column: 1; margin: 0; height: auto; line-height: 1.5; }
  .hx-node strong { grid-column: 2; font-size: 17px; }
  .hx-node__note, .hx-node__tag { grid-column: 2; }
  .hx-node__tag { justify-self: start; }
  .hx-node__mark { position: absolute; left: 0; top: 17px; margin: 0; }
  .hx-line__nodes > li.is-core .hx-node {
    margin: 6px 0;
    padding-top: 18px;
    padding-bottom: 18px;
    background: var(--surface);
    box-shadow: inset 3px 0 0 var(--cta);
  }
  .hx-line__nodes > li.is-core .hx-node__mark { left: -4px; top: 18px; margin: 0; }
  .hx-line__nodes > li.is-core strong { font-size: 20px; }

  .hx-flagship__main { grid-template-columns: 1fr; }
  .hx-secondary__list { grid-template-columns: 1fr 1fr; gap: 0 28px; }

  .hx-equipment__grid { grid-template-columns: 1fr; }

  .hx-io__grid { grid-template-columns: 1fr; gap: 0; }
  .hx-io__core { margin: 28px 0; padding: 26px 20px; }
  .hx-io__arrow { width: 1px; height: 36px; margin-top: 18px; }
  .hx-io__arrow::after { right: -4px; top: auto; bottom: 0; transform: rotate(135deg); }
  .hx-io__col { max-width: 620px; }

  .hx-explore__grid { grid-template-columns: 1fr; }

  .hx-principles { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .hx-factory { grid-template-columns: 1fr; }
  .hx-inquiry__grid { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 760px) {
  .hx-hero { min-height: max(620px, calc(100svh - var(--nav-h))); }
  .hx-hero::after {
    background:
      linear-gradient(180deg, var(--hx-dark) 0%, rgba(20, 22, 25, 0.88) 55%, rgba(20, 22, 25, 0.35) 100%),
      linear-gradient(0deg, var(--hx-dark) 0%, rgba(20, 22, 25, 0) 30%);
  }
  .hx-hero__media.hx-media { top: auto; height: 46%; width: 100%; opacity: 0.8; }
  .hx-hero__media.hx-media:has(> img:not([src$=".svg"])) { opacity: 1; }
  .hx-hero:has(.hx-hero__media > img:not([src$=".svg"]))::after {
    background:
      linear-gradient(180deg, var(--hx-dark) 0%, rgba(20, 22, 25, 0.9) 50%, rgba(20, 22, 25, 0.25) 68%, rgba(20, 22, 25, 0.1) 100%),
      linear-gradient(0deg, var(--hx-dark) 0%, rgba(20, 22, 25, 0) 14%);
  }
  .hx-hero__media img[src$=".svg"] { object-position: 70% 100%; padding: 0 0 22% 0; }
  .hx-hero__media .hx-slot-tag { display: none; }
  .hx-hero__inner { justify-content: flex-start; padding: 48px 0 32px; }
  .hx-hero__title { font-size: clamp(36px, 10.4vw, 48px); line-height: 1.04; margin-bottom: 22px; }
  .hx-hero__lead { font-size: 17px; margin-bottom: 32px; }
  .hx-hero .hx-actions { flex-direction: column; align-items: stretch; }
  .hx-inquiry .hx-actions { flex-direction: column; align-items: stretch; }
  .hx-hero__index { display: none; }
  .hx-hero__foot { justify-content: flex-start; padding: 14px 0 18px; }

  .hx-intro { font-size: 16px; }
  .hx-stage__list li { font-size: 19px; }
  .hx-stage__steps li { font-size: 22px; padding: 14px 0; }

  .hx-flagship__lead { font-size: 17px; }
  .hx-flagship__main .hx-btn { width: 100%; }
  .hx-secondary__list { grid-template-columns: 1fr; }
  .hx-secondary__list a { padding: 18px 32px 18px 0; }
  .hx-secondary__list em { top: 18px; }

  .hx-index__row { grid-template-columns: 36px minmax(0, 1fr) 20px; row-gap: 4px; padding: 16px 0; }
  .hx-index__text { grid-column: 2; grid-row: 2; }
  .hx-index__row::after { grid-column: 3; grid-row: 1; }
  .hx-index__row:has(.hx-index__thumb) { grid-template-columns: 28px 96px minmax(0, 1fr) 20px; column-gap: 14px; }
  .hx-index__row:has(.hx-index__thumb) .hx-index__thumb { grid-column: 2; grid-row: 1 / span 2; }
  .hx-index__row:has(.hx-index__thumb) strong { grid-column: 3; grid-row: 1; }
  .hx-index__row:has(.hx-index__thumb) .hx-index__text { grid-column: 3; grid-row: 2; }
  .hx-index__row:has(.hx-index__thumb)::after { grid-column: 4; grid-row: 1; }

  .hx-io__list li { font-size: 16px; }

  .hx-explore .hx-btn { width: 100%; }
  .hx-explore__list { grid-template-columns: 1fr; border-left: 0; border-top: 1px solid var(--hx-dark-rule); }
  .hx-explore__list a {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 16px;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--hx-dark-rule);
  }
  .hx-explore__glyph { grid-row: 1 / span 3; width: 56px; height: 35px; margin: 2px 0 0; }
  .hx-explore__tag, .hx-explore__list strong, .hx-explore__desc { grid-column: 2; }
  .hx-explore__tag { margin-bottom: 6px; }
  .hx-explore__list strong { margin-bottom: 4px; }
  .hx-principles { grid-template-columns: 1fr; gap: 32px; }
  .hx-principles__n { margin-bottom: 14px; }
  .hx-factory__index { grid-template-columns: 1fr; }
  .hx-factory__strip { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .hx-factory__strip p { font-size: 14px; margin-top: 10px; }
  .hx-secondary__list a:has(.hx-secondary__thumb) { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; align-content: start; }
  .hx-secondary__list .hx-secondary__thumb { grid-row: 1 / span 2; margin: 0; }
  .hx-secondary__list a:has(.hx-secondary__thumb) strong { grid-column: 2; margin-bottom: 4px; }
  .hx-secondary__list a:has(.hx-secondary__thumb) > span:not(.hx-secondary__thumb) { grid-column: 2; }
  .hx-secondary__list a:has(.hx-secondary__thumb) em { top: 18px; bottom: auto; }

  .hx-knowledge__inner { flex-direction: column; align-items: flex-start; gap: 6px; padding: 24px 0 16px; }
  .hx-inquiry__title { margin-bottom: 32px; }

  .home .footer-grid, .hx-page .footer-grid { gap: 32px; }
  .home .site-footer a, .hx-page .site-footer a { padding: 9px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hx-scroll__line::after { animation: none; top: 30%; }
  .hx-btn, .hx-arrow-link::after, .hx-index__row, .hx-secondary__list a, .hx-explore__list a { transition: none; }
}
