/* Pixel-fidelity layer for the approved 1536 × 1024 composition. */

.reference-header {
  display: grid;
  grid-template-columns: 17.8% minmax(180px, 1fr) auto auto;
  gap: 34px;
  min-height: 52px;
  height: 52px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #080808;
}

.reference-header.is-scrolled {
  min-height: 52px;
  height: 52px;
  background: rgba(8, 8, 8, 0.94);
}

.reference-header .brand {
  position: absolute;
  left: 20.2%;
  grid-column: auto;
  justify-self: start;
  width: 142px;
}

.reference-header .desktop-nav {
  grid-column: 3;
  gap: 28px;
  font-size: 0.62rem;
}

.reference-header .header-cta {
  grid-column: 4;
  min-width: 194px;
  padding: 7px 18px;
  border: 1px solid var(--orange);
  color: var(--orange);
  text-align: center;
  text-transform: uppercase;
}

.reference-header .header-cta::after {
  display: none;
}

.reference-hero {
  position: relative;
  display: grid;
  grid-template-columns: 17.8% 52% 30.2%;
  width: min(1536px, 100%);
  height: 596px;
  margin: 52px auto 0;
  overflow: visible;
  background: var(--black);
}

.fit-spine {
  position: absolute;
  z-index: 200;
  top: -24px;
  left: 1.3%;
  width: 16.5%;
  min-width: 210px;
  max-width: 254px;
  height: 670px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 14px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #202020 0%, #101010 58%, #181818 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 18px 0 30px rgba(255, 255, 255, 0.02),
    0 12px 24px rgba(0, 0, 0, 0.38),
    5px 6px 0 rgba(0, 0, 0, 0.22);
}

.fit-spine::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
  opacity: 0.55;
}

.fit-spine > img {
  position: absolute;
  top: 66px;
  left: 50%;
  width: 74%;
  transform: translateX(-50%);
}

.fit-spine > p {
  position: absolute;
  top: 112px;
  right: 18px;
  left: 18px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--display);
  font-size: 0.69rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.spine-handle {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 74px;
  height: 14px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: #080808;
  box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.9);
}

.spine-rivet {
  position: absolute;
  z-index: 2;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  background: #111;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.18);
}

.spine-rivet--one { top: 8px; left: 8px; }
.spine-rivet--two { right: 8px; bottom: 8px; }

.spine-rule {
  position: absolute;
  top: 154px;
  right: 18px;
  left: 18px;
  height: 1px;
  background: var(--orange);
}

.spine-meta {
  position: absolute;
  top: 177px;
  left: 16px;
  padding: 8px 5px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  font-family: var(--display);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.spine-side {
  position: absolute;
  top: 316px;
  left: 11px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.spine-name {
  position: absolute;
  top: 360px;
  left: 48%;
  display: flex;
  gap: 18px;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-family: var(--display);
  font-size: clamp(5rem, 8.7vw, 8.2rem);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.spine-name span { color: var(--white); }
.spine-name em { color: var(--orange); font-style: normal; }

.spine-code {
  position: absolute;
  bottom: 64px;
  left: 16px;
  overflow: hidden;
  width: 28px;
  color: var(--white);
  font-size: 0.67rem;
  line-height: 0.7;
  letter-spacing: -0.14em;
  word-break: break-all;
}

.fit-spine small {
  position: absolute;
  right: 18px;
  bottom: 32px;
  left: 54px;
  color: var(--white);
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference-photo {
  position: relative;
  z-index: 1;
  grid-column: 2;
  height: 596px;
  overflow: hidden;
  background: #111;
}

.reference-photo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 56%;
}

.photo-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.18), transparent 34%, rgba(8, 8, 8, 0.08)),
    linear-gradient(0deg, rgba(8, 8, 8, 0.4), transparent 42%);
}

.reference-photo .media-disclosure {
  top: auto;
  bottom: 12px;
  left: 18px;
  background: rgba(8, 8, 8, 0.58);
  color: rgba(255, 255, 255, 0.62);
}

.diagnostic-route {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.diagnostic-route path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
  stroke-dasharray: 1300;
  stroke-dashoffset: 1300;
  animation: diagnostic-draw 1.6s 0.25s var(--ease-out) forwards;
}

.diagnostic-route circle {
  fill: #080808;
  stroke: var(--orange);
  stroke-width: 5;
  vector-effect: non-scaling-stroke;
}

@keyframes diagnostic-draw { to { stroke-dashoffset: 0; } }

.route-label {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  padding-left: 18px;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(0.58rem, 0.72vw, 0.72rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 2px 4px var(--black);
}

.route-label--one { top: 14%; left: 17%; }
.route-label--two { top: 38%; left: 40%; }
.route-label--three { top: 58%; left: 49%; }
.route-label--four { top: 77%; left: 63%; }

.reference-message {
  position: relative;
  grid-column: 3;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  height: 596px;
  padding: 50px clamp(30px, 3.7vw, 58px) 34px;
  background: var(--black);
}

.reference-index {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reference-message h1 {
  max-width: none;
  margin: 0;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(3rem, 3.7vw, 3.55rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.reference-message h1 span,
.reference-message h1 em {
  display: block;
  white-space: nowrap;
}

.reference-message h1 em {
  color: var(--white);
  font-style: normal;
}

.reference-message h1 em::after {
  content: ".";
  color: var(--orange);
}

.reference-dash {
  width: 44px;
  height: 3px;
  margin: 26px 0 20px;
  background: var(--orange);
}

.reference-message > p:not(.reference-index) {
  max-width: 34ch;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.82rem, 1vw, 1rem);
  line-height: 1.55;
}

.reference-message .button {
  width: min(100%, 280px);
}

.reference-regions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.engineering-fold {
  position: relative;
  display: grid;
  grid-template-columns: 52% 48%;
  width: min(1536px, 100%);
  height: 376px;
  margin-inline: auto;
  overflow: hidden;
  background: #f2f1ed;
  color: var(--black);
}

.engineering-copy {
  position: absolute;
  z-index: 4;
  top: 102px;
  left: 3.1%;
  width: 116px;
}

.engineering-copy strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.04;
  text-transform: uppercase;
}

.engineering-copy > span {
  display: block;
  width: 22px;
  height: 3px;
  margin: 13px 0;
  background: var(--orange);
}

.engineering-copy p {
  margin: 0;
  font-family: var(--display);
  font-size: 0.72rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.exploded-assembly {
  position: relative;
  grid-column: 1;
  width: 100%;
  height: 100%;
  margin: 0;
}

.exploded-assembly > img {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 4%;
  width: 72%;
  height: 100%;
  object-fit: contain;
}

.exploded-assembly figcaption {
  position: absolute;
  z-index: 3;
  bottom: 8px;
  left: 30%;
  color: rgba(8, 8, 8, 0.42);
  font-size: 0.5rem;
}

.parts-route {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: rgba(8, 8, 8, 0.5);
  stroke-width: 1;
}

.parts-route path,
.parts-route circle {
  vector-effect: non-scaling-stroke;
}

.parts-route-targets {
  fill: var(--orange-deep);
  stroke: #f2f1ed;
  stroke-width: 1.5;
}

.part-label {
  position: absolute;
  z-index: 4;
  color: rgba(8, 8, 8, 0.78);
  font-family: var(--display);
  font-size: 0.54rem;
  line-height: 1.08;
  text-transform: uppercase;
}

.part-label--console { top: 68px; left: 37%; }
.part-label--panel { top: 100px; left: 22%; }
.part-label--column { top: 150px; left: 22%; }
.part-label--front-roller { top: 307px; left: 20%; }
.part-label--motor { top: 332px; left: 19%; }
.part-label--frame { top: 269px; right: 3%; }
.part-label--deck { top: 189px; right: 3%; }
.part-label--belt { top: 220px; right: 2%; }
.part-label--roller { top: 335px; right: 2%; }
.part-label--cushion { top: 295px; right: 1%; }

.method-board {
  position: relative;
  grid-column: 2;
  padding: 44px 42px 26px 24px;
}

.method-board h2 {
  margin: 0 0 30px;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
}

.method-cells {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.method-rail {
  position: absolute;
  z-index: 1;
  top: 145px;
  right: 54px;
  left: 52px;
  height: 1px;
  background: rgba(8, 8, 8, 0.32);
}

.method-rail span {
  display: block;
  width: 100%;
  height: 2px;
  transform: scaleX(var(--method-progress, 0.08));
  transform-origin: left;
  background: var(--orange-deep);
  transition: transform 900ms var(--ease-out);
}

.method-cell {
  text-align: center;
}

.method-number {
  display: block;
  margin-bottom: 10px;
  color: var(--orange-deep);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.method-icon {
  display: grid;
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  place-items: center;
  border: 1px solid var(--black);
  border-radius: 50%;
  background: #f2f1ed;
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
}

.method-cell.is-current .method-icon {
  border-color: var(--orange-deep);
  box-shadow: 0 0 0 6px rgba(245, 129, 31, 0.12);
}

.method-cell h3 {
  min-height: 38px;
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.method-cell p {
  max-width: 18ch;
  margin: 0 auto;
  color: rgba(8, 8, 8, 0.68);
  font-size: 0.64rem;
  line-height: 1.45;
}

@media (min-width: 1537px) {
  .reference-hero,
  .engineering-fold {
    box-shadow: 0 0 0 100vmax var(--black);
    clip-path: inset(0 -100vmax);
  }

  .engineering-fold {
    box-shadow: 0 0 0 100vmax #f2f1ed;
  }
}

/* Preserve the three-column composition on notebooks without allowing the
   deliberately oversized display lines to escape their panel. MacBook Retina
   viewports commonly land between 1280 and 1440 CSS pixels. */
@media (min-width: 901px) and (max-width: 1535px) {
  .reference-message {
    padding-inline: clamp(18px, 2.2vw, 34px);
  }

  .reference-message h1 {
    font-size: clamp(2.05rem, 3.1vw, 3rem);
  }
}

/* Fit the complete opening composition inside short laptop browser windows.
   The spine normally overlaps the next fold; on a short viewport it ends at
   the fold instead, so no part of the FIT CARE label is hidden. */
@media (min-width: 901px) and (max-height: 720px) {
  .reference-hero {
    height: clamp(540px, calc(100svh - 52px), 596px);
  }

  .reference-photo,
  .reference-message {
    height: 100%;
  }

  .fit-spine {
    height: calc(100% + 24px);
  }
}

@media (max-width: 1100px) {
  .reference-header {
    grid-template-columns: 1fr auto;
    height: 64px;
    min-height: 64px;
    padding: 0 20px;
  }

  .reference-header .brand { position: static; grid-column: 1; width: 188px; }

  .reference-hero {
    grid-template-columns: 21% 50% 29%;
    height: 580px;
    margin-top: 64px;
  }

  .fit-spine {
    left: 1.5%;
    width: 19%;
    min-width: 0;
    height: 640px;
  }

  .spine-name { font-size: 7.3rem; }
  .reference-photo { grid-column: 2; height: 580px; }
  .reference-message { grid-column: 3; height: 580px; padding-inline: 24px; }
  .reference-message h1 { font-size: clamp(2.05rem, 3.55vw, 2.45rem); }
  .reference-message h1 span,
  .reference-message h1 em { white-space: normal; }
  .reference-regions { font-size: 0.55rem; }
  .route-label { font-size: 0.56rem; }

  .engineering-fold { grid-template-columns: 54% 46%; }
  .engineering-copy { display: none; }
  .exploded-assembly > img { right: 0; width: 88%; }
  .part-label, .parts-route { display: none; }
  .method-board { padding-inline: 18px; }
  .method-cells { gap: 10px; }
  .method-cell p { font-size: 0.58rem; }
}

@media (max-width: 900px) {
  .reference-header {
    height: 72px;
    min-height: 72px;
    padding: 0 16px;
  }

  .reference-header.is-scrolled { height: 64px; min-height: 64px; }
  .reference-header .brand { width: 190px; }

  .reference-hero {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    margin-top: 72px;
  }

  .fit-spine {
    top: 16px;
    left: 16px;
    width: 126px;
    min-width: 126px;
    height: 344px;
    border-radius: 12px;
  }

  .fit-spine > img { top: 50px; width: 80%; }
  .fit-spine > p { top: 88px; right: 10px; left: 10px; font-size: 0.48rem; }
  .spine-rule { top: 123px; right: 10px; left: 10px; }
  .spine-handle { width: 52px; height: 10px; top: 14px; }
  .spine-meta, .spine-side, .spine-code { display: none; }
  .spine-name { top: 209px; left: 51%; gap: 9px; font-size: 3.5rem; }
  .fit-spine small { right: 8px; bottom: 16px; left: 8px; font-size: 0.5rem; text-align: center; }

  .reference-photo {
    width: 100%;
    height: 430px;
  }

  .reference-photo-image { object-position: 58% center; }
  .photo-shade { background: linear-gradient(90deg, rgba(8, 8, 8, 0.45), transparent 60%), linear-gradient(0deg, rgba(8, 8, 8, 0.62), transparent 46%); }
  .diagnostic-route { opacity: 0.9; transform: translateX(18%); }
  .route-label { display: none; }
  .reference-photo .media-disclosure { left: 154px; bottom: 14px; font-size: 0.68rem; }

  .reference-message {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 500px;
    overflow: hidden;
    padding: 62px 16px 50px;
  }

  .reference-index { font-size: 0.68rem; }
  .reference-message h1 { max-width: 9ch; font-size: clamp(3.7rem, 17vw, 5.1rem); }
  .reference-message h1 span,
  .reference-message h1 em { white-space: normal; }
  .reference-message > p:not(.reference-index) { max-width: 40ch; font-size: 0.96rem; }
  .reference-message .button { width: 100%; max-width: none; }
  .reference-regions { font-size: 0.68rem; line-height: 1.45; }

  .engineering-fold {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    overflow: hidden;
  }

  .engineering-copy {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    padding: 56px 16px 0;
  }

  .engineering-copy strong { font-size: 2.4rem; }
  .engineering-copy p { max-width: 30ch; font-size: 0.8rem; }

  .exploded-assembly {
    min-height: 390px;
  }

  .exploded-assembly > img {
    top: 0;
    right: -10%;
    width: 120%;
    height: 100%;
  }

  .exploded-assembly figcaption { bottom: 6px; left: 16px; font-size: 0.68rem; }
  .part-label, .parts-route { display: none; }

  .method-board {
    padding: 56px 16px 72px;
    border-top: 1px solid rgba(8, 8, 8, 0.18);
  }

  .method-board h2 { margin-bottom: 38px; font-size: 2rem; }
  .method-cells { grid-template-columns: 1fr; gap: 28px; }
  .method-cell { display: grid; grid-template-columns: 54px 1fr; gap: 2px 18px; text-align: left; }
  .method-number { grid-column: 1; grid-row: 1; margin: 0; font-size: 1.5rem; }
  .method-icon { grid-column: 1; grid-row: 2 / span 2; width: 48px; height: 48px; margin: 4px 0 0; font-size: 1.4rem; }
  .method-cell h3 { grid-column: 2; grid-row: 1 / span 2; min-height: 0; margin: 0; font-size: 1.35rem; }
  .method-cell p { grid-column: 2; grid-row: 3; max-width: 34ch; margin: 4px 0 0; font-size: 0.82rem; }
  .method-rail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .diagnostic-route path { stroke-dashoffset: 0; }
}
