/* ============================================================
   LGDTxTr — custom presentation layer built on self hosted Bulma
   Prefix: lgx   (LGDTxTr + seed letter X)
   Design language: sage + crimson editorial, slab headings
   ============================================================ */

/* ---- Bulma variable customisation (framework fingerprint removal) ---- */
:root {
  --bulma-family-primary: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --bulma-family-secondary: "Roboto Slab", Georgia, "Times New Roman", serif;
  --bulma-family-code: "Roboto", ui-monospace, monospace;
  --bulma-radius: 4px;
  --bulma-radius-small: 3px;
  --bulma-radius-medium: 6px;
  --bulma-radius-large: 8px;
  --bulma-link: #3f6f69;
  --bulma-link-hover: #aa0022;
  --bulma-body-color: #5b6663;
  --bulma-body-background-color: #ffffff;
  --bulma-primary-h: 348;
  --bulma-primary-s: 100%;
  --bulma-primary-l: 33%;
  --bulma-text: #16211f;
  --bulma-text-strong: #0f1817;
}

/* ---- Site tokens ---- */
:root {
  --lgx-ink: #16211f;
  --lgx-ink-soft: #2c3a37;
  --lgx-body: #5b6663;
  --lgx-paper: #ffffff;
  --lgx-mist: #f2f7f6;
  --lgx-mist-deep: #e6efee;
  --lgx-sage: #9cc2bf;
  --lgx-sage-mid: #4c7e78;
  --lgx-sage-deep: #35625d;
  --lgx-crimson: #aa0022;
  --lgx-crimson-deep: #82001a;
  --lgx-line: #dde6e4;
  --lgx-line-soft: #eaf0ef;
  --lgx-shadow: 0 1px 2px rgba(22, 33, 31, 0.04), 0 10px 30px rgba(22, 33, 31, 0.06);
  --lgx-shadow-lift: 0 2px 4px rgba(22, 33, 31, 0.05), 0 18px 44px rgba(22, 33, 31, 0.1);
  --lgx-r-btn: 4px;
  --lgx-r-card: 8px;
  --lgx-r-panel: 14px;
  --lgx-container: 1140px;
  --lgx-gutter: clamp(20px, 4vw, 40px);
  --lgx-step: 8px;
  --lgx-font-display: "Risque", "Roboto Slab", Georgia, serif;
  --lgx-font-head: "Roboto Slab", Georgia, serif;
  --lgx-font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --lgx-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.lgx-body {
  margin: 0;
  font-family: var(--lgx-font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--lgx-body);
  background-color: var(--lgx-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

:where(body.lgx-body) :where(h1, h2, h3, h4) {
  font-family: var(--lgx-font-head);
  color: var(--lgx-ink);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 600;
}

p {
  margin: 0 0 1.05em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--lgx-sage-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s var(--lgx-ease);
}

a:hover {
  color: var(--lgx-crimson);
}

:focus-visible {
  outline: 3px solid var(--lgx-crimson);
  outline-offset: 2px;
  border-radius: 2px;
}

.lgx-skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 999;
  background: var(--lgx-ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--lgx-r-btn);
  font-size: 0.9rem;
  font-weight: 600;
  transition: top 0.2s var(--lgx-ease);
}

.lgx-skip:focus {
  top: 16px;
  color: #fff;
}

/* ---- Layout ---- */
.lgx-wrap {
  width: 100%;
  max-width: var(--lgx-container);
  margin-inline: auto;
  padding-inline: var(--lgx-gutter);
}

.lgx-section {
  padding-block: clamp(56px, 8vw, 104px);
  position: relative;
  scroll-margin-top: 96px;
}

.lgx-section--mist {
  background: var(--lgx-mist);
  border-block: 1px solid var(--lgx-line-soft);
}

.lgx-section--tight {
  padding-block: clamp(44px, 6vw, 72px);
}

.lgx-grid {
  display: grid;
  gap: clamp(20px, 3vw, 30px);
}

.lgx-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lgx-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lgx-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lgx-grid--spaced {
  margin-top: clamp(26px, 3.5vw, 40px);
}

.lgx-grid--inset {
  margin-block: 2em;
}

.lgx-btn--onband {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.lgx-btn--onband:hover {
  background: #fff;
  color: var(--lgx-ink);
}

/* ---- Header / navigation ---- */
.lgx-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--lgx-line);
}

.lgx-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding-block: 12px;
}

.lgx-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
  color: var(--lgx-sage-mid);
  font-family: var(--lgx-font-display);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.lgx-brand:hover {
  color: var(--lgx-crimson);
}

.lgx-brand__dot {
  color: var(--lgx-crimson);
}

.lgx-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lgx-nav.is-open {
  display: flex;
}

.lgx-nav a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--lgx-r-btn);
  text-decoration: none;
  color: var(--lgx-ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
}

.lgx-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  background: var(--lgx-crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--lgx-ease);
}

.lgx-nav a:hover,
.lgx-nav a[aria-current="page"] {
  color: var(--lgx-ink);
}

.lgx-nav a:hover::after,
.lgx-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.lgx-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lgx-burger {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--lgx-line);
  border-radius: var(--lgx-r-btn);
  background: #fff;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.lgx-burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--lgx-ink);
  transition: transform 0.24s var(--lgx-ease), opacity 0.2s var(--lgx-ease);
}

.lgx-burger span:nth-child(1) {
  top: 14px;
}
.lgx-burger span:nth-child(2) {
  top: 20px;
}
.lgx-burger span:nth-child(3) {
  top: 26px;
}

.lgx-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.lgx-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.lgx-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* mobile nav panel styles live in the responsive block below */

/* ---- Buttons ---- */
.lgx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--lgx-r-btn);
  border: 1px solid transparent;
  font-family: var(--lgx-font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.18s var(--lgx-ease), background 0.18s var(--lgx-ease),
    color 0.18s var(--lgx-ease), border-color 0.18s var(--lgx-ease),
    box-shadow 0.18s var(--lgx-ease);
}

.lgx-btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.lgx-btn--solid {
  background: var(--lgx-crimson);
  color: #fff;
  box-shadow: var(--lgx-shadow);
}

.lgx-btn--solid:hover {
  background: var(--lgx-crimson-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--lgx-shadow-lift);
}

.lgx-btn--ghost {
  background: transparent;
  color: var(--lgx-ink);
  border-color: var(--lgx-ink);
}

.lgx-btn--ghost:hover {
  background: var(--lgx-ink);
  color: #fff;
  transform: translateY(-2px);
}

.lgx-btn--light {
  background: #fff;
  color: var(--lgx-ink);
}

.lgx-btn--light:hover {
  background: var(--lgx-mist-deep);
  color: var(--lgx-ink);
  transform: translateY(-2px);
}

.lgx-btn--sm {
  padding: 10px 16px;
  font-size: 0.72rem;
}

.lgx-linkarrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--lgx-sage-deep);
}

.lgx-linkarrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--lgx-ease);
}

.lgx-linkarrow:hover {
  color: var(--lgx-crimson);
}

.lgx-linkarrow:hover svg {
  transform: translateX(4px);
}

/* ---- Type helpers ---- */
.lgx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--lgx-font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lgx-sage-mid);
  margin-bottom: 18px;
}

.lgx-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--lgx-crimson);
  display: inline-block;
}

.lgx-h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.9rem);
}

.lgx-h2 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.lgx-h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
}

.lgx-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.66;
  color: var(--lgx-ink-soft);
}

.lgx-prose p:last-child {
  margin-bottom: 0;
}

.lgx-muted {
  color: var(--lgx-body);
}

/* ---- Hero ---- */
.lgx-hero {
  position: relative;
  padding-block: clamp(36px, 5vw, 72px) clamp(48px, 7vw, 92px);
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 88% -10%, rgba(156, 194, 191, 0.22), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
}

.lgx-hero__inner {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.lgx-hero__copy {
  max-width: 560px;
}

.lgx-hero__title {
  font-size: clamp(2.35rem, 4.9vw, 4.1rem);
  margin-bottom: 20px;
}

.lgx-hero__title em {
  font-style: normal;
  color: var(--lgx-sage-mid);
}

.lgx-hero__sub {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.68;
  color: var(--lgx-ink-soft);
  margin-bottom: 28px;
  max-width: 520px;
}

.lgx-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.lgx-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 22px;
  border-top: 1px solid var(--lgx-line);
  list-style: none;
  margin: 0;
}

.lgx-hero__meta li {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--lgx-ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lgx-hero__meta li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lgx-sage);
  flex: none;
}

.lgx-hero__media {
  position: relative;
}

.lgx-hero__frame {
  position: relative;
  border-radius: var(--lgx-r-panel);
  overflow: hidden;
  border: 1px solid var(--lgx-line);
  box-shadow: var(--lgx-shadow-lift);
  transform: translateZ(0);
}

.lgx-hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 33, 31, 0) 55%, rgba(22, 33, 31, 0.28) 100%);
  pointer-events: none;
}

.lgx-hero__frame img {
  width: 100%;
  aspect-ratio: 5 / 5.4;
  object-fit: cover;
}

.lgx-hero__backdrop {
  position: absolute;
  inset: auto -14px -14px auto;
  width: 62%;
  height: 62%;
  border-radius: var(--lgx-r-panel);
  background: var(--lgx-sage);
  opacity: 0.28;
  z-index: -1;
}

.lgx-chips {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.lgx-chip {
  background: rgba(255, 255, 255, 0.94);
  color: var(--lgx-ink);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(22, 33, 31, 0.14);
}

/* ---- Section heading blocks ---- */
.lgx-head {
  max-width: 720px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.lgx-head--center {
  margin-inline: auto;
  text-align: center;
}

.lgx-head--center .lgx-eyebrow {
  justify-content: center;
}

.lgx-head p {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 1.05rem;
  color: var(--lgx-body);
}

/* ---- Object cards ---- */
.lgx-card {
  background: #fff;
  border: 1px solid var(--lgx-line);
  border-radius: var(--lgx-r-card);
  padding: clamp(22px, 2.4vw, 30px);
  position: relative;
  transition: transform 0.22s var(--lgx-ease), box-shadow 0.22s var(--lgx-ease),
    border-color 0.22s var(--lgx-ease);
  height: 100%;
}

.lgx-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lgx-shadow-lift);
  border-color: var(--lgx-sage);
}

.lgx-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.lgx-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--lgx-r-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lgx-mist);
  color: var(--lgx-sage-deep);
  border: 1px solid var(--lgx-line-soft);
}

.lgx-card__icon svg {
  width: 22px;
  height: 22px;
}

.lgx-card__index {
  font-family: var(--lgx-font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--lgx-sage);
}

.lgx-card h3 {
  font-size: 1.16rem;
  margin-bottom: 9px;
}

.lgx-card p {
  font-size: 0.97rem;
  line-height: 1.62;
  margin-bottom: 0;
  color: var(--lgx-body);
}

.lgx-card--accent {
  background: var(--lgx-ink);
  border-color: var(--lgx-ink);
}

.lgx-card--accent h3,
.lgx-card--accent p {
  color: #eef4f3;
}

.lgx-card--accent p {
  color: #c3d2cf;
}

.lgx-card--accent .lgx-card__icon {
  background: rgba(156, 194, 191, 0.16);
  border-color: rgba(156, 194, 191, 0.3);
  color: var(--lgx-sage);
}

.lgx-card--accent .lgx-card__index {
  color: var(--lgx-sage);
}

/* ---- Feature rows (editor) ---- */
.lgx-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.lgx-split__media {
  position: relative;
}

.lgx-split__media img {
  border-radius: var(--lgx-r-panel);
  border: 1px solid var(--lgx-line);
  box-shadow: var(--lgx-shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.lgx-media__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--lgx-crimson);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: var(--lgx-r-btn);
}

.lgx-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.lgx-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
}

.lgx-list__num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lgx-mist);
  border: 1px solid var(--lgx-line);
  color: var(--lgx-sage-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.lgx-list h3 {
  font-size: 1.02rem;
  margin-bottom: 3px;
}

.lgx-list p {
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.58;
}

/* ---- Analytics steps ---- */
.lgx-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
  counter-reset: lgxstep;
}

.lgx-step {
  background: #fff;
  border: 1px solid var(--lgx-line);
  border-radius: var(--lgx-r-card);
  padding: 26px;
  position: relative;
}

.lgx-step::before {
  counter-increment: lgxstep;
  content: "0" counter(lgxstep);
  font-family: var(--lgx-font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--lgx-crimson);
  display: block;
  margin-bottom: 14px;
}

.lgx-step h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.lgx-step p {
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ---- Secure cloud band ---- */
.lgx-band {
  background:
    linear-gradient(120deg, rgba(53, 98, 93, 0.98), rgba(22, 33, 31, 0.98)),
    var(--lgx-ink);
  color: #e9f1f0;
  border-radius: var(--lgx-r-panel);
  padding: clamp(32px, 5vw, 60px);
  position: relative;
  overflow: hidden;
}

.lgx-band::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156, 194, 191, 0.28), transparent 70%);
  pointer-events: none;
}

.lgx-band .lgx-eyebrow {
  color: var(--lgx-sage);
}

.lgx-band .lgx-eyebrow::before {
  background: var(--lgx-sage);
}

.lgx-band h2 {
  color: #fff;
  margin-bottom: 14px;
}

.lgx-band p {
  color: #c8d6d3;
  max-width: 640px;
  margin-bottom: 26px;
}

.lgx-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Article (secure cloud) ---- */
.lgx-article {
  padding-block: clamp(28px, 4vw, 48px) clamp(56px, 8vw, 96px);
}

.lgx-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--lgx-body);
  margin-bottom: 26px;
  padding: 0;
  list-style: none;
}

.lgx-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lgx-breadcrumb li + li::before {
  content: "/";
  color: var(--lgx-sage);
}

.lgx-breadcrumb a {
  color: var(--lgx-body);
  text-decoration: none;
}

.lgx-breadcrumb a:hover {
  color: var(--lgx-crimson);
}

.lgx-article__head {
  max-width: 820px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.lgx-article__title {
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  margin-bottom: 18px;
}

.lgx-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lgx-sage-mid);
  border-top: 1px solid var(--lgx-line);
  padding-top: 16px;
}

.lgx-article__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.lgx-prose {
  font-size: 1.08rem;
  line-height: 1.78;
  color: var(--lgx-ink-soft);
  max-width: 72ch;
}

.lgx-prose > p {
  margin-bottom: 1.25em;
}

.lgx-prose > h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  margin: 1.9em 0 0.7em;
  padding-top: 0.2em;
}

.lgx-prose > h2:first-child {
  margin-top: 0;
}

.lgx-prose strong {
  color: var(--lgx-ink);
  font-weight: 700;
}

.lgx-prose a {
  color: var(--lgx-sage-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lgx-prose a:hover {
  color: var(--lgx-crimson);
}

.lgx-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 22px;
}

.lgx-aside__card {
  background: var(--lgx-mist);
  border: 1px solid var(--lgx-line);
  border-radius: var(--lgx-r-card);
  padding: 24px;
}

.lgx-aside__card h2,
.lgx-aside__card h3 {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.lgx-aside__card p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.lgx-aside__links {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.lgx-aside__links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lgx-sage-deep);
  text-decoration: none;
}

.lgx-aside__links a:hover {
  color: var(--lgx-crimson);
  text-decoration: underline;
}

.lgx-refs {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 28px;
  border-top: 1px solid var(--lgx-line);
}

.lgx-refs h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.lgx-refs ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.lgx-refs li {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--lgx-body);
}

.lgx-refs a {
  color: var(--lgx-sage-deep);
  font-weight: 600;
}

.lgx-refs a:hover {
  color: var(--lgx-crimson);
}

/* ---- Footer ---- */
.lgx-footer {
  background: var(--lgx-ink);
  color: #b9c7c4;
  padding-block: clamp(44px, 6vw, 68px) 0;
}

.lgx-footer a {
  color: #d7e2e0;
  text-decoration: none;
}

.lgx-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.lgx-footer__top {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  padding-bottom: 40px;
}

.lgx-footer .lgx-brand {
  color: var(--lgx-sage);
  margin-bottom: 14px;
}

.lgx-footer__blurb {
  font-size: 0.94rem;
  line-height: 1.65;
  color: #9fb0ad;
  max-width: 340px;
  margin: 0;
}

.lgx-footer h2 {
  font-family: var(--lgx-font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.lgx-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
  font-size: 0.92rem;
}

.lgx-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.83rem;
  color: #8ea09d;
}

.lgx-footer__bottom p {
  margin: 0;
}

.lgx-footer__bottom a {
  color: #cfe0dd;
}

/* ---- 404 ---- */
.lgx-404 {
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 80px;
}

.lgx-404__code {
  font-family: var(--lgx-font-display);
  font-size: clamp(5rem, 16vw, 11rem);
  line-height: 1;
  color: var(--lgx-sage);
  margin-bottom: 8px;
}

.lgx-404 p {
  max-width: 460px;
  margin-inline: auto;
  margin-bottom: 26px;
}

/* ---- Scroll reveal ---- */
.lgx-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--lgx-ease), transform 0.6s var(--lgx-ease);
  will-change: opacity, transform;
}

.lgx-reveal.is-in {
  opacity: 1;
  transform: none;
}

.lgx-reveal--d1 {
  transition-delay: 0.07s;
}
.lgx-reveal--d2 {
  transition-delay: 0.14s;
}
.lgx-reveal--d3 {
  transition-delay: 0.21s;
}

/* ---- Responsive ---- */
@media (max-width: 1023px) {
  .lgx-header {
    position: sticky;
  }

  .lgx-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--lgx-line);
    border-bottom: 1px solid var(--lgx-line);
    box-shadow: var(--lgx-shadow);
    padding: 8px var(--lgx-gutter) 14px;
    z-index: 70;
  }

  .lgx-nav.is-open {
    display: flex;
  }

  .lgx-nav a {
    padding: 15px 2px;
    font-size: 0.86rem;
    border-bottom: 1px solid var(--lgx-line-soft);
  }

  .lgx-nav a:last-child {
    border-bottom: 0;
  }

  .lgx-nav a::after {
    display: none;
  }

  .lgx-burger {
    display: inline-block;
  }

  .lgx-hero__inner {
    grid-template-columns: 1fr;
  }

  .lgx-hero__copy {
    max-width: none;
    order: 1;
  }

  .lgx-hero__media {
    order: 2;
  }

  .lgx-hero__frame img {
    aspect-ratio: 16 / 10;
  }

  .lgx-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lgx-split {
    grid-template-columns: 1fr;
  }

  .lgx-article__grid {
    grid-template-columns: 1fr;
  }

  .lgx-aside {
    position: static;
  }

  .lgx-footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  body.lgx-body {
    font-size: 1rem;
  }

  .lgx-header__actions .lgx-btn--header {
    display: none;
  }

  .lgx-brand {
    font-size: 1.5rem;
  }

  .lgx-grid--2,
  .lgx-grid--3,
  .lgx-grid--4 {
    grid-template-columns: 1fr;
  }

  .lgx-steps {
    grid-template-columns: 1fr;
  }

  .lgx-hero__cta .lgx-btn {
    flex: 1 1 100%;
  }

  .lgx-footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .lgx-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .lgx-band {
    border-radius: var(--lgx-r-card);
  }

  .lgx-chips {
    left: 12px;
    bottom: 12px;
    gap: 6px;
  }

  .lgx-chip {
    padding: 6px 10px;
    font-size: 0.66rem;
  }
}

/* ---- Motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .lgx-reveal {
    opacity: 1;
    transform: none;
  }
}
