@media (min-width: 901px) {
  .fm-study .fm-component-board.is-spec article.is-wide { padding: 46px !important; }
  .fm-study .fm-component-board.is-spec article.is-wide > small { margin-bottom: 24px !important; font-size: 32px !important; line-height: 1.4 !important; }
  .fm-study .fm-component-board.is-spec article.is-wide > b { margin-bottom: 18px !important; font-size: 48px !important; line-height: 1.3 !important; }
  .fm-study .fm-component-board.is-spec article.is-wide > p { font-size: 34px !important; font-weight: 350 !important; line-height: 1.65 !important; }
  .fm-study .fm-component-board.is-spec article.is-wide .spec-task span,
  .fm-study .fm-component-board.is-spec article.is-wide .spec-task strong { font-size: 34px !important; line-height: 1.45 !important; }
  .fm-study .fm-component-board.is-spec article.is-wide .spec-task i { font-size: 28px !important; line-height: 1.45 !important; }
  .fm-study .fm-component-board.is-spec article.is-span-two {
    grid-column: span 2 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 170px !important;
    grid-template-rows: auto auto 1fr !important;
    column-gap: 36px !important;
  }
  .fm-study .fm-component-board.is-spec article.is-span-two > small,
  .fm-study .fm-component-board.is-spec article.is-span-two > b,
  .fm-study .fm-component-board.is-spec article.is-span-two > p { grid-column: 1 !important; }
  .fm-study .fm-component-board.is-spec article.is-span-two .ring {
    grid-column: 2 !important;
    grid-row: 1 / 4 !important;
    align-self: center !important;
    margin: 0 !important;
  }

  .fm-study .fm-system-grid { grid-template-columns: 1.25fr .85fr 1.35fr !important; }
  .fm-study .fm-system-grid > article { min-height: 650px !important; padding: 46px 40px !important; overflow: hidden !important; }
  .fm-study .fm-system-grid small { margin-bottom: 34px !important; font-size: 30px !important; line-height: 1.35 !important; }
  .fm-study .fm-color > div { grid-template-columns: 58px 120px minmax(0, 1fr) !important; gap: 14px !important; min-height: 48px !important; margin: 17px 0 !important; }
  .fm-study .fm-color i { width: 58px !important; height: 32px !important; }
  .fm-study .fm-color b { margin: 0 !important; font-size: 28px !important; font-weight: 400 !important; line-height: 1.3 !important; white-space: nowrap !important; }
  .fm-study .fm-color span { margin: 0 !important; font-size: 26px !important; font-weight: 400 !important; line-height: 1.3 !important; white-space: nowrap !important; }
  .fm-study .fm-type > strong { font-size: 104px !important; line-height: 1 !important; }
  .fm-study .fm-type > div { grid-template-columns: 55px minmax(120px, 1fr) !important; gap: 22px 16px !important; margin-top: 38px !important; }
  .fm-study .fm-type b,
  .fm-study .fm-type span { font-size: 30px !important; line-height: 1.3 !important; white-space: nowrap !important; }
  .fm-study .fm-buttons { gap: 12px !important; }
  .fm-study .fm-buttons button { display: flex !important; align-items: center !important; justify-content: center !important; box-sizing: border-box !important; height: 70px !important; padding: 0 20px !important; font-size: 30px !important; font-weight: 400 !important; line-height: 1.2 !important; white-space: nowrap !important; }
  .fm-study .fm-states { gap: 8px !important; margin: 24px 0 !important; }
  .fm-study .fm-states i { display: inline-flex !important; align-items: center !important; min-height: 42px !important; padding: 7px 10px !important; font-size: 22px !important; line-height: 1.2 !important; }
  .fm-study .fm-component label { align-items: center !important; min-height: 68px !important; padding: 14px 0 !important; font-size: 30px !important; line-height: 1.3 !important; }
  .fm-study .fm-component label b { font-size: 30px !important; line-height: 1.3 !important; text-align: right !important; }
}

@media (max-width: 720px) {
  .fm-study .fm-component-board.is-spec article.is-span-two {
    grid-column: auto !important;
    display: block !important;
  }
}

/* Final fire-mobile cleanup: simpler mockups, tighter spacing, calmer type. */
.fm-study {
  width: min(86vw, 1500px) !important;
}

.fm-study .fm-section {
  padding-top: 92px !important;
  padding-bottom: 92px !important;
}

.fm-study .fm-section > header {
  max-width: 980px !important;
  margin-bottom: 42px !important;
}

.fm-study .fm-section > header h2 {
  margin: 12px 0 10px !important;
  font-size: clamp(34px, 2.5vw, 52px) !important;
  line-height: 1.18 !important;
}

.fm-study .fm-hero-copy h1 {
  margin: 18px 0 !important;
  font-size: clamp(48px, 4.2vw, 78px) !important;
  line-height: 1.08 !important;
}

.fm-study .fm-hero-copy p,
.fm-study .fm-section > header p,
.fm-study .fm-overview-grid p,
.fm-study .fm-task-copy p,
.fm-study .fm-panorama-detail p,
.fm-study .fm-inspection-grid p,
.fm-study .fm-ai-notes p,
.fm-study .fm-handoff-grid p,
.fm-study .fm-ai-workflow p,
.fm-study .fm-summary p {
  font-size: clamp(16px, 1vw, 20px) !important;
  line-height: 1.65 !important;
}

.fm-study .fm-overview-grid b,
.fm-study .fm-process strong,
.fm-study .fm-task-copy h3,
.fm-study .fm-panorama-detail h3,
.fm-study .fm-inspection-grid h3,
.fm-study .fm-ai-notes h3,
.fm-study .fm-handoff-grid h3,
.fm-study .fm-ai-workflow h3,
.fm-study .fm-summary b {
  font-size: clamp(22px, 1.45vw, 30px) !important;
  line-height: 1.25 !important;
}

.fm-study .fm-section > header > span,
.fm-study .fm-hero-copy > span,
.fm-study .fm-system-grid small,
.fm-study .fm-task-copy > span,
.fm-study .fm-panorama-detail aside > span,
.fm-study .fm-compare span,
.fm-study .fm-inspection-grid article > span,
.fm-study .fm-ai-notes b,
.fm-study .fm-handoff-grid article > b,
.fm-study .fm-handoff-grid span,
.fm-study .fm-ai-workflow article > b,
.fm-study .fm-device figcaption {
  font-size: clamp(13px, .82vw, 16px) !important;
  line-height: 1.45 !important;
}

.fm-study .fm-process span,
.fm-study .fm-color span,
.fm-study .fm-type span,
.fm-study .fm-task-copy li,
.fm-study .fm-device-line span,
.fm-study .fm-handoff-flow span,
.fm-study .fm-component label,
.fm-study .fm-buttons button,
.fm-study .fm-states i {
  font-size: clamp(14px, .9vw, 17px) !important;
  line-height: 1.5 !important;
}

.fm-study .fm-hero {
  min-height: 720px !important;
  padding-top: 96px !important;
  padding-bottom: 96px !important;
  overflow: visible !important;
}

.fm-study .fm-hero-copy > div {
  gap: 8px !important;
  margin-top: 26px !important;
}

.fm-study .fm-hero-copy i {
  padding: 8px 12px !important;
  font-size: 14px !important;
}

.fm-study .fm-hero-stage {
  min-height: 560px !important;
  max-width: 660px !important;
  transform: translateX(-2vw) !important;
}

.fm-study .fm-hero-stage .fm-device {
  width: min(24vw, 310px) !important;
}

.fm-study .fm-hero-stage .is-main {
  left: 38% !important;
}

.fm-study .fm-hero-stage .is-left {
  top: 14% !important;
  left: 8% !important;
  width: min(20vw, 255px) !important;
}

.fm-study .fm-hero-stage .is-right {
  top: 18% !important;
  right: 4% !important;
  width: min(19vw, 240px) !important;
}

.fm-study .fm-device > div,
.fm-study .fm-wall-phone > div {
  padding: 0 !important;
  border: 1px solid rgba(172, 207, 217, .46) !important;
  border-radius: 24px !important;
  background: #05090d !important;
  box-shadow: 0 22px 48px rgba(0, 0, 0, .45), 0 0 18px rgba(32, 222, 244, .06) !important;
}

.fm-study .fm-device > div::before,
.fm-study .fm-wall-phone > div::before {
  display: none !important;
}

.fm-study .fm-device img,
.fm-study .fm-wall-phone img {
  border-radius: 22px !important;
  object-fit: cover !important;
  object-position: top center !important;
}

.fm-study .fm-overview-grid article,
.fm-study .fm-process article,
.fm-study .fm-handoff-grid article,
.fm-study .fm-ai-workflow article,
.fm-study .fm-summary article {
  min-height: 0 !important;
  padding: 26px 24px !important;
}

.fm-study .fm-process {
  margin-top: 44px !important;
}

.fm-study .fm-system-grid > article {
  min-height: 0 !important;
  padding: 30px 28px !important;
}

.fm-study .fm-system-grid small {
  margin-bottom: 20px !important;
}

.fm-study .fm-color > div {
  min-height: 0 !important;
  margin: 10px 0 !important;
}

.fm-study .fm-color b,
.fm-study .fm-type b,
.fm-study .fm-type span,
.fm-study .fm-component label b {
  font-size: clamp(14px, .9vw, 17px) !important;
}

.fm-study .fm-type > strong {
  font-size: clamp(58px, 4vw, 86px) !important;
}

.fm-study .fm-type > div {
  gap: 12px 14px !important;
  margin-top: 24px !important;
}

.fm-study .fm-buttons button {
  height: 44px !important;
  padding: 0 14px !important;
}

.fm-study .fm-component label {
  min-height: 0 !important;
  padding: 10px 0 !important;
}

.fm-study .fm-task-layout,
.fm-study .fm-ai-layout {
  gap: 3vw !important;
}

.fm-study .fm-device-line {
  margin-bottom: 40px !important;
}

.fm-study .fm-device-grid {
  gap: 2vw !important;
}

.fm-study .fm-panorama-detail {
  gap: 4vw !important;
  margin-top: 72px !important;
}

.fm-study .fm-panorama-detail figure {
  height: 420px !important;
}

.fm-study .fm-inspection-grid {
  gap: 50px 3vw !important;
}

.fm-study .fm-inspection-grid .fm-device,
.fm-study .fm-task-layout > .fm-device,
.fm-study .fm-ai-layout > .fm-device {
  max-width: 300px !important;
}

.fm-study .fm-upload-flow {
  gap: 12px !important;
}

.fm-study .fm-phone-wall {
  height: auto !important;
  min-height: 0 !important;
  padding: 70px 46px 86px !important;
  gap: 26px 24px !important;
}

.fm-study .fm-wall-phone:nth-child(n) {
  transform: rotate(-4deg) translateY(var(--stagger, 0)) scale(.82) !important;
}

.fm-study .fm-handoff-flow {
  gap: 12px !important;
  margin-top: 38px !important;
}

.fm-study .fm-handoff-flow span {
  padding: 15px 16px !important;
}

/* Component board compact pass. */
.fm-study .fm-component-board.is-spec {
  grid-template-columns: 1.15fr .85fr .85fr !important;
  gap: 0 !important;
}

.fm-study .fm-component-board.is-spec article,
.fm-study .fm-component-board.is-spec article.is-wide,
.fm-study .fm-component-board.is-spec article.is-span-two {
  min-height: 0 !important;
  padding: 30px 34px !important;
}

.fm-study .fm-component-board.is-spec article.is-wide {
  grid-column: auto !important;
}

.fm-study .fm-component-board.is-spec article.is-span-two {
  grid-column: span 1 !important;
  display: block !important;
}

.fm-study .fm-component-board.is-spec small,
.fm-study .fm-component-board.is-spec article.is-wide > small,
.fm-study .fm-component-board.is-spec article.is-span-two > small {
  margin-bottom: 14px !important;
  font-size: clamp(15px, .95vw, 19px) !important;
  letter-spacing: .16em !important;
  line-height: 1.35 !important;
}

.fm-study .fm-component-board.is-spec b,
.fm-study .fm-component-board.is-spec article.is-wide > b,
.fm-study .fm-component-board.is-spec article.is-span-two > b {
  margin-bottom: 12px !important;
  font-size: clamp(21px, 1.35vw, 28px) !important;
  line-height: 1.3 !important;
}

.fm-study .fm-component-board.is-spec p,
.fm-study .fm-component-board.is-spec li,
.fm-study .fm-component-board.is-spec span,
.fm-study .fm-component-board.is-spec strong,
.fm-study .fm-component-board.is-spec em,
.fm-study .fm-component-board.is-spec label,
.fm-study .fm-component-board.is-spec article.is-wide > p,
.fm-study .fm-component-board.is-spec article.is-wide .spec-task span,
.fm-study .fm-component-board.is-spec article.is-wide .spec-task strong,
.fm-study .fm-component-board.is-spec article.is-wide .spec-task i {
  font-size: clamp(15px, .95vw, 18px) !important;
  line-height: 1.55 !important;
}

.fm-study .spec-task {
  margin-top: 24px !important;
  padding: 24px 26px !important;
}

.fm-study .spec-task span {
  padding: 8px 12px !important;
  font-size: clamp(16px, 1vw, 20px) !important;
}

.fm-study .spec-task strong {
  margin: 18px 0 10px !important;
  font-size: clamp(24px, 1.55vw, 32px) !important;
}

.fm-study .spec-tags,
.fm-study .spec-tabs {
  gap: 10px !important;
  margin-top: 20px !important;
}

.fm-study .spec-tags i,
.fm-study .spec-tabs i {
  min-height: 34px !important;
  padding: 8px 13px !important;
  font-size: clamp(14px, .9vw, 17px) !important;
}

.fm-study .fm-component-board.is-spec button {
  height: 42px !important;
  padding: 0 16px !important;
  font-size: clamp(14px, .9vw, 17px) !important;
}

.fm-study .fm-component-board.is-spec label {
  min-height: 0 !important;
  padding: 12px 0 !important;
}

.fm-study .fm-component-board.is-spec ol {
  margin-top: 18px !important;
}

.fm-study .fm-component-board.is-spec ol li {
  min-height: 38px !important;
  padding-left: 46px !important;
}

.fm-study .spec-photo {
  gap: 8px !important;
  margin-top: 18px !important;
}

.fm-study .spec-photo i {
  height: 58px !important;
}

.fm-study .fm-component-board.is-spec .ring {
  width: 108px !important;
  height: 108px !important;
  margin: 22px 0 0 !important;
  font-size: 24px !important;
}

/* Page extension phone wall: enlarge screenshots for readability. */
.fm-study .fm-gallery {
  padding-top: 78px !important;
}

.fm-study .fm-gallery > header {
  margin-bottom: 34px !important;
}

.fm-study .fm-phone-wall {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  grid-auto-rows: 500px !important;
  min-height: 1840px !important;
  padding: 76px 62px 128px !important;
  gap: 128px 34px !important;
}

.fm-study .fm-phone-wall::before,
.fm-study .fm-phone-wall::after {
  display: none !important;
}

.fm-study .fm-wall-phone:nth-child(n) {
  transform: rotate(-4deg) translateY(var(--stagger, 0)) scale(1.08) !important;
}

.fm-study .fm-wall-phone:nth-child(5n + 2),
.fm-study .fm-wall-phone:nth-child(5n + 4) {
  --stagger: -18px !important;
}

.fm-study .fm-wall-phone:nth-child(5n + 1),
.fm-study .fm-wall-phone:nth-child(5n + 3),
.fm-study .fm-wall-phone:nth-child(5n + 5) {
  --stagger: 54px !important;
}
