/* Home page: the display case */

/* The fixed 3D scene */
.lx-scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; transition: opacity 400ms var(--sc-ease-out); }
.lx-scene.is-off { opacity: 0; }
.lx-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lx-scene__glow { position: absolute; inset: 0; background:
  radial-gradient(45% 55% at 68% 52%, hsl(176 55% 20% / 0.85), transparent 70%),
  radial-gradient(30% 22% at 68% 88%, hsl(40 60% 40% / 0.22), transparent 70%),
  var(--lx-bg); }
.lx-scene__poster { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.lx-no-webgl .lx-scene__poster { display: block; }
.lx-no-webgl .lx-scene canvas { display: none; }
.lx-beam { position: absolute; inset: 0; background: conic-gradient(from 180deg at var(--bx, 60%) -8%, transparent 0deg 165deg, hsl(42 85% 78% / 0.08) 170deg, hsl(42 90% 82% / 0.26) 180deg, hsl(42 85% 78% / 0.08) 190deg, transparent 195deg 360deg); mix-blend-mode: screen; }

/* Acts that show the scene are transparent; solid sections cover it */
.lx-act { position: relative; z-index: 1; }
.lx-solid { position: relative; z-index: 2; background: var(--lx-bg2); overflow: clip; isolation: isolate; }
.lx-solid > .sc-wrap { position: relative; z-index: 1; }
.lx-ghost { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.4rem; border-radius: 999px; color: var(--lx-ink); text-decoration: none; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--lx-line-strong); transition: background-color 160ms var(--sc-ease-out); }
.lx-ghost:hover { background: hsl(40 50% 70% / 0.1); }

/* Act 1: hero */
.lx-hero__stage { display: flex; align-items: center; }
.lx-hero__copy { position: relative; height: 100%; display: grid; align-items: center; }
.lx-hero__a, .lx-hero__b { grid-area: 1 / 1; max-width: 40rem; }
.lx-hero__h1 { margin-top: 1.1rem; font-size: clamp(4rem, 1.6rem + 8vw, 9.6rem); line-height: 0.86; letter-spacing: -0.025em; font-weight: 500; }
.lx-hero__h1 em { display: block; font-style: italic; color: var(--lx-gold-hi); padding-left: 0.6em; }
.lx-hero__stand { margin-top: 1.8rem; max-width: 34ch; font-size: var(--sc-t-lg); line-height: 1.5; color: var(--lx-soft); }
.lx-hero__acts { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.lx-hero__big { font: 500 clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem)/1.02 var(--sc-font-display); letter-spacing: -0.015em; max-width: 14ch; }
.lx-hero__big em { font-style: italic; color: var(--lx-gold-hi); }
.lx-hero__small { margin-top: 1.4rem; color: var(--lx-soft); font-size: var(--sc-t-lg); max-width: 32ch; }

/* Act 2: why */
.lx-why { padding-block: clamp(5rem, 10vw, 9rem); }
.lx-why__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.lx-why__main { padding: clamp(1.75rem, 4vw, 3.5rem); }
.lx-why__main > * + * { margin-top: 1.1rem; }
.lx-why__main .ab-h2 { margin-top: 1rem; }
.lx-why__fig { margin: 0; justify-self: center; }
.lx-frame { width: 250px; padding: 0.6rem; border-radius: 12px; background: linear-gradient(145deg, #F2DCA9, #9C7535 60%, #E6C47F); box-shadow: 0 30px 70px hsl(185 60% 2% / 0.6), 0 0 60px hsl(40 70% 50% / 0.15); rotate: 2deg; }
.lx-frame img { display: block; width: 100%; height: auto; border-radius: 7px; }
.lx-why__fig .ab-caption { max-width: 250px; margin-top: 1.2rem; }
.lx-why__chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; margin: 0.5rem 0 0; padding: 0; }
.lx-why__chips li { padding: 0.8rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem; color: var(--lx-ink); }

/* Glass, used on the home page */
.lx-glass { background: var(--lx-glass); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border: 1px solid var(--lx-glass-edge); border-radius: var(--lx-r); box-shadow: 0 1px 0 hsl(40 60% 90% / 0.08) inset, 0 24px 60px hsl(185 60% 2% / 0.4); }

/* Act 3: layers (peak) */
.lx-layers__head { position: relative; padding-top: clamp(6rem, 13vh, 9rem); z-index: 2; }
.lx-layers__hint { margin-top: 1rem; color: var(--lx-soft); }
.lx-coarse { display: none; }
@media (hover: none), (pointer: coarse) { .lx-fine { display: none; } .lx-coarse { display: inline; } }
.lx-labels { list-style: none; margin: 0; padding: 0; }
.lx-label { position: absolute; left: 0; top: 0; z-index: 3; width: 17rem; opacity: var(--lo, 0); transform: translate3d(calc(var(--lx, -999px) + 2.5rem), calc(var(--ly, -999px) - 50%), 0); transition: opacity 200ms linear; pointer-events: none; }
.lx-label[data-layer="dentine"], .lx-label[data-layer="roots"] { transform: translate3d(calc(var(--lx, -999px) - 100% - 2.5rem), calc(var(--ly, -999px) - 50%), 0); text-align: right; }
.lx-label a { display: block; padding: 0.9rem 1.1rem; border-radius: 12px; text-decoration: none; color: var(--lx-ink); background: hsl(185 50% 6% / 0.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--lx-glass-edge); pointer-events: auto; transition: border-color 200ms var(--sc-ease-out), box-shadow 200ms var(--sc-ease-out); }
.lx-label b { display: block; font: 600 1.6rem/1.05 var(--sc-font-display); color: var(--lx-gold-hi); }
.lx-label span { display: block; margin-top: 0.3rem; font-size: 0.92rem; line-height: 1.45; color: var(--lx-soft); }
.lx-label.is-lit a { border-color: hsl(42 80% 70% / 0.7); box-shadow: 0 0 0 1px hsl(42 80% 70% / 0.25), 0 0 40px hsl(42 85% 60% / 0.25); }
.lx-label.is-lit span { color: var(--lx-ink); }
.lx-layers__all { position: absolute; left: var(--sc-gutter); bottom: clamp(2rem, 8vh, 4rem); z-index: 2; }
@media (max-width: 860px) {
  .lx-layers__head { padding-top: 5.5rem; }
  .lx-labels { position: absolute; left: 0.75rem; right: 0.75rem; bottom: 5.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .lx-label, .lx-label[data-layer="dentine"], .lx-label[data-layer="roots"] { position: static; width: auto; transform: none; text-align: left; }
  .lx-label a { padding: 0.65rem 0.75rem; }
  .lx-label b { font-size: 1.2rem; }
  .lx-label span { font-size: 0.8rem; }
  .lx-layers__all { display: none; }
}

/* Act 4: tools rail */
.lx-tools__stage { display: flex; flex-direction: column; justify-content: center; gap: 2.5rem; background: var(--lx-bg2); }
.lx-tools__head { position: relative; z-index: 1; }
.lx-rail { position: relative; z-index: 1; display: flex; gap: 1.25rem; padding-inline: var(--sc-gutter); width: max-content; }
.lx-tool { width: clamp(17rem, 26vw, 22rem); min-height: 15rem; padding: 1.8rem; display: flex; flex-direction: column; gap: 0.8rem; }
.lx-tool h3 { font-size: 1.9rem; line-height: 1.05; color: var(--lx-gold-hi); }
.lx-tool p { color: var(--lx-soft); }

/* Act 5: people */
.lx-people__stage { display: flex; align-items: center; background: radial-gradient(60% 70% at 30% 50%, hsl(176 50% 16% / 0.8), transparent 70%), var(--lx-bg); }
.lx-people__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.lx-people__fig { margin: 0; }
.lx-goldframe { padding: clamp(0.5rem, 1vw, 0.85rem); border-radius: 14px; background: linear-gradient(135deg, #F4DFAE, #A17A38 35%, #F0D597 60%, #8C672C); box-shadow: 0 40px 90px hsl(185 60% 2% / 0.7), 0 0 80px hsl(40 70% 50% / 0.18); }
.lx-goldframe img { display: block; width: 100%; height: auto; border-radius: 8px; }
.lx-names { list-style: none; margin: 1.8rem 0 0; padding: 0; }
.lx-names li { display: flex; align-items: center; gap: 1.2rem; padding: 0.65rem 0; border-top: 1px solid var(--lx-line); }
.lx-names li:last-child { border-bottom: 1px solid var(--lx-line); }
.lx-names b { font: 600 2.6rem/1 var(--sc-font-display); color: var(--lx-gold-hi); min-width: 2.2ch; font-variant-numeric: lining-nums tabular-nums; text-shadow: 0 0 24px hsl(42 85% 60% / 0.45); }
.lx-names span { font-weight: 600; font-size: 1.05rem; }
.lx-names small { display: block; font-weight: 400; font-size: 0.86rem; color: var(--lx-soft); }
.lx-people__more { margin-top: 0.4rem; }

/* Act 6: pay */
.lx-pay { padding-block: clamp(5rem, 10vw, 9rem); }
.lx-pay__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: stretch; }
.lx-pay__lead > * + * { margin-top: 1rem; }
.lx-pay__card { padding: 1.8rem; }
.lx-pay__card h3 { font-size: 1.9rem; color: var(--lx-gold-hi); margin-bottom: 0.7rem; }
.lx-pay__card p { color: var(--lx-soft); }
.lx-pay__quote { grid-column: 1 / -1; margin: clamp(1.5rem, 4vw, 3rem) 0 0; font: italic 500 clamp(2rem, 1.2rem + 2.6vw, 3.6rem)/1.1 var(--sc-font-display); color: var(--lx-ink); max-width: 26ch; }
.lx-pay__quote cite { display: block; margin-top: 1rem; font: normal 500 0.95rem/1.5 var(--sc-font-text); color: var(--lx-soft); }

/* Act 7: close */
.lx-close__stage { display: flex; align-items: center; }
.lx-close__in { display: flex; justify-content: flex-end; }
.lx-plate { max-width: 34rem; padding: clamp(1.8rem, 4vw, 3.2rem); }
.lx-plate .ab-h2 { margin-top: 1rem; font-size: clamp(2.4rem, 1.6rem + 2.6vw, 4rem); }
.lx-plate__acts { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.lx-plate__addr { margin-top: 1.4rem; color: var(--lx-soft); }

@media (max-width: 860px) {
  .lx-hero__stage { align-items: flex-end; padding-bottom: 6.5rem; }
  .lx-hero__copy { align-items: end; height: auto; }
  .lx-hero__h1 { font-size: clamp(3.4rem, 15vw, 4.8rem); }
  .lx-hero__stand { font-size: var(--sc-t-base); margin-top: 1.2rem; }
  .lx-hero__acts { margin-top: 1.4rem; }
  .lx-hero__acts .lx-ghost { display: none; }
  .lx-why__grid, .lx-people__grid, .lx-pay__grid { grid-template-columns: 1fr; }
  .lx-why__fig { justify-self: start; }
  .lx-frame { width: 200px; }
  .lx-people__stage { align-items: flex-start; padding-top: 5.5rem; }
  .lx-names { margin-top: 0.8rem; }
  .lx-names li { padding: 0.35rem 0; }
  .lx-names b { font-size: 1.8rem; }
  .lx-people__more, .lx-people__fig .ab-caption { display: none; }
  .lx-close__stage { align-items: flex-end; padding-bottom: 6rem; }
  .lx-close__in { justify-content: stretch; }
  .lx-tool { width: 78vw; min-height: 0; }
}
@media (max-width: 860px) and (max-height: 700px) { .lx-names small { display: none; } }
@media (max-width: 860px) {
  .lx-fine { display: none; } .lx-coarse { display: inline; }
  .lx-people__stage { padding-top: 5rem; }
  .lx-goldframe img { max-height: 30svh; object-fit: cover; object-position: 50% 40%; }
  .lx-people .ab-h2 { font-size: var(--sc-t-2xl); }
  .lx-names b { font-size: 1.6rem; }
}
