body { isolation: isolate; }
#spacetime {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
header, main, footer, .framework-intro, .provider-guide, .homepage-previews { position: relative; z-index: 1; }

/* Keep the fabric visible between the panels, without moving their text. */
.framework-intro {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2rem;
  max-width: 61rem;
  margin: 0 auto 3.5rem;
  color: #d7d5e5;
}
.framework-story { padding: 1.25rem 0; }
.framework-story h2 {
  margin: .65rem 0 1.3rem;
  color: #f4f0ff;
  font: 400 clamp(2rem, 4.5vw, 3.15rem)/1.13 Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}
.framework-story > p:not(.eyebrow) { max-width: 34rem; color: #c4c9dd; }
.framework-story .eyebrow { color: #93dfd8; }
.naming-note { margin-top: 1.7rem; padding: .2rem 0 .2rem 1.15rem; border-left: 2px solid #9984d0; }
.naming-note strong { color: #e7ddff; }
.naming-note p { margin: .4rem 0 0; font-size: .91rem; color: #bfc6d8; }
.invitation-card {
  align-self: center;
  padding: 1.8rem;
  border: 1px solid rgba(193, 166, 115, .48);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(28, 24, 46, .93), rgba(15, 32, 42, .9));
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .2);
}
.invitation-card h3 { margin: .5rem 0 1rem; color: #fff1d3; font: 400 1.9rem/1.2 Georgia, serif; }
.invitation-card h4 { margin: 0 0 .6rem; color: #f5e4c6; font-size: 1rem; }
.invitation-card p { color: #cbd1de; font-size: .93rem; }
.invitation-card .hint { color: #b6bed0; font-size: .83rem; }
.invitation-actions { display: grid; gap: .65rem; margin: 1.35rem 0 1rem; }
.invitation-actions button { width: 100%; text-align: left; }
.invitation-help { margin: 1.2rem 0; padding: 1.15rem 0; border-top: 1px solid rgba(193, 166, 115, .3); border-bottom: 1px solid rgba(193, 166, 115, .3); }
.text-action { padding: .1rem .15rem; color: #a5ebe2; border: 0; background: transparent; font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.text-action:hover { color: #fff0cf; }
.invitation-card .returning-path { margin: 1rem 0; font-size: .86rem; }
.invitation-card .invitation-terms { margin-bottom: 0; padding-top: 1rem; border-top: 1px solid rgba(184, 172, 205, .18); font-size: .78rem; }
.invitation-link { display: inline-block; margin-top: .3rem; color: #a5ebe2; font-size: .9rem; font-weight: 650; text-underline-offset: .25em; }
.invitation-link:hover { color: #fff0cf; }
/* Both spellings share one grid cell, reserving the same width so the masthead
   cannot shift under the pointer. The voice remains a click-only discovery. */
.brand-name {
  display: inline-grid;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: default;
  appearance: none;
}
.brand-name > span { grid-area: 1 / 1; white-space: nowrap; transition: opacity .16s ease; }
.brand-sound { opacity: 0; font-size: .8em; letter-spacing: .015em; }
.brand-name:focus-visible .brand-spelling, .brand-name.is-playing .brand-spelling { opacity: 0; }
.brand-name:focus-visible .brand-sound, .brand-name.is-playing .brand-sound { opacity: 1; }
@media (hover: hover) {
  .brand-name:hover .brand-spelling { opacity: 0; }
  .brand-name:hover .brand-sound { opacity: 1; }
}
.homepage-previews { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 61rem; margin: 0 auto 2.5rem; }
.preview-card { padding: 1.5rem 1.65rem; border: 1px solid rgba(163, 165, 213, .3); border-radius: .9rem; background: linear-gradient(140deg, rgba(28, 28, 53, .94), rgba(20, 43, 52, .92)); }
.preview-card .eyebrow { color: #99dcd7; }
.preview-card h2 { margin: .6rem 0 .9rem; color: #eee9fc; font: 400 1.5rem/1.3 Georgia, serif; }
.preview-card p { color: #c5cede; font-size: .91rem; }
.preview-card .hint { margin-bottom: 0; color: #aabbd0; font-size: .8rem; }
.provider-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.provider-links a { padding: .3rem .65rem; border: 1px solid rgba(141, 204, 213, .35); border-radius: .4rem; color: #a5ebe2; font-size: .8rem; text-decoration: none; }
.provider-links a:hover { color: #fff; border-color: #a5ebe2; background: rgba(119, 170, 194, .1); }
@media (max-width: 760px) {
  .framework-intro { grid-template-columns: 1fr; gap: .9rem; max-width: 49rem; margin-bottom: 2.5rem; }
  .framework-story { padding-top: 0; }
  .invitation-card { padding: 1.35rem; }
  .homepage-previews { grid-template-columns: 1fr; max-width: 49rem; }
  .preview-card { padding: 1.35rem; }
}
@media (max-width: 680px) {
  .brand-row { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .provider-card, .step { transition: none; }
  .provider-card:hover, .step:hover { transform: none; }
}
