.ar-feature {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.6fr);
  align-items: stretch;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  background: #163a34;
}

.ar-feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(24px, 3.5vw, 52px);
}

.ar-badge {
  padding: 6px 10px;
  border-radius: 7px;
  color: #e0f2e8;
  background: #275047;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}

.ar-feature h3 {
  margin: 16px 0 12px;
  font-size: clamp(30px, 3.45vw, 51px);
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.ar-feature-copy p {
  max-width: 31ch;
  color: #dfebe5;
  font-size: 15px;
  line-height: 1.65;
}

.ar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin: 16px 0 9px;
}

.ar-play, .ar-studio-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 650;
}

.ar-play {
  padding: 8px 14px;
  border-radius: 99px;
  background: #fff;
  color: #163a34;
}

.ar-play[hidden] { display: none; }
.ar-play:hover { background: #e1f1e8; }
.ar-play .ar-icon-pause, .ar-play[data-playing] .ar-icon-play { display: none; }
.ar-play[data-playing] .ar-icon-pause { display: inline; }
.ar-studio-link { color: #ecf9f0; flex-basis: 100%; }
.ar-studio-link:hover { text-decoration: underline; }
.ar-feature-copy small { color: #c3d6cb; font-size: 11px; line-height: 1.5; }

.ar-replay {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: #275047;
  color: #fff;
}
.ar-replay:hover { background: #36695d; }
.ar-replay svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ar-timeline { width: min(100%, 350px); margin-top: 22px; }
.ar-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.ar-stages button {
  min-width: 0;
  min-height: 47px;
  padding: 6px 3px;
  border-radius: 8px;
  background: #285047;
  color: #ecf8f1;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}
.ar-stages button > span { display: block; color: #b5d2c4; font-size: 10px; }
.ar-stages button:hover { background: #36695d; }
.ar-stages button[aria-pressed="true"] { background: #e4f3ea; color: #123f31; }
.ar-stages button[aria-pressed="true"] > span { color: #426c5d; }
.ar-timeline-track { height: 3px; margin-top: 9px; overflow: hidden; border-radius: 4px; background: #41645a; }
.ar-timeline-track > span { display: block; width: 100%; height: 100%; background: #a1e0be; transform: scaleX(0); transform-origin: left; }
.ar-feature-copy .ar-phase-caption { min-height: 2.9em; margin-top: 9px; color: #cfe5d9; font-size: 12px; line-height: 1.55; }

.ar-film {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 420px;
  margin: 0;
  background: #677d5d;
}

.ar-landscape, .ar-camera {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ar-landscape {
  object-position: 50% 55%;
  filter: brightness(.89) saturate(.88);
  transform: scale(var(--ar-film-scale, 1.018));
}

.ar-device {
  position: absolute;
  width: min(94%, 840px);
  left: 50%;
  top: max(57%, calc(100% - min(24.48cqw, 218.75px) + 3px));
  transform: translate(-50%, -50%) translate(var(--ar-phone-x, 0%), var(--ar-phone-y, 0%)) rotate(var(--ar-phone-angle, 0deg)) scale(var(--ar-phone-scale, 1));
}

.ar-grip {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 18px #0a1d1455);
}

.ar-display {
  position: absolute;
  inset: 6.875% 17.45% 35.625% 17.58%;
  isolation: isolate;
  overflow: hidden;
  border-radius: 4.5% / 10%;
  background: #59765a;
}

.ar-camera {
  object-position: center 61%;
}

.ar-model {
  position: absolute;
  z-index: 1;
  left: 52%;
  bottom: 15%;
  width: 69%;
  transform: translateX(-50%);
}

.ar-model img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  opacity: var(--ar-solid-opacity, 1);
  clip-path: inset(var(--ar-solid-top, 0%) 0 0);
}

.ar-model-shadow {
  position: absolute;
  left: 8%;
  bottom: -1%;
  width: 96%;
  height: 9%;
  border-radius: 50%;
  background: #202615a6;
  filter: blur(4px);
  transform: skewX(-18deg);
  opacity: var(--ar-solid-opacity, 1);
}

.ar-wire {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: var(--ar-wire-opacity, 0);
}
.ar-wire path {
  fill: none;
  stroke: #a6ffe3;
  stroke-width: 1.05;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: var(--ar-wire-dash, 100);
  vector-effect: non-scaling-stroke;
}
.ar-wire .ar-wire-outer { fill: #143d36; fill-opacity: .55; stroke: #e3fff4; stroke-width: 1.45; }
.ar-wire .ar-wire-detail { stroke: #80cdb3; stroke-width: .8; }

.ar-reticle {
  position: absolute;
  z-index: 2;
  inset: 10% 6%;
  opacity: .88;
  background:
    linear-gradient(#fff,#fff) left top / 11px 1px,
    linear-gradient(#fff,#fff) left top / 1px 11px,
    linear-gradient(#fff,#fff) right top / 11px 1px,
    linear-gradient(#fff,#fff) right top / 1px 11px,
    linear-gradient(#fff,#fff) left bottom / 11px 1px,
    linear-gradient(#fff,#fff) left bottom / 1px 11px,
    linear-gradient(#fff,#fff) right bottom / 11px 1px,
    linear-gradient(#fff,#fff) right bottom / 1px 11px;
  background-repeat: no-repeat;
}

.ar-confirm, .ar-scan span {
  position: absolute;
  z-index: 3;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 9px;
  border-radius: 99px;
  background: #102921;
  color: #f2fffa;
  white-space: nowrap;
  font-size: clamp(6px, 1.55cqw, 12px);
  line-height: 1.25;
  font-weight: 650;
}

.ar-confirm::before {
  display: inline-block;
  width: .48em;
  height: .48em;
  margin-right: .45em;
  border-radius: 50%;
  background: #9eeabb;
  content: "";
  vertical-align: .12em;
}

.ar-scan {
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: var(--ar-grid-opacity, 0);
}
.ar-scan > span { display: none; }

.ar-scan-grid {
  position: absolute;
  left: 13%;
  right: 12%;
  bottom: 10%;
  height: 33%;
  transform: scale(var(--ar-grid-scale, 1));
  transform-origin: center bottom;
}
.ar-scan-grid svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ar-scan-grid path { fill: none; stroke: #a6e9cf; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ar-scan-grid .ar-grid-outline { fill: #23594c; fill-opacity: .31; stroke: #e3fff5; stroke-width: 1.25; }
.ar-scan-grid .ar-grid-axis { stroke: #e3fff5; stroke-dasharray: 3 4; }
.ar-scan-grid circle { fill: #e3fff5; }

.ar-tracking-target {
  position: absolute;
  z-index: 2;
  top: var(--ar-aim-y, 66%);
  left: var(--ar-aim-x, 52%);
  width: clamp(24px, 8cqw, 58px);
  aspect-ratio: 1;
  opacity: var(--ar-aim-opacity, 0);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.ar-tracking-target svg { width: 100%; height: 100%; fill: none; stroke: #e1fff3; stroke-width: 1.65; stroke-linecap: round; }
.ar-tracking-target circle:last-of-type { fill: #d0ffe9; }

.ar-film-tag, .ar-film-index {
  position: absolute;
  z-index: 3;
  top: 15px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #142e26;
  color: #ecfaf2;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .04em;
  line-height: 1.3;
}
.ar-film-tag { left: 15px; }
.ar-film-index { right: 15px; font-variant-numeric: tabular-nums; }

@media (max-width: 830px) {
  .ar-feature { grid-template-columns: 1fr; }
  .ar-film { order: -1; aspect-ratio: 16 / 9; min-height: 0; }
  .ar-feature-copy p { max-width: 48ch; }
}

@media (max-width: 480px) {
  .ar-film { aspect-ratio: 4 / 3; }
  .ar-device { width: 107%; top: max(59%, calc(100% - 27.87cqw + 3px)); }
  .ar-film-tag, .ar-film-index { top: 10px; padding: 5px 7px; font-size: 9px; }
  .ar-film-tag { left: 10px; }
  .ar-film-index { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ar-play, .ar-replay { display: none; }
}
.motion-off :is(.ar-play, .ar-replay) { display: none; }
