/* AR clips: screen recordings of the TwinWorks viewer tracking a machine
   (V8 engine, AI-14R radial engine), shown inside a phone frame. Reused on
   the services, training and maintenance pages. The phones sit on the same
   light stage as on augmented-reality.html, in both themes. */

/* The phone frame. The recordings are 540 × 1168 app screens. */
.arc-phone {
  position: relative;
  flex: none;
  margin: 0;
  padding: 7px;
  border-radius: 38px;
  background: #121215;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(10, 10, 11, 0.12),
    0 34px 60px -30px rgba(10, 10, 11, 0.5);
}

/* Side buttons. */
.arc-phone::before,
.arc-phone::after {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #2a2a2f;
  content: "";
}

.arc-phone::before { top: 22%; right: -3px; height: 11%; }
.arc-phone::after { top: 17%; left: -3px; height: 6%; box-shadow: 0 calc(var(--arc-btn-gap, 48px)) 0 #2a2a2f; }

.arc-phone video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 540 / 1168;
  border-radius: 31px;
  background: #000;
  object-fit: cover;
}

/* A short label under a phone, when two phones sit side by side. */
.arc-phone__label {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  left: 0;
  color: #52525b;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

/* The section before already ends with its own padding, so the space goes below. */
.arc { padding: 0 20px clamp(64px, 7.2vw, 104px); }

.arc__inner {
  display: grid;
  width: min(1184px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 28px;
  background: linear-gradient(180deg, #f0f3f4 0%, #e9ecee 100%);
  color: #29282c;
  color-scheme: light;
}

.arc__inner--pair { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }

.arc__phones {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 32px);
  min-width: 0;
}

.arc__phones .arc-phone { width: min(270px, 100%); }
.arc__inner--pair .arc__phones { padding-bottom: 34px; }
.arc__inner--pair .arc__phones .arc-phone { width: min(250px, calc(50% - 12px)); }

.arc .arc__eyebrow {
  margin: 0 0 12px;
  color: #0069d8;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.arc h2 {
  margin: 0;
  color: #0a0a0b;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}

.arc p { max-width: 520px; margin: 18px 0 0; color: #52525b; font-size: 1.08rem; line-height: 1.6; }

.arc .arc__note { margin-top: 22px; color: #67676f; font-size: 0.85rem; }

.arc__link:not(#tw-noop),
.arc__link:not(#tw-noop):visited {
  display: inline-block;
  margin-top: 22px;
  color: #0069d8;
  font-weight: 600;
  text-decoration: none;
}

.arc__link:not(#tw-noop):hover { color: #0056b3; text-decoration: underline; text-underline-offset: 3px; }

/* In a 16:9 card: the phone rises from the bottom edge, so the tracked
   engine fills the card. */
.arc-card-media { background: linear-gradient(180deg, #f0f3f4 0%, #e9ecee 100%); }

.arc-card-media .arc-phone {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 40%;
  max-width: 250px;
  transform: translateX(-50%);
}

/* In a tall panel (services hero): two whole phones, sized by the panel height. */
.arc-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4%;
  padding: 22px 16px 58px;
  background: linear-gradient(180deg, #f0f3f4 0%, #e9ecee 100%);
}

.arc-stage .arc-phone {
  height: 100%;
  max-width: 46%;
  padding: 5px;
  border-radius: 26px;
}

.arc-stage .arc-phone video {
  width: auto;
  max-width: 100%;
  height: 100%;
  border-radius: 21px;
}

.arc-stage .arc-phone::after { --arc-btn-gap: 30px; }

@media (max-width: 760px) {
  .arc__inner,
  .arc__inner--pair { grid-template-columns: minmax(0, 1fr); }
  .arc__phones .arc-phone { width: min(240px, 75%); }
  .arc__inner--pair .arc__phones .arc-phone { width: calc(50% - 8px); }
  .arc-phone { padding: 6px; border-radius: 30px; }
  .arc-phone video { border-radius: 24px; }
  .arc-phone__label { font-size: 0.76rem; }
}

@media (max-width: 480px) {
  .arc__inner--pair .arc__phones .arc-phone { padding: 4px; border-radius: 22px; }
  .arc__inner--pair .arc__phones .arc-phone video { border-radius: 18px; }
  .arc__inner--pair .arc__phones .arc-phone::after { --arc-btn-gap: 30px; }
}
