html { height: auto; scroll-behavior: smooth; }
body { height: auto; display: block; overflow: visible; }
.scene-stage { height: 100dvh; display: grid; grid-template-rows: minmax(0,1fr) auto; overflow: hidden; }
.solar-stage { position: relative; isolation: isolate; height: 100svh; min-height: 720px; overflow: hidden; background: #fff; color: #172335; }
.solar-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.solar-stage::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 650px 590px at var(--sun-x,22%) var(--sun-y,25%),#ffffffd9 0%,#ffffff8c 37%,#ffffff22 65%,transparent 85%); }
.solar-inner { position: relative; z-index: 2; width: min(1480px,calc(100% - clamp(28px,3vw,56px)*2)); height: 100%; min-height: inherit; margin-inline: auto; padding-block: 25px 30px; display: flex; flex-direction: column; }
.solar-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.solar-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.solar-brand img { display: block; }
.solar-login { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 6px 14px; border: 1px solid #4f46e5; border-radius: 10px; background: #ffffffd9; color: #4f46e5; font-size: 13px; line-height: 18px; font-weight: 520; text-decoration: none; }
.solar-login:hover { background: #f5f6ff; }
.solar-login:focus-visible,.solar-brand:focus-visible { outline: 2px solid #4f46e5; outline-offset: 5px; }
.solar-content { width: min(600px,49%); margin-top: clamp(32px,5.2vh,62px); }
.solar-eyebrow { margin: 0 0 13px; font-size: 11px; line-height: 1.6; letter-spacing: .105em; font-weight: 550; text-transform: uppercase; color: #7b8ba3; }
.solar-heading h2 { margin: 0; font-size: clamp(32px,3.3vw,47px); line-height: 1.14; letter-spacing: -.045em; font-weight: 580; }
.solar-heading > p:last-child { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: #67778e; }
.function-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin-top: 28px; }
.function-tile { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 11px; align-items: start; padding: 18px 15px; min-height: 102px; border: 1px solid #dce4efb8; border-radius: 13px; background: #fffffff0; box-shadow: 0 3px 16px -13px #6f89ae66; }
.function-icon { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #e0e8f1; border-radius: 8px; background: #f4f7fb; color: #6f87a9; }
.function-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.function-tile h3 { margin: 1px 0 6px; font-size: 15px; line-height: 1.35; font-weight: 570; letter-spacing: -.018em; }
.function-tile p { margin: 0; font-size: 13px; line-height: 1.6; color: #627189; text-wrap: pretty; }
.solar-access { margin: auto 0 0; padding-top: 25px; color: #8795a9; font-size: 11px; line-height: 1.5; }
@media (min-width: 1600px) {
  .solar-content { width: 620px; margin-top: clamp(44px,6vh,78px); }
  .function-tile { min-height: 110px; padding: 21px 18px; }
  .function-tile h3 { font-size: 15.5px; }
  .function-tile p { font-size: 13.5px; }
}
@media (max-width: 1150px) and (min-width: 761px) {
  .solar-content { width: 52%; }
  .function-tile { grid-template-columns: 23px minmax(0,1fr); padding: 14px 11px; gap: 9px; min-height: 100px; }
  .function-icon { width: 23px; height: 25px; border-radius: 6px; }
  .function-icon svg { width: 15px; height: 15px; }
  .function-tile h3 { font-size: 13.5px; }
  .function-tile p { font-size: 12.25px; }
}
@media (max-height: 780px) and (min-width: 761px) {
  .solar-content { margin-top: 26px; }
  .solar-heading h2 { font-size: 35px; }
  .function-grid { margin-top: 22px; gap: 9px; }
  .function-tile { padding-block: 14px; min-height: 91px; }
  .function-tile h3 { font-size: 14px; }
  .function-tile p { font-size: 12px; }
}
@media (max-width: 760px) {
  .solar-stage { min-height: 1120px; height: auto; }
  .solar-inner { width: calc(100% - 40px); padding-block: 22px 25px; }
  .solar-stage::after { background: radial-gradient(ellipse 420px 720px at 25% 20%,#fffffff5 0%,#ffffff9c 48%,transparent 87%); }
  .solar-brand img:first-child { width: 34px; height: 34px; }
  .solar-brand img:last-child { width: 76px; height: auto; }
  .solar-content { width: 100%; margin-top: 32px; }
  .solar-heading h2 { font-size: clamp(28px,7.7vw,38px); }
  .solar-eyebrow { font-size: 9px; margin-bottom: 10px; }
  .solar-heading > p:last-child { margin-top: 11px; font-size: 13px; }
  .function-grid { margin-top: 23px; gap: 9px; }
  .function-tile { display: grid; grid-template-columns: 17px minmax(0,1fr); gap: 7px; min-height: 110px; padding: 13px 10px; background: #fffffff2; }
  .function-icon { width: 17px; height: 20px; margin: 0; border: 0; background: transparent; }
  .function-icon svg { width: 15px; height: 15px; }
  .function-tile h3 { margin: 0 0 5px; font-size: 13px; line-height: 1.35; }
  .function-tile p { font-size: 12px; line-height: 1.55; }
  .solar-access { padding-top: 360px; margin-top: auto; }
}
@media (max-width: 360px) {
  .solar-inner { width: calc(100% - 32px); }
  .function-tile { padding-inline: 11px; min-height: 123px; }
  .function-tile h3 { font-size: 12.5px; }
  .function-tile p { font-size: 11.5px; }
}
@media (prefers-reduced-motion: no-preference) {
  .solar-login { transition: background-color .18s ease; }
  .function-tile { transition: border-color .3s ease,box-shadow .3s ease,transform .3s ease; }
  .function-tile:hover { border-color: #afc0d9; box-shadow: 0 6px 24px -15px #718cb15c; transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Thin metal rims catch the same offscreen light as the station.
   Masking keeps every card face, text colour and layout unchanged. */
.function-tile { position: relative; }
.function-tile::after {
 content: ''; position: absolute; inset: 0; padding: 1px;
 border-radius: inherit; pointer-events: none;
 background: linear-gradient(var(--frame-light-angle,135deg),
  rgba(246,211,153,var(--frame-hot,0)) 0%,
  rgba(245,218,172,var(--frame-mid,0)) 42%,
  rgba(237,223,202,var(--frame-shade,0)) 76%,
  rgba(119,143,175,var(--frame-shade,0)) 100%);
 -webkit-mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
 -webkit-mask-composite: xor; mask-composite: exclude;
}

/* Whole-page resting positions; oversized mobile content remains scrollable. */
html { scroll-snap-type: y mandatory; }
.scene-stage,.solar-stage { scroll-snap-align: start; scroll-snap-stop: always; }
@media (min-width: 761px) { .solar-stage { height: 100dvh; } }

/* Full-width descriptions accommodate the supplied copy without smaller type. */
.function-grid { grid-auto-rows: auto; }
.function-tile { display: block; min-height: 120px; padding: 14px 15px; background: #fff; border-color: #dbe3ed; box-shadow: 0 2px 9px -8px #708dae33; }
.function-tile h3 { display: flex; align-items: center; gap: 8px; min-height: 22px; margin: 0 0 7px; }
.function-tile .function-icon { flex: 0 0 22px; width: 22px; height: 22px; margin: 0; border-radius: 6px; }
.function-tile p { line-height: 1.5; }
.function-tile::before { content: none; }
.function-tile::after { padding: 1px; opacity: .28; }
.solar-access { min-height: 41.5px; }
@media (max-width: 760px) { .solar-access { min-height: 376.5px; } .function-tile { padding: 12px 10px; } .function-tile .function-icon { flex-basis: 18px; width: 18px; height: 20px; } .function-tile h3 { gap: 6px; } }
@media (max-height: 780px) and (min-width: 761px) {
 .function-tile { min-height: 96px; padding: 4px 11px; }
 .function-grid { gap: 8px; margin-top: 18px; }
 .function-tile h3 { margin-bottom: 6px; }
}
/* The longer supplied descriptions also need room on mid-height desktops. */
@media (min-width: 761px) and (min-height: 781px) and (max-height: 899px) {
 .function-grid { gap: 9px; margin-top: 22px; }
 .function-tile { min-height: 102px; padding: 8px 12px; }
 .function-tile h3 { font-size: 14px; margin-bottom: 6px; }
 .function-tile p { font-size: 12px; }
}
@media (min-width: 1600px) and (min-height: 900px) and (max-height: 960px) {
 .function-tile { padding-block: 10px; }
 .function-grid { gap: 10px; }
}

/* Keep page snapping inside one painted viewport, including Safari toolbar changes. */
html,body { height: 100%; overflow: hidden; scroll-snap-type: none; }
.landing-pages { position: fixed; inset: 0 0 auto; height: 100dvh; overflow-x: hidden; overflow-y: auto; background: #fff; contain: paint; overscroll-behavior-y: none; scroll-snap-type: y mandatory; scroll-behavior: smooth; }
.landing-pages .scene-stage { height: 100%; min-height: 100%; }
.landing-pages .solar-stage { height: 100%; min-height: max(720px,100%); }
@media (max-width: 760px) { .landing-pages .solar-stage { height: auto; min-height: max(1120px,100%); } }
@media (prefers-reduced-motion: reduce) { .landing-pages { scroll-behavior: auto; } }

.access-open .landing-pages { overflow: hidden; }
/* Keep the full scene width when desktop browsers reserve space for an inner scrollbar. */
.landing-pages { scrollbar-width: none; }
.landing-pages::-webkit-scrollbar { display: none; width: 0; height: 0; }
