.page-width {
  width: min(calc(100% - 64px), var(--am-shell));
  margin-inline: auto;
}

.skin-viewer-open {
  overflow: hidden;
}

.hero,
.sequence,
.gallery-section,
.box-section,
.details-section,
.compatibility-section,
.install-section,
.final-cta {
  scroll-margin-top: var(--am-header-height);
}

.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-content: end;
  overflow: hidden;
  padding-top: 130px;
  background:
    linear-gradient(180deg, #080908 0%, #101310 72%, #161a16 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  align-items: end;
  gap: 52px;
  padding-bottom: 30px;
}

.hero-copy > div:first-child {
  display: grid;
  gap: 18px;
}

.hero h1 {
  max-width: 12ch;
  font-size: 6.4rem;
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  width: max-content;
  will-change: transform;
}

.hero-summary {
  display: grid;
  justify-items: start;
  gap: 24px;
  padding-bottom: 8px;
}

.hero-summary p {
  max-width: 39ch;
  color: var(--am-muted);
  font-size: 1.04rem;
  line-height: 1.55;
}

.purchase-button {
  min-height: 56px;
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  padding: 7px 8px 7px 19px;
  border: 1px solid var(--am-red);
  border-radius: 2px;
  color: #fff;
  background: var(--am-red);
  font-size: 0.76rem;
  font-weight: 600;
  transition: color 240ms var(--am-ease), background-color 240ms var(--am-ease), transform 240ms var(--am-ease);
}

.purchase-button strong {
  min-width: 46px;
  min-height: 42px;
  display: grid;
  place-items: center;
  color: var(--am-black);
  background: var(--am-paper);
  font-family: "AM Mono", monospace;
  font-size: 0.7rem;
  font-weight: 400;
}

.purchase-button:hover {
  color: var(--am-red);
  background: transparent;
  transform: translateY(-2px);
}

.purchase-button:active {
  transform: translateY(0);
}

.hero-device {
  position: relative;
  width: min(96%, 1520px);
  margin: 0 auto -2.8%;
  overflow: hidden;
  clip-path: inset(0 4% 0 4%);
  will-change: clip-path, transform;
}

.hero-device::before {
  content: "";
  position: absolute;
  inset: 18% 17% 13%;
  z-index: -1;
  background: rgba(200, 36, 31, 0.14);
  filter: blur(70px);
}

.hero-device img {
  width: 100%;
  height: auto;
  max-height: 68dvh;
  object-fit: contain;
  filter: drop-shadow(0 38px 44px rgba(0, 0, 0, 0.52));
}

.sequence {
  padding: 108px 0 0;
  color: var(--am-black);
  background: var(--am-paper);
}

.cover-art {
  width: min(calc(100% - 64px), 1640px);
  margin-inline: auto;
  background: #080908;
  overflow: hidden;
  clip-path: inset(0);
  will-change: clip-path;
}

.cover-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.sequence-heading {
  padding-top: 112px;
  padding-bottom: 50px;
}

.sequence-heading h2,
.gallery-heading h2,
.box-copy h2,
.details-layout h2,
.compatibility-layout h2,
.install-heading h2,
.final-cta h2 {
  max-width: 14ch;
  font-size: 4.4rem;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.sequence-stage {
  padding-bottom: 132px;
}

.sequence-viewport {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 52px 18px;
}

.sequence-plane {
  grid-column: 1 / 11;
  overflow: hidden;
  background: #121412;
  transform-origin: center;
}

.sequence-plane:nth-child(2) {
  grid-column: 3 / 13;
}

.sequence-plane:nth-child(3) {
  grid-column: 2 / 12;
}

.sequence-plane img {
  width: 100%;
  height: auto;
  aspect-ratio: 2200 / 1230;
  object-fit: contain;
}

.sequence-motion .sequence-plane {
  will-change: transform;
  transform-origin: center;
}

@media (min-width: 901px) {
  .sequence-motion .sequence-stage {
    padding-bottom: 0;
  }

  .sequence-motion .sequence-viewport {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    display: block;
    overflow: hidden;
    background: var(--am-paper);
  }

  .sequence-motion .sequence-plane,
  .sequence-motion .sequence-plane:nth-child(2),
  .sequence-motion .sequence-plane:nth-child(3) {
    position: absolute;
    grid-column: auto;
    margin: 0;
  }

  .sequence-motion .sequence-plane img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .sequence-motion .plane-a {
    inset: 11% 13% 9% 5%;
    z-index: 3;
  }

  .sequence-motion .plane-b {
    inset: 16% 5% 5% 22%;
    z-index: 2;
  }

  .sequence-motion .plane-c {
    inset: 8% 18% 12% 15%;
    z-index: 1;
  }
}

.gallery-section {
  padding: 92px 0 104px;
  background: #090a09;
}

.gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: 42px;
  margin-bottom: 28px;
}

.gallery-heading p {
  color: var(--am-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.skin-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}

.skin-gallery figure {
  min-width: 0;
  overflow: hidden;
  background: #131513;
}

.skin-tile {
  position: relative;
  width: 100%;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: var(--am-paper);
  background: transparent;
  cursor: zoom-in;
}

.skin-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 2200 / 1230;
  object-fit: contain;
  transition: transform 420ms var(--am-ease), filter 420ms var(--am-ease);
}

.skin-tile > span {
  position: absolute;
  left: 10px;
  bottom: 9px;
  min-width: 27px;
  min-height: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(5, 6, 5, 0.72);
  font-family: "AM Mono", monospace;
  font-size: 0.55rem;
  opacity: 0;
  transition: opacity 220ms var(--am-ease);
}

.skin-tile:hover img,
.skin-tile:focus-visible img {
  transform: scale(1.018);
  filter: brightness(1.06);
}

.skin-tile:hover > span,
.skin-tile:focus-visible > span {
  opacity: 1;
}

.skin-viewer {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 28px;
  overflow: hidden;
  border: 0;
  color: var(--am-paper);
  background: rgba(5, 6, 5, 0.97);
}

.skin-viewer[open] {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 18px;
}

.skin-viewer::backdrop {
  background: #050605;
}

.skin-viewer figure {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.skin-viewer figure img {
  width: 100%;
  height: min(82dvh, 900px);
  object-fit: contain;
}

.skin-viewer figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(239, 237, 231, 0.64);
  font-family: "AM Mono", monospace;
  font-size: 0.58rem;
}

.skin-viewer button {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239, 237, 231, 0.35);
  border-radius: 0;
  color: var(--am-paper);
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 200ms var(--am-ease), background-color 200ms var(--am-ease);
}

.skin-viewer button:hover,
.skin-viewer button:focus-visible {
  color: var(--am-black);
  background: var(--am-paper);
}

.skin-viewer-close {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 2;
}

.box-section {
  padding: 116px 0;
  color: #fff;
  background: #8f1613;
}

.box-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: 72px;
}

.box-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(42, 3, 3, 0.28);
}

.box-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1700 / 1189;
  object-fit: contain;
}

.box-copy {
  display: grid;
  justify-items: start;
  gap: 26px;
}

.box-copy p {
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  line-height: 1.55;
}

.box-copy > strong {
  font-family: "AM Mono", monospace;
  font-size: 3.8rem;
  font-weight: 400;
}

.details-section,
.compatibility-section,
.install-section {
  padding: 118px 0 132px;
}

.details-section {
  background: var(--am-black);
}

.details-layout,
.compatibility-layout,
.install-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: 70px;
}

.fact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--am-line);
}

.fact-list li {
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--am-line);
}

.fact-list span {
  font-size: 1.16rem;
}

.fact-list small {
  color: var(--am-muted);
  font-family: "AM Mono", monospace;
  font-size: 0.66rem;
}

.compatibility-section {
  color: var(--am-black);
  background: var(--am-paper);
}

.compatibility-copy {
  border-top: 1px solid var(--am-line-dark);
}

.compatibility-copy p {
  padding: 22px 0;
  border-bottom: 1px solid var(--am-line-dark);
  font-size: 1.14rem;
  line-height: 1.5;
}

.compatibility-copy .compatibility-warning {
  color: var(--am-red-dark);
  font-weight: 600;
}

.install-section {
  background: var(--am-panel);
}

.install-heading {
  display: grid;
  gap: 22px;
}

.install-heading p {
  max-width: 34ch;
  color: var(--am-muted);
  line-height: 1.55;
}

.install-guides {
  border-top: 1px solid var(--am-line);
}

.install-guides details {
  border-bottom: 1px solid var(--am-line);
}

.install-guides summary {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 1.16rem;
  font-weight: 500;
  list-style: none;
}

.install-guides summary::-webkit-details-marker {
  display: none;
}

.install-guides summary span {
  font-size: 1.4rem;
  transition: transform 240ms var(--am-ease);
}

.install-guides details[open] summary span {
  transform: rotate(45deg);
}

.install-guides ol {
  max-width: 68ch;
  margin: 0;
  padding: 0 0 30px 1.4em;
  color: #c6c7c2;
}

.install-guides li {
  padding: 5px 0;
  line-height: 1.55;
}

.install-guides code {
  overflow-wrap: anywhere;
  color: #fff;
}

.final-cta {
  min-height: 74dvh;
  display: grid;
  align-items: center;
  padding: 110px 0;
  color: var(--am-black);
  background: var(--am-paper-deep);
}

.final-cta-inner {
  display: grid;
  justify-items: start;
  gap: 26px;
}

.final-cta h2 {
  max-width: 13ch;
  font-size: 5.6rem;
}

.final-cta p {
  font-size: 1.2rem;
}

.purchase-button-light {
  border-color: var(--am-black);
  color: var(--am-paper);
  background: var(--am-black);
}

.purchase-button-light:hover {
  color: var(--am-black);
  background: transparent;
}

@media (max-width: 1100px) {
  .skin-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    font-size: 4.9rem;
  }

  .sequence-heading h2,
  .gallery-heading h2,
  .box-copy h2,
  .details-layout h2,
  .compatibility-layout h2,
  .install-heading h2 {
    font-size: 3.7rem;
  }

  .details-layout,
  .compatibility-layout,
  .install-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 760px) {
  .page-width {
    width: min(calc(100% - 36px), var(--am-shell));
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero h1 {
    font-size: 3.1rem;
    line-height: 0.94;
  }

  .hero-summary p {
    font-size: 0.96rem;
  }

  .purchase-button {
    width: 100%;
  }

  .hero-device {
    width: calc(100% - 10px);
    margin-top: 12px;
    margin-bottom: -2%;
  }

  .hero-device img {
    max-height: none;
  }

  .sequence {
    padding-top: 74px;
  }

  .cover-art {
    width: calc(100% - 20px);
  }

  .sequence-heading {
    padding-top: 76px;
    padding-bottom: 34px;
  }

  .sequence-heading h2,
  .gallery-heading h2,
  .box-copy h2,
  .details-layout h2,
  .compatibility-layout h2,
  .install-heading h2 {
    font-size: 2.55rem;
    line-height: 1;
  }

  .sequence-stage {
    padding-bottom: 76px;
  }

  .sequence-viewport {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sequence-plane,
  .sequence-plane:nth-child(2),
  .sequence-plane:nth-child(3) {
    grid-column: 1;
    transform: none;
  }

  .gallery-section,
  .box-section,
  .details-section,
  .compatibility-section,
  .install-section {
    padding: 78px 0 88px;
  }

  .gallery-heading,
  .box-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .gallery-heading {
    margin-bottom: 30px;
  }

  .skin-gallery {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .skin-tile > span {
    opacity: 1;
  }

  .skin-viewer {
    padding: 18px;
  }

  .skin-viewer[open] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) 46px;
    gap: 10px;
  }

  .skin-viewer figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .skin-viewer figure img {
    height: min(76dvh, 680px);
  }

  .skin-viewer-nav {
    width: 100% !important;
    height: 46px !important;
  }

  .skin-viewer-prev {
    grid-column: 1;
    grid-row: 2;
  }

  .skin-viewer-next {
    grid-column: 2;
    grid-row: 2;
  }

  .skin-viewer-close {
    width: 44px !important;
    height: 44px !important;
    top: 12px;
    right: 12px;
  }

  .box-copy > strong {
    font-size: 3rem;
  }

  .fact-list li {
    min-height: 80px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 6px;
  }

  .fact-list span,
  .compatibility-copy p,
  .install-guides summary {
    font-size: 1.02rem;
  }

  .final-cta {
    min-height: 66dvh;
    padding: 84px 0;
  }

  .final-cta h2 {
    font-size: 3rem;
  }
}

@media (max-width: 370px) {
  .hero h1 {
    font-size: 2.65rem;
  }
}
