.s500-page {
  background: #f7f7f4;
}

.s500-page .header nav a[aria-current] {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: .45em;
}

.s500-page h2 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 570;
  line-height: 1.26;
  letter-spacing: -.035em;
}

.s500-hero {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.53fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: clamp(3rem, 7vw, 6.5rem);
  padding-bottom: clamp(2rem, 6vw, 5.25rem);
}

.s500-context {
  display: flex;
  gap: .7rem;
  align-items: center;
  font-size: .875rem;
  font-weight: 550;
  color: #535750;
}

.s500-context span {
  border-left: 1px solid #bbbfba;
  padding-left: .7rem;
}

.s500-context a:hover,
.s500-text-link:hover {
  color: #b91d22;
}

.s500-hero h1 {
  font-size: clamp(2.85rem, 5.45vw, 6.1rem);
  font-weight: 660;
  line-height: .98;
  margin: 1.35rem 0 .85rem;
  letter-spacing: -.07em;
}

.s500-hero h1 span {
  color: #b91d22;
}

.s500-subtitle {
  font-size: clamp(1.28rem, 2.35vw, 2.05rem);
  font-weight: 570;
  line-height: 1.3;
}

.s500-description {
  margin-top: 1.15rem;
  color: #464b45;
  font-size: 1rem;
  line-height: 1.8;
}

.s500-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.35rem;
  margin-top: 1.55rem;
}

.s500-button,
.s500-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: .95rem;
  font-weight: 600;
}

.s500-button {
  background: #b91d22;
  color: #fff;
  justify-content: center;
  padding: .65rem 1.2rem;
  width: fit-content;
}

.s500-button:hover {
  background: #931b1e;
}

.s500-text-link {
  text-decoration: underline;
  text-underline-offset: .3em;
}

.s500-hero-photo,
.s500-gallery-stage {
  margin: 0;
  min-width: 0;
}

.s500-hero-photo,
.s500-gallery-stage img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.596;
  object-fit: contain;
  background: #d1cecb;
}

.s500-gallery-stage figcaption,
.s500-detail figcaption {
  margin-top: .65rem;
  font-size: .875rem;
  line-height: 1.5;
}

.s500-detail {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.45fr);
  align-items: center;
  gap: clamp(1.3rem, 5vw, 4.5rem);
  padding-block: clamp(1.7rem, 4vw, 3.5rem);
  border-top: 1px solid #cccfc9;
}

.s500-detail-copy p {
  margin-top: .85rem;
  color: #464b45;
  font-size: 1rem;
  line-height: 1.75;
}

.s500-detail-copy h3 {
  margin-top: 1.35rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.s500-detail-copy h3 + p {
  margin-top: .45rem;
}

.s500-detail figure {
  margin: 0;
  min-width: 0;
}

.s500-detail figure a,
.s500-detail img {
  display: block;
}

.s500-detail img {
  width: 100%;
  height: auto;
}

.s500-detail figcaption {
  color: #525650;
}

.s500-battery-specs {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.6rem;
  margin: 1.3rem 0 0;
}

.s500-battery-specs dt {
  color: #525650;
  font-size: .875rem;
}

.s500-battery-specs dd {
  margin: .18rem 0 0;
  font-size: 1.12rem;
  font-weight: 600;
}

.s500-structure {
  padding-top: 2rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid #cccfc9;
}

.s500-feature-grid {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.6rem, 3vw, 2.75rem);
}

.s500-feature-grid article {
  padding-top: 1.15rem;
  border-top: 1px solid #bbbfb9;
}

.s500-feature-grid h3 {
  margin-bottom: .85rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 600;
}

.s500-feature-image,
.s500-feature-image img {
  display: block;
  width: 100%;
}

.s500-feature-image {
  margin-bottom: .85rem;
}

.s500-feature-image img {
  height: auto;
  background: #eeede8;
}

.s500-feature-grid p,
.s500-dimensions p {
  color: #464b45;
  font-size: 1rem;
  line-height: 1.75;
}

.s500-feature-grid p + p {
  margin-top: .65rem;
}

.s500-gallery {
  background: #202224;
  color: #fff;
  padding: clamp(2.75rem, 6vw, 5.25rem) 0;
}

.s500-gallery h2 {
  margin-bottom: 1.45rem;
}

.s500-gallery-stage {
  max-width: 920px;
  margin-inline: auto;
}

.s500-gallery-stage a {
  display: block;
}

.s500-gallery-stage figcaption {
  color: #eceeec;
}

.s500-gallery-angles {
  max-width: 920px;
  margin: 1.1rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.s500-gallery-angles a {
  display: block;
  border: 1px solid #626766;
}

.s500-gallery-angles a:hover {
  border-color: #fff;
}

.s500-gallery-angles a[aria-current] {
  outline: 2px solid #ff777a;
  outline-offset: -2px;
}

.s500-gallery-angles img {
  aspect-ratio: 1.596;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.s500-gallery-angles span {
  display: block;
  padding: .55rem .5rem;
  min-height: 40px;
  text-align: center;
  font-size: .875rem;
  line-height: 1.45;
}

.s500-dimensions {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.2rem, 5vw, 5rem);
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.s500-dimensions p {
  margin-top: .8rem;
  max-width: 32ch;
}

.s500-specs {
  margin: 0;
}

.s500-specs div {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: baseline;
  gap: .5rem 1rem;
  padding: .9rem 0;
  border-top: 1px solid #bbbfb9;
  font-size: .98rem;
}

.s500-specs div:last-child {
  border-bottom: 1px solid #bbbfb9;
}

.s500-specs dt {
  color: #464b45;
}

.s500-specs dd {
  margin: 0;
  font-weight: 580;
  text-align: right;
}

.s500-integration {
  background: #e8e9e3;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.s500-integration-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.s500-integration p {
  margin-top: .7rem;
  color: #464b45;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .s500-hero {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 1.65rem;
  }
}

@media (max-width: 760px) {
  .s500-hero,
  .s500-detail,
  .s500-dimensions {
    grid-template-columns: 1fr;
  }

  .s500-hero {
    padding-top: 2rem;
  }

  .s500-feature-grid {
    grid-template-columns: 1fr;
  }

  .s500-gallery-angles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
