.features {
  position: relative;
  background: var(--paper);
}
.feature-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.feature-stage { display: grid; touch-action: pan-y pinch-zoom; }
.feature-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
}
.feature-slide[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
.feature-copy {
  padding: clamp(34px, 4vw, 76px) clamp(22px, 4vw, 76px) clamp(34px, 4vw, 76px) max(4.5vw, calc((100vw - var(--max)) / 2));
  align-self: center;
}
.feature-category {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 clamp(14px, 1.6vw, 28px);
  font-weight: 700;
  font-size: .88rem;
  line-height: 1.25;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink);
}
.feature-category::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: var(--orange);
}
.feature-copy h2 {
  font-size: clamp(3.5rem, 5.2vw, 6.1rem);
  line-height: 1.01;
  letter-spacing: -.03em;
  margin: 0 0 .24em;
  font-weight: 400;
}
.feature-copy h2 em {
  display: block;
  font-size: .85em;
  color: var(--green);
  font-weight: 400;
}
.feature-desc {
  max-width: 37ch;
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.52;
  color: var(--ink);
}
.feature-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: clamp(18px, 2.1vw, 34px);
}
.feature-links .text-link { color: var(--ink); }
.feature-photo {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper);
}
.feature-photo img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.feature-controls {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 max(4.5vw, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.feature-controls[hidden] { display: none; }
.feature-choices, .feature-transport { display: flex; align-items: center; }
.feature-choices {
  --choice-padding: clamp(8px, 1vw, 16px);
  gap: clamp(2px, .5vw, 10px);
  margin-inline-start: calc(-1 * var(--choice-padding));
}
.feature-controls button {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 44px;
}
.feature-choices button {
  position: relative;
  min-height: 62px;
  padding: 0 var(--choice-padding);
  font-size: .94rem;
  font-weight: 600;
}
.feature-choices button[aria-current="true"] { color: var(--ink); font-weight: 700; }
.feature-choices button[aria-current="true"]::after {
  content: "";
  height: 3px;
  background: var(--orange);
  position: absolute;
  inset: auto var(--choice-padding) 0;
}
.feature-transport { gap: 2px; }
.feature-transport button {
  display: grid;
  place-items: center;
  min-width: 44px;
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
}
.feature-transport [data-action="rotate"] { font-size: 1.12rem; font-weight: 700; }
.feature-controls button:hover { color: var(--ink); background: var(--paper); }
.feature-stage.is-changing .feature-slide:not([aria-hidden]) { animation: feature-in 300ms ease-out; }
@keyframes feature-in { from { opacity: .35; } to { opacity: 1; } }
@media (min-width: 901px) and (max-width: 1240px) {
  .feature-copy { padding: 22px 20px 24px 4.5vw; }
  .feature-copy h2 { font-size: clamp(2.7rem, 4.6vw, 3.6rem); }
  .feature-category { margin-bottom: 12px; }
  .feature-links { margin-top: 16px; gap: 9px 16px; }
}
@media (max-width: 900px) {
  .feature-slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .feature-photo { grid-row: 1; }
  .feature-copy { padding: 25px 5% 28px; }
  .feature-category { margin-bottom: 12px; }
  .feature-copy h2 { font-size: clamp(2.8rem, 8.6vw, 4.15rem); }
  .feature-copy h2 em { display: inline; margin-left: .18em; }
  .feature-desc { max-width: 48ch; }
  .feature-controls { padding: 0 4%; gap: 8px; }
  .feature-choices { --choice-padding: 0px; gap: 0; }
  .feature-choices button {
    display: grid;
    place-items: center;
    width: 31px;
    min-height: 48px;
  }
  .feature-choices button span { display: none; }
  .feature-choices button::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grey);
  }
  .feature-choices button[aria-current="true"]::before { background: var(--green); width: 20px; border-radius: 5px; }
  .feature-choices button[aria-current="true"]::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-stage.is-changing .feature-slide:not([aria-hidden]) { animation: none; }
}
