.lx-page {
  --lx-muted: #51635a;
  --lx-rule: #c9cdbd;
  --lx-sage: #e1e6d8;
}

.lx-hero {
  background: #f2f0e5;
  border-bottom: 1px solid #d7d7ca;
}

.lx-hero-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  align-items: center;
  gap: clamp(28px, 4.5vw, 76px);
  padding-block: clamp(36px, 4.6vw, 70px);
}

.lx-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  letter-spacing: .16em;
  color: var(--lx-muted);
}

.lx-kicker::before {
  content: "";
  height: 1px;
  width: 30px;
  background: #947746;
}

.lx-hero h1 {
  margin: 21px 0 24px;
  color: #123d32;
  font: 600 clamp(56px, 6.4vw, 94px)/1.1 var(--serif);
  letter-spacing: .045em;
}

.lx-intro {
  max-width: 22em;
  color: #455c50;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.95;
}

.lx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 20px;
  row-gap: 12px;
  margin-top: 32px;
}

.lx-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  padding: 0 20px;
  background: var(--ink);
  color: #fffdf4;
  font-size: 14px;
}

.lx-cta:hover { background: #285b46; }
.lx-status { color: var(--lx-muted); font-size: 12px; }

.lx-hero-art {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background: #355449;
  height: clamp(360px, 33vw, 478px);
  border: 1px solid #436455;
  box-shadow: 0 14px 36px -24px #173c31;
}

.lx-art-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(130deg, #163c34ed 8%, #2b5548cc 47%, #74846a9e),
    url('assets/study.webp') 53% 56% / cover;
}

.lx-hero-art::after {
  content: "";
  position: absolute;
  inset: 11px;
  z-index: -1;
  border: 1px solid #ded4a663;
}

.lx-device {
  position: absolute;
  height: auto;
  border: 4px solid #cad0c0;
  border-radius: clamp(12px, 1.5vw, 22px);
  background: var(--paper);
  box-shadow: 0 0 0 1px #123228, -12px 18px 26px #102d229c;
}

.lx-device-front {
  width: 43%;
  left: 12%;
  top: 11%;
  transform: rotate(-5deg);
}

.lx-device-back {
  width: 39%;
  left: 54%;
  top: 28%;
  transform: rotate(6deg);
  filter: saturate(.9);
}

.lx-gallery {
  padding-block: clamp(44px, 6vw, 92px) clamp(48px, 6.5vw, 100px);
  scroll-margin-top: 20px;
}

.lx-gallery h2 {
  margin: 0;
  font: 600 clamp(34px, 3.3vw, 50px)/1.25 var(--serif);
  letter-spacing: .055em;
}

.lx-tabs {
  display: flex;
  gap: clamp(8px, 2.5vw, 32px);
  margin-top: 26px;
  border-bottom: 1px solid var(--lx-rule);
}

.lx-tabs button {
  position: relative;
  appearance: none;
  color: var(--lx-muted);
  border: 0;
  border-radius: 0;
  padding: 12px 7px 15px;
  background: transparent;
  font: 500 16px/1.5 var(--sans);
  cursor: pointer;
}

.lx-tabs button:first-child { padding-left: 0; }
.lx-tabs button[aria-selected="true"] { color: #124537; font-weight: 650; }
.lx-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: #1a513e;
}

.lx-tabs button:hover { color: #173f32; }
.lx-tabs button:focus-visible { outline: 2px solid #996c3a; outline-offset: 3px; }

.lx-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(38px, 7vw, 112px);
  align-items: center;
  padding-top: 34px;
}

.lx-panel[hidden], .lx-tabs[hidden] { display: none; }

.lx-panel-copy { max-width: 32em; }

.lx-panel-copy h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font: 600 clamp(28px, 3.1vw, 46px)/1.36 var(--serif);
  letter-spacing: .035em;
}

.lx-panel-copy > p {
  margin: 0;
  font-size: 16px;
  line-height: 1.95;
  color: var(--lx-muted);
}

.lx-facts {
  margin: 26px 0 20px;
  border-bottom: 1px solid var(--lx-rule);
}

.lx-facts div {
  display: grid;
  grid-template-columns: 4.3em 1fr;
  gap: 18px;
  border-top: 1px solid var(--lx-rule);
  padding-block: 14px;
  font-size: 14px;
  line-height: 1.85;
}

.lx-facts dt { color: var(--ink); font-weight: 600; }
.lx-facts dd { margin: 0; font: inherit; color: var(--lx-muted); }

.lx-original {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-block: 7px;
  color: #1c4b39;
  text-decoration: underline;
  text-underline-offset: .38em;
  font-size: 14px;
}

.lx-original:hover { color: #72552d; }

.lx-panel figure {
  display: grid;
  place-items: center;
  margin: 0;
  background: linear-gradient(135deg, #e7e9db, #d5dfcf);
  padding: clamp(22px, 2.9vw, 44px) 18px;
  border: 1px solid #d5dbca;
}

.lx-panel figure a {
  display: block;
  width: min(100%, 251px);
}

.lx-panel figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15px;
  border: 3px solid #bfc6b6;
  box-shadow: 0 2px 4px #213d281a, 0 9px 22px #29463326;
}

@media (max-width: 800px) {
  .lx-hero-grid { gap: 23px; }
  .lx-hero-art { height: clamp(300px, 45vw, 360px); }
  .lx-hero h1 { font-size: clamp(48px, 8vw, 63px); }
  .lx-intro { line-height: 1.8; }
  .lx-hero-actions { margin-top: 21px; }
  .lx-panel { column-gap: 28px; }
  .lx-facts div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 620px) {
  .lx-hero-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 32px 22px; }
  .lx-kicker { font-size: 12px; }
  .lx-hero h1 { font-size: clamp(48px, 12vw, 70px); margin: 15px 0; }
  .lx-intro { font-size: 16px; max-width: 25em; }
  .lx-hero-actions { column-gap: 16px; margin-top: 21px; }
  .lx-cta { min-height: 44px; gap: 14px; padding-inline: 15px; }
  .lx-status { font-size: 12px; }
  .lx-hero-art { height: clamp(212px, 64vw, 318px); }
  .lx-device { border-width: 3px; }
  .lx-device-back { left: 53%; top: 25%; }
  .lx-gallery { padding-block: 38px 44px; }
  .lx-tabs { margin-top: 14px; gap: 16px; }
  .lx-tabs button { padding-block: 11px; font-size: 14px; }
  .lx-panel { grid-template-columns: 1fr; row-gap: 18px; padding-top: 25px; }
  .lx-panel-copy { display: contents; }
  .lx-panel-copy h3 { margin: 0; font-size: 26px; }
  .lx-panel-copy > p { font-size: 15px; }
  .lx-panel figure { grid-row: 3; }
  .lx-facts { margin: 0; }
  .lx-facts div { grid-template-columns: 4.3em 1fr; gap: 12px; }
  .lx-original { justify-self: start; }
  .lx-panel figure a { width: min(100%, 265px); }
}

@media (prefers-reduced-motion: reduce) {
  .lx-page * { scroll-behavior: auto; }
}
