.m97-page section[id] { scroll-margin-top: 84px; }
.m97-page a:focus-visible,
.m97-page button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.m97-hero {
  position: relative;
  min-height: clamp(620px, 84svh, 820px);
  display: flex;
  align-items: center;
  padding: 132px 0 76px;
  background:
    radial-gradient(ellipse 64% 58% at 76% 48%, rgba(45, 90, 61, .22) 0%, rgba(16, 22, 18, .08) 54%, transparent 100%),
    linear-gradient(180deg, #090C0A 0%, #101411 100%);
  border-bottom: 1px solid rgba(243, 240, 232, .12);
  color: #F3F0E8;
  overflow: hidden;
}

.m97-hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(32px, 4.8vw, 72px);
  align-items: center;
}

.m97-hero-copy,
.m97-hero-stage {
  min-width: 0;
}

.m97-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 5.8vw, 76px);
  line-height: 1.02;
  letter-spacing: -.024em;
  color: #F3F0E8;
}

.m97-hero-sub {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.1vw, 27px);
  line-height: 1.24;
  letter-spacing: -.012em;
  color: rgba(243, 240, 232, .9);
  text-wrap: balance;
}

.m97-hero-lead {
  margin-top: 20px;
  max-width: 52ch;
  font-size: clamp(15px, 1.2vw, 16.5px);
  line-height: 1.68;
  color: rgba(243, 240, 232, .8);
}

.m97-hero-lead strong {
  color: #F3F0E8;
  font-weight: 500;
}

.m97-hero .lf-actions { margin-top: 28px; }
.m97-hero .pill {
  padding: 13px 20px;
  font-size: 13.5px;
  background: #E9E4D8;
  color: var(--ink);
}
.m97-hero .pill:hover { background: #FFF; }
.m97-hero .pill.ghost {
  background: transparent;
  color: #F3F0E8;
  box-shadow: inset 0 0 0 1px rgba(243, 240, 232, .5);
}
.m97-hero .pill.ghost:hover { background: rgba(243, 240, 232, .12); }

.m97-hero-stage {
  margin: 0;
  border: 1px solid rgba(243, 240, 232, .14);
  border-radius: 10px;
  background: #0B0F0D;
  overflow: hidden;
  box-shadow: 0 34px 72px -32px rgba(0, 0, 0, .78);
}

.m97-hero-media {
  position: relative;
  aspect-ratio: 1568 / 984;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0B0F0D;
}

.m97-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.m97-hero-stage figcaption {
  padding: 12px 18px 13px;
  border-top: 1px solid rgba(243, 240, 232, .1);
  background: rgba(10, 13, 11, .92);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  color: rgba(243, 240, 232, .72);
}

.m97-sci-figure {
  margin-top: 38px;
  border: 1px solid var(--border);
  background: #FBFAF8;
  overflow: hidden;
}

.m97-sci-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #FBFAF8;
}

.m97-sci-figure figcaption {
  padding: 16px 22px 18px;
  border-top: 1px solid var(--border);
  background: #F6F4EE;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.m97-sci-figure figcaption b {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -.01em;
  color: var(--text);
}

.m97-sci-figure figcaption span {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}

.m97-oled-gallery {
  background: #080A09;
  border-color: var(--border);
}

.m97-oled-gallery > figure.lf-figura {
  background: #080A09;
}

.m97-oled-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4.2vw, 52px);
  background:
    radial-gradient(ellipse 68% 72% at 50% 46%, #161E19 0%, #070908 74%, #040504 100%);
  overflow: hidden;
}

.m97-oled-bezel {
  position: relative;
  width: min(100%, 580px);
  aspect-ratio: 8 / 5;
  border-radius: 8px;
  border: 1px solid rgba(232, 240, 235, .2);
  background: #020302;
  overflow: hidden;
  box-shadow:
    0 24px 56px -18px rgba(0, 0, 0, .9),
    0 0 0 6px rgba(255, 255, 255, .03);
}

.m97-oled-gallery > figure.lf-figura .m97-oled-bezel img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--photo-width, 100%);
  max-width: none;
  height: auto;
  aspect-ratio: auto;
  object-fit: cover;
  background: transparent;
  transform: translate(calc(-50% + var(--photo-x, 0%)), calc(-50% + var(--photo-y, 0%))) rotate(var(--photo-angle, 0deg));
}

.m97-photo-splash { --photo-width: 100%; --photo-x: 0%; --photo-y: 0%; --photo-angle: 0deg; }
.m97-photo-mode { --photo-width: 104%; --photo-x: 0%; --photo-y: 1%; --photo-angle: 0deg; }
.m97-photo-protocols { --photo-width: 108%; --photo-x: 5.5%; --photo-y: 3%; --photo-angle: 0deg; }
.m97-photo-config { --photo-width: 100%; --photo-x: 1%; --photo-y: 0%; --photo-angle: -.22deg; }
.m97-photo-monitor { --photo-width: 104%; --photo-x: 8.1%; --photo-y: .6%; --photo-angle: -.15deg; }
.m97-photo-log { --photo-width: 109%; --photo-x: 5.5%; --photo-y: 6%; --photo-angle: -.19deg; }

.m97-controls-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--border);
  background: var(--border);
}

.m97-control-item {
  padding: 22px 24px;
  background: var(--bg);
}

.m97-control-item b {
  display: block;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.3;
  color: var(--text);
}

.m97-control-item span {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
}

.m97-disclaimer {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 2px solid var(--warm);
  background: var(--bg);
  max-width: 82ch;
}

.m97-disclaimer p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-2);
}

.m97-disclaimer strong {
  color: var(--text);
  font-weight: 600;
}

.m97-nowrap {
  white-space: nowrap;
}

@media (max-width: 960px) {
  .m97-hero {
    min-height: auto;
    padding: 112px 0 56px;
  }
  .m97-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .m97-controls-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .m97-hero h1 { font-size: clamp(42px, 11.4vw, 58px); }
  .m97-hero .lf-actions .pill { width: 100%; justify-content: center; }
  .m97-oled-viewport { aspect-ratio: 4 / 3; padding: 18px; }
  .m97-sci-figure figcaption { padding: 14px 16px 16px; }
}
