/* ============================================
   CleverX marketing design system (lx)
   Shared by every marketing page. First built for /ai.
   Type, rhythm and restraint modelled on linear.app
   (see website/08-linear-design-study.md), on the
   CleverX stone palette.
   ============================================ */
:root {
  --lx-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --lx-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --lx-line: rgb(231 229 228);
  --lx-line-dark: rgba(255, 255, 255, 0.08);
}

html {
  scroll-behavior: smooth;
}

main.lx {
  font-family:
    'Inter var',
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-feature-settings: 'cv01', 'ss03';
}

/* ---- Scroll progress hairline ---- */
.lx-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1001;
  pointer-events: none;
}
.lx-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgb(180 83 9), rgb(251 191 36));
}

/* ---- Type: no single words stranded on a last line ---- */
main h1,
main h2,
main h3 {
  text-wrap: balance;
}
main p,
main li {
  text-wrap: pretty;
}

/* ---- Reveal on enter (only once JS is running) ---- */
.lx-js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.8s var(--lx-ease-out),
    transform 0.8s var(--lx-ease-out);
  transition-delay: var(--d, 0s);
}
.lx-js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---- Layout ---- */
.lx-wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}
.lx-section {
  padding-block: 72px;
}
.lx-head {
  display: grid;
  gap: 20px;
  padding-bottom: 48px;
}
@media (min-width: 640px) {
  .lx-wrap {
    padding-inline: 32px;
  }
}
@media (min-width: 768px) {
  .lx-section {
    padding-block: 96px;
  }
}
@media (min-width: 1024px) {
  .lx-wrap {
    padding-inline: 40px;
  }
  .lx-section {
    padding-block: 128px;
  }
  .lx-head {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding-bottom: 80px;
  }
}

/* ---- Type scale ---- */
.lx-h1 {
  font-size: clamp(2.125rem, 1.2rem + 3.8vw, 4rem);
  font-weight: 510;
  line-height: 1.02;
  letter-spacing: -0.022em;
}
.lx-h2 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  font-weight: 510;
  line-height: 1.06;
  letter-spacing: -0.022em;
}
.lx-h3 {
  font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2rem);
  font-weight: 510;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.lx-statement {
  font-size: clamp(1.625rem, 1.1rem + 2vw, 2.625rem);
  font-weight: 510;
  line-height: 1.16;
  letter-spacing: -0.022em;
}
.lx-quiet {
  color: rgb(120 113 108);
}
.lx-lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.005em;
}
@media (min-width: 640px) {
  .lx-lead {
    font-size: 1.125rem;
  }
}
.lx-body {
  font-size: 0.9375rem;
  line-height: 1.6;
  letter-spacing: -0.011em;
}
.lx-caption-title {
  font-size: 0.9375rem;
  font-weight: 510;
  line-height: 1.5;
  letter-spacing: -0.011em;
}
.lx-eyebrow {
  font-size: 13px;
  font-weight: 510;
}
.lx-mono {
  font-family:
    ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- Phones: slightly larger labels, tighter artwork ---- */
@media (max-width: 639px) {
  .lx-mono {
    font-size: 12px;
  }
  .lx-fig-art {
    max-width: 180px;
    margin: 20px 0 24px;
  }
  .lx-panel-art {
    min-height: 196px;
    padding: 24px 16px;
  }
}

/* ---- Buttons and links ---- */
.lx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 510;
  letter-spacing: -0.01em;
  transition:
    background-color 0.16s var(--lx-ease),
    transform 0.16s var(--lx-ease);
}
.lx-btn:active {
  transform: scale(0.97);
}
.lx-btn .lx-arrow {
  transition: transform 0.2s var(--lx-ease);
}
.lx-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 510;
  transition: filter 0.16s var(--lx-ease);
}
@media (any-hover: hover) {
  .lx-btn:hover .lx-arrow {
    transform: translateX(2px);
  }
  .lx-link:hover {
    filter: brightness(1.4);
  }
}
.lx-btn:focus-visible,
.lx-link:focus-visible {
  outline: 2px solid rgb(214 211 209);
  outline-offset: 3px;
}

/* ---- Hero, light ---- */
.lx-hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 128px 0 40px;
  background: #fafaf9;
}
@media (min-width: 1024px) {
  .lx-hero {
    padding: 136px 0 48px;
  }
}
.lx-hero-inner {
  position: relative;
  z-index: 2;
}
/* Centred hero subheads read better with even line lengths. */
.lx-hero .lx-lead {
  text-wrap: balance;
}
.lx-btn-dark {
  background: #1c1917;
  color: #fafaf9;
}
.lx-btn-outline {
  border: 1px solid rgb(214 211 209);
  color: #1c1917;
}
@media (any-hover: hover) {
  .lx-btn-dark:hover {
    background: #292524;
  }
  .lx-btn-outline:hover {
    border-color: rgb(168 162 158);
    background: #fff;
  }
}
.lx-hero .lx-btn:focus-visible {
  outline-color: rgb(28 25 23);
}
.lx-logos-light {
  background: #fafaf9;
}

/* An almost invisible layer: warm light from the top, and a faint grid
   that stays clear behind the text and fades out before the logos. */
.lx-hero-light,
.lx-hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lx-hero-light {
  background:
    radial-gradient(
      ellipse 50% 42% at 50% 0%,
      rgba(251, 191, 36, 0.08) 0%,
      rgba(251, 191, 36, 0) 70%
    ),
    radial-gradient(
      ellipse 85% 60% at 50% 0%,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0) 70%
    );
}
.lx-hero-grid {
  background-image:
    linear-gradient(to right, rgba(28, 25, 23, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 25, 23, 0.05) 1px, transparent 1px);
  background-position: center top;
  background-size: 72px 72px;
  -webkit-mask-image:
    radial-gradient(
      ellipse 68% 80% at 50% 40%,
      transparent 34%,
      #000 62%,
      transparent 92%
    ),
    linear-gradient(to bottom, #000 55%, transparent 92%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(
      ellipse 68% 80% at 50% 40%,
      transparent 34%,
      #000 62%,
      transparent 92%
    ),
    linear-gradient(to bottom, #000 55%, transparent 92%);
  mask-composite: intersect;
}

/* Short lines read better balanced than ragged. */
.lx-row p,
.lx-tstep h3 {
  text-wrap: balance;
}

/* ---- Solution: figure columns ---- */
.lx-figs {
  display: grid;
  border-top: 1px solid var(--lx-line);
}
.lx-fig {
  padding: 28px 0 36px;
}
.lx-fig + .lx-fig {
  border-top: 1px solid var(--lx-line);
}
.lx-fig-art {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 28px 0 32px;
  color: rgb(168 162 158);
  transition: color 0.3s var(--lx-ease);
}
.lx-fig-art * {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lx-fig-art .lx-accent {
  stroke: rgb(217 119 6);
}
.lx-js .lx-fig .lx-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--lx-ease);
  transition-delay: calc(var(--d, 0s) + 0.15s);
}
.lx-js .lx-fig.is-in .lx-draw {
  stroke-dashoffset: 0;
}
.lx-js .lx-fig .lx-accent {
  transition-delay: calc(var(--d, 0s) + 0.9s);
}
@media (any-hover: hover) {
  .lx-fig:hover .lx-fig-art {
    color: rgb(68 64 60);
  }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .lx-figs {
    grid-template-columns: repeat(2, 1fr);
  }
  .lx-fig {
    padding: 28px 28px 36px;
  }
  .lx-fig:nth-child(odd) {
    padding-left: 0;
  }
  .lx-fig:nth-child(even) {
    padding-right: 0;
    border-left: 1px solid var(--lx-line);
  }
  .lx-fig + .lx-fig {
    border-top: 0;
  }
  .lx-fig:nth-child(n + 3) {
    border-top: 1px solid var(--lx-line);
  }
}
@media (min-width: 1024px) {
  .lx-figs {
    grid-template-columns: repeat(4, 1fr);
  }
  .lx-fig {
    padding: 28px 28px 8px;
  }
  .lx-fig:first-child {
    padding-left: 0;
  }
  .lx-fig:last-child {
    padding-right: 0;
  }
  .lx-fig + .lx-fig {
    border-top: 0;
    border-left: 1px solid var(--lx-line);
  }
}

/* ---- Who you can hire: ruled table ---- */
.lx-table {
  border-top: 1px solid var(--lx-line);
}
.lx-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 6px 12px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--lx-line);
}
.lx-row p {
  grid-column: 2;
}
.lx-row-name {
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
  font-weight: 510;
  line-height: 1.25;
  letter-spacing: -0.02em;
  transition: transform 0.4s var(--lx-ease);
}
@media (min-width: 768px) {
  .lx-row {
    grid-template-columns: 64px 1.1fr 1.2fr;
    gap: 16px;
    padding: 26px 0;
  }
  .lx-row p {
    grid-column: auto;
  }
}
@media (any-hover: hover) {
  .lx-row:hover .lx-row-name {
    transform: translateX(4px);
  }
}

/* ---- How it works: timeline ---- */
.lx-timeline {
  position: relative;
}
.lx-tsteps {
  display: grid;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lx-tstep {
  position: relative;
  padding-left: 32px;
}
.lx-rail {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 4px;
  width: 1px;
  background: var(--lx-line);
}
.lx-rail-fill {
  position: absolute;
  inset: 0;
  background: rgb(28 25 23);
  transform-origin: top;
  transform: scaleY(var(--p, 0));
}
.lx-tdot {
  position: absolute;
  top: 3px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid rgb(214 211 209);
  border-radius: 999px;
  background: #fff;
  transition:
    background-color 0.4s var(--lx-ease),
    border-color 0.4s var(--lx-ease);
}
.lx-tstep.is-reached .lx-tdot {
  border-color: rgb(28 25 23);
  background: rgb(28 25 23);
}
@media (min-width: 1024px) {
  .lx-tsteps {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
  .lx-tstep {
    padding-top: 40px;
    padding-left: 0;
  }
  .lx-rail {
    top: 4px;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 1px;
  }
  .lx-rail-fill {
    transform-origin: left;
    transform: scaleX(var(--p, 0));
  }
  .lx-tdot {
    top: 0;
  }
}

/* ---- Checks: panels with interface mock-ups ---- */
.lx-panels {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .lx-panels {
    grid-template-columns: repeat(2, 1fr);
  }
}
.lx-panel {
  overflow: hidden;
  border: 1px solid var(--lx-line);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s var(--lx-ease);
}
@media (any-hover: hover) {
  .lx-panel:hover {
    border-color: rgb(214 211 209);
  }
}
.lx-panel-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  padding: 28px 20px;
  border-bottom: 1px solid rgb(245 245 244);
  background: linear-gradient(180deg, rgb(250 250 249) 0%, #fff 100%);
}
.lx-panel-cap {
  padding: 22px 24px 26px;
}
.lx-mini {
  width: 100%;
  max-width: 330px;
  overflow: hidden;
  border: 1px solid var(--lx-line);
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(28, 25, 23, 0.04),
    0 10px 28px -12px rgba(28, 25, 23, 0.12);
  font-size: 13px;
}
.lx-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgb(245 245 244);
}
.lx-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
}
.lx-mini-row + .lx-mini-row {
  border-top: 1px solid rgb(245 245 244);
}
.lx-avatar-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgb(231 229 228);
  color: rgb(68 64 60);
  font-size: 9px;
  font-weight: 600;
}
.lx-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.08);
  color: rgb(146 64 14);
  font-size: 11.5px;
  font-weight: 510;
}
.lx-pill svg {
  width: 11px;
  height: 11px;
}
.lx-tick {
  display: inline-flex;
  color: rgb(217 119 6);
}
.lx-js .lx-panel .lx-pill,
.lx-js .lx-panel .lx-tick {
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.4s var(--lx-ease),
    transform 0.5s var(--lx-ease-out);
  transition-delay: calc(var(--d, 0s) + var(--pd, 0s) + 0.35s);
}
.lx-js .lx-panel.is-in .lx-pill,
.lx-js .lx-panel.is-in .lx-tick {
  opacity: 1;
  transform: none;
}
.lx-video {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 124px;
  background:
    radial-gradient(
      ellipse 60% 70% at 50% 60%,
      rgba(120, 113, 108, 0.35) 0%,
      transparent 70%
    ),
    #1c1917;
}
.lx-avatar-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgb(68 64 60);
  color: rgb(231 229 228);
  font-size: 15px;
  font-weight: 510;
}
.lx-rec {
  position: absolute;
  top: 10px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgb(214 211 209);
  font-size: 11px;
}
.lx-rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgb(248 113 113);
}
.lx-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgb(28 25 23);
  color: #fff;
}
.lx-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}
.lx-wave span {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: rgb(214 211 209);
  transform: scaleY(var(--h, 0.5));
}
.lx-js .lx-panel.is-in .lx-wave span {
  animation: lx-wave 1.6s ease-in-out infinite alternate;
  animation-delay: var(--wd, 0s);
}
@keyframes lx-wave {
  from {
    transform: scaleY(calc(var(--h, 0.5) * 0.45));
  }
  to {
    transform: scaleY(var(--h, 0.5));
  }
}

/* ---- Reduced motion: everything visible, nothing moves ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .lx-js .reveal,
  .lx-fig-art,
  .lx-js .lx-fig .lx-draw,
  .lx-row-name,
  .lx-rail-fill,
  .lx-tdot,
  .lx-js .lx-panel .lx-pill,
  .lx-js .lx-panel .lx-tick {
    transition: none !important;
  }
  .lx-js .reveal,
  .lx-js .lx-panel .lx-pill,
  .lx-js .lx-panel .lx-tick {
    opacity: 1;
    transform: none;
  }
  .lx-js .lx-fig .lx-draw {
    stroke-dashoffset: 0;
  }
  .lx-js .lx-panel.is-in .lx-wave span {
    animation: none;
  }
  #right-left-cards {
    animation: none;
  }
}

/* ============================================
   Components added for the homepage (reusable)
   ============================================ */

/* ---- Link arrows ---- */
@media (any-hover: hover) {
  .lx-link:hover .lx-arrow {
    transform: translateX(2px);
  }
}
.lx-link .lx-arrow {
  transition: transform 0.2s var(--lx-ease);
}

/* ---- Product video inside a panel (square source) ---- */
.lx-video-art {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgb(250 250 249);
}
.lx-video-art video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Steps: card with text on top, product video below ---- */
.lx-steps {
  display: grid;
  gap: 16px;
}
.lx-step {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 28px;
  border: 1px solid var(--lx-line);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s var(--lx-ease);
}
.lx-step .lx-video-art {
  border-radius: 12px;
}
@media (any-hover: hover) {
  .lx-step:hover {
    border-color: rgb(214 211 209);
  }
}
@media (min-width: 768px) {
  .lx-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .lx-step {
    padding: 36px;
  }
}
@media (min-width: 1024px) {
  .lx-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Two columns would leave an odd last card alone on its row: let it span
   the row, text beside the video. */
@media (min-width: 768px) and (max-width: 1023px) {
  .lx-step:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }
  .lx-step:last-child:nth-child(odd) > * {
    flex: 1 1 0;
  }
}

/* ---- Tabs: underline, scrolls sideways on small screens ---- */
.lx-tabs-wrap {
  position: relative;
}
.lx-tabs-scroll {
  overflow-x: auto;
  scrollbar-width: none;
}
.lx-tabs-scroll::-webkit-scrollbar {
  display: none;
}
.lx-tabs {
  display: flex;
  gap: 28px;
  width: max-content;
  min-width: 100%;
}
.lx-tab {
  position: relative;
  min-height: 44px;
  padding: 0 1px;
  color: rgb(87 83 78);
  font-size: 14px;
  font-weight: 510;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.16s var(--lx-ease);
}
.lx-tab::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: rgb(28 25 23);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--lx-ease-out);
}
.lx-tab[aria-selected='true'] {
  color: rgb(28 25 23);
}
.lx-tab[aria-selected='true']::after {
  transform: scaleX(1);
}
.lx-tab:focus-visible {
  outline: 2px solid rgb(214 211 209);
  outline-offset: -2px;
  border-radius: 4px;
}
@media (any-hover: hover) {
  .lx-tab:hover {
    color: rgb(68 64 60);
  }
}
@media (max-width: 767px) {
  .lx-tabs-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 48px;
    pointer-events: none;
    background: linear-gradient(
      to left,
      var(--lx-tabs-bg, #fafaf9),
      transparent
    );
  }
}

/* ---- Tab panel: text beside a video ---- */
.lx-method {
  display: grid;
}
.lx-method[hidden] {
  display: none;
}
.lx-js .lx-method {
  animation: lx-fade-in 0.45s var(--lx-ease-out);
}
@keyframes lx-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.lx-method-cap {
  padding: 28px 24px 32px;
}
@media (min-width: 640px) and (max-width: 1023px) {
  .lx-method .lx-video-art {
    aspect-ratio: 4 / 3;
  }
  .lx-method-cap {
    padding: 36px 40px 40px;
  }
}
@media (min-width: 1024px) {
  .lx-method {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .lx-method-cap {
    padding: 48px 56px;
  }
}

/* ---- Headline whose words darken as it scrolls into view ----
   lx.js wraps each word and sets --f from 0 to 1. Without JS the
   heading stays fully dark. */
.lx-fill-on .lx-fill-word {
  color: rgb(28 25 23);
  color: color-mix(
    in srgb,
    rgb(28 25 23) calc(var(--f, 0) * 100%),
    rgb(214 211 209)
  );
}

/* ---- Trust line: label, facts, link ---- */
.lx-trust {
  display: grid;
  gap: 20px;
  padding-block: 40px;
}
.lx-trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lx-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
@media (min-width: 1024px) {
  .lx-trust {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 48px;
    padding-block: 44px;
  }
  .lx-trust-items {
    justify-content: center;
  }
}

/* ---- Split: copy beside an illustration ---- */
.lx-split {
  display: grid;
  gap: 56px;
  align-items: center;
}
.lx-split > * {
  min-width: 0;
}
@media (min-width: 1024px) {
  .lx-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 80px;
  }
}

/* ---- Canvas: the standard for every marketing page (Sharekh, 2026-09-10) ----
   One continuous page colour, no lines between sections, no dark
   sections. Sections are separated by space. For variety, lx-tint gives
   a section a soft stone band that fades in and out, so there is never
   a hard edge. Pages end on a light closing section like the hero. */
main.lx {
  background: #fafaf9;
}
main.lx section {
  background-color: transparent;
}
/* The shared footer keeps its own colour but drops its top line. */
main.lx ~ footer {
  border-top-color: transparent;
}
main.lx .lx-tint {
  background-image: linear-gradient(
    to bottom,
    rgba(245, 245, 244, 0) 0,
    rgb(245 245 244) 180px,
    rgb(245 245 244) calc(100% - 180px),
    rgba(245, 245, 244, 0) 100%
  );
}
/* Below the hero, the light and grid layers fade in from the top too,
   so they never begin on a visible edge. */
/* No glow below the hero: soft radial glows on stone-50 show as rings. */
main.lx section:not(.lx-hero) .lx-hero-light {
  display: none;
}
main.lx section:not(.lx-hero) .lx-hero-grid {
  background-position: center center;
  -webkit-mask-image:
    radial-gradient(
      ellipse 68% 80% at 50% 50%,
      transparent 34%,
      #000 62%,
      transparent 92%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 30%,
      #000 70%,
      transparent 100%
    );
  mask-image:
    radial-gradient(
      ellipse 68% 80% at 50% 50%,
      transparent 34%,
      #000 62%,
      transparent 92%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 30%,
      #000 70%,
      transparent 100%
    );
}

@media (prefers-reduced-motion: reduce) {
  .lx-tab::after,
  .lx-link .lx-arrow {
    transition: none !important;
  }
  .lx-js .lx-method {
    animation: none;
  }
}
