html {
  scrollbar-gutter: stable;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #f4f4f4;
}

body {
  font-family: "Inter", sans-serif;
  color: #000;
}

:root {
  --page-gutter: 20px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  color: black;
  background-color: white;

  width: 100%;
  height: 105px;

  box-sizing: border-box;

  padding: 14px 20px;

  z-index: 1000;

  font-family: "Inter", Arial, sans-serif;
}

.brand {
  font-family: "Jost", Arial, sans-serif;

  font-weight: 700;
  font-size: 32px;
  line-height: 1;

  margin-bottom: 14px;
}

.brand-r {
  font-size: 12px;
  vertical-align: top;
  position: relative;
  top: 2px;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.left-group {
  min-width: 0;
}

.main-nav {
  display: grid;

  grid-template-columns:
    180px
    220px
    180px
    100px;

  align-items: center;

  column-gap: 0;

  white-space: nowrap;

  margin-left: -10px;
}

.main-nav a {
  color: black;
  box-sizing: border-box;

  width: max-content;

  text-decoration: none;

  padding: 3px 10px;

  border: 1px solid transparent;
  border-radius: 8px;

  line-height: 1.1;

  justify-self: start;

  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.copyright {
  font-family: "Inter", Arial, sans-serif;

  font-size: 10px;
  font-weight: 400;
  line-height: 1.1;

  white-space: nowrap;

  flex-shrink: 0;

  margin: 0;
  padding: 0;
}

.main-nav a.active-nav {
  border-color: #000;
}

/* PAGE */
.spec-page {
  background: #f4f4f4;
  padding-top: 105px;
}

/* STAGE */
.spec-stage {
  position: relative;
  min-height: calc(100vh - 105px);
  padding: 24px 32px 24px;
  box-sizing: border-box;
}

/* DIAGRAM */
.spec-diagram {
  position: absolute;
  top: 65px;
  left:
    var(--page-gutter);
  width: 150px;
}

.spec-diagram img {
  display: block;
  width: 100%;
  height: auto;
}

/* REUSED ICON */
.spec-reused {
  position: absolute;
  top: 72px;
  right: 80px;
  width: 32px;
  height: 32px;
}

.spec-reused img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* PRODUCT */
.spec-product {
  position: absolute;
  top: 55px;
  right: 80px;

  width: 50vw;
  max-width: 920px;

  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.spec-product img {
  display: block;

  width: auto;
  height: auto;

  max-width: 100%;

  max-height:
    calc(
      100dvh
      - 105px
      - 55px
      - 120px
    );

  object-fit: contain;

  transition:
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.24s ease;

  will-change: transform, opacity;
}

/* =========================================
   PRODUCT TRANSITION
========================================= */

.spec-product img {
  transition:
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.24s ease;

  will-change:
    transform,
    opacity;
}


/* SP1 -> SP2 */
.spec-product img.product-exit-up {
  transform: translateY(-70px);
  opacity: 0;
}


/* SP2 -> SP1 */
.spec-product img.product-exit-down {
  transform: translateY(70px);
  opacity: 0;
}


/* product baru muncul dari bawah */
.spec-product img.product-enter-bottom {
  transition: none;

  transform: translateY(70px);

  opacity: 0;
}


/* product baru muncul dari atas */
.spec-product img.product-enter-top {
  transition: none;

  transform: translateY(-70px);

  opacity: 0;
}


/* =========================================
   TABLE DATA TRANSITION
========================================= */

.spec-table tbody td {
  transition:
    opacity 0.20s ease,
    transform 0.24s ease;

  will-change:
    opacity,
    transform;
}


.spec-table-wrap.is-changing
.spec-table tbody td {

  opacity: 0;

  transform:
    translateY(5px);
}

/* SP1 -> SP2 */
.spec-product img.product-exit-up {
  transform: translateY(-70px);
  opacity: 0;
}

/* SP2 -> SP1 */
.spec-product img.product-exit-down {
  transform: translateY(70px);
  opacity: 0;
}

.spec-table-wrap tbody td {
  transition:
    opacity 0.20s ease,
    transform 0.25s ease;
}

.spec-table-wrap.is-changing tbody td {
  opacity: 0;
  transform: translateY(5px);
}


/*
  Posisi awal gambar BARU.
  transition dimatikan sebentar supaya
  gambar langsung ditempatkan di luar.
*/

.spec-product img.product-enter-bottom {
  transition: none;
  transform: translateY(70px);
  opacity: 0;
}

.spec-product img.product-enter-top {
  transition: none;
  transform: translateY(-70px);
  opacity: 0;
}

/* TABLE */
.spec-table-wrap {
  position: absolute;
  left:
    var(--page-gutter);
  bottom: 115px;
  width: 660px; /* ubah bebas */
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.spec-table .col-material {
  width: 14%;
}

.spec-table .col-interface {
  width: 15%;
}

.spec-table .col-weight {
  width: 13%;
}

.spec-table .col-dimension {
  width: 40%;
}

.spec-table .col-properties {
  width: 18%;
}

.spec-table th {
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  padding: 0 20px 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.spec-table tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.spec-table td {
  text-align: left;
  vertical-align: bottom;

  font-size: 14px;
  font-weight: 300;
  line-height: 1.08;

  height: 56px;

  padding: 0 20px 5px 0;
  box-sizing: border-box;
}

.spec-table tbody tr {
  height: 56px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

/* .spec-table th:nth-child(4),
.spec-table td:nth-child(4) {
  width: 200px;
} */


.interface-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.interface-blue {
  width: 24px;
  height: 24px;
  background: #00558b;
  display: inline-block;
  flex: 0 0 auto;
}

.interface-texture {
  width: 24px;
  height: 24px;
  object-fit: cover;
  display: block;
  flex: 0 0 auto;
}

/* DESCRIPTION */
.spec-description {
  position: absolute;
  left:
    var(--page-gutter);
  right: 95px;
  bottom: var(--page-gutter);
  font-size: 10.1px;
  line-height: 1.12;
  font-weight: 350;
}

/* DOWNLOAD */
.spec-download {
  position: absolute;
  right: var(--page-gutter);
  bottom: 20px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spec-download img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* FOOTER */
.footer {
  background: #000;
  color: #fff;
  padding: 34px 24px 18px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  column-gap: 40px;
  align-items: end;
}

.footer-left {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-center {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.footer-center p {
  margin: 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.01em;
  text-align: justify;
}

.footer-right {
  font-size: 9px;
  font-weight: 300;
  text-align: right;
  white-space: nowrap;
}


/* PRODUCT SWITCH SCROLLBAR */

.spec-product-scrollbar {
  position: absolute;

  right: 28px;
  top: 60%;

  transform: translateY(-50%);

  width: 18px;
  height: 60px;

  display: grid;
  grid-template-rows: 14px 1fr 14px;

  align-items: center;
  justify-items: center;

  z-index: 20;
}


.spec-scroll-btn {
  width: 14px;
  height: 14px;

  border: none;

  background: rgba(0, 0, 0, 0.22);
  color: rgba(0, 0, 0, 0.75);

  font-size: 8px;
  line-height: 1;

  padding: 0;

  cursor: pointer;

  border-radius: 2px;

  display: flex;
  align-items: center;
  justify-content: center;
}


.spec-scroll-track {
  position: relative;

  width: 8px;
  height: 100%;

  background: rgba(0, 0, 0, 0.08);

  border-radius: 999px;

  cursor: pointer;
}


.spec-scroll-thumb {
  position: absolute;

  top: 0;
  left: 0;

  width: 8px;
  height: 22px;

  background: rgba(0, 0, 0, 0.38);

  border-radius: 999px;

  cursor: grab;

  transition: top 0.25s ease;
}


.spec-scroll-thumb:active {
  cursor: grabbing;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .spec-product {
    width: 58vw;
  }

  .spec-table-wrap {
    width: 680px;
  }
}

@media (max-width: 900px) {

  .spec-stage {
    padding: 20px 18px 24px;
  }

  .spec-diagram {
    left: 18px;
    width: 130px;
  }

  .spec-product {
    right: 18px;
    width: 62vw;
  }

  .spec-reused {
    right: 24px;
  }

  .spec-table-wrap {
    left: 18px;
    width: calc(100% - 36px);
  }

  .spec-description {
    left: 18px;
    right: 72px;
  }

  .spec-download {
    right: 18px;
  }

  .spec-table th,
  .spec-table td {
    font-size: 15px;
  }
}