/* A single moving diagonal cuts two copies of the actual homepage. */
@property --intro-split {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 50%;
}
[hidden] { display: none !important; }
html { scrollbar-gutter: stable; }
.intro-pending, .intro-active { overflow: hidden; }
.intro-pending body { background: #080d16; }
.intro-pending #site-shell, .intro-active #site-shell { visibility: hidden; }
.intro-active.intro-revealing #site-shell { visibility: visible; }
.site-intro {
  --intro-split: 50%;
  --intro-slant: 9%;
  position: fixed;
  inset: 0;
  z-index: 100;
  isolation: isolate;
  overflow: hidden;
  background: #080d16;
  outline: none;
  opacity: 1;
  transition: opacity 380ms ease;
}
.site-intro[data-phase="done"] { opacity: 0; pointer-events: none; }
.intro-boot {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  color: #eff6ff;
  background: radial-gradient(ellipse at 50% 40%, #15213b 0, #080d16 58%);
  transition: opacity 650ms ease, visibility 650ms;
}
.site-intro:not([data-phase="boot"]) .intro-boot { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-center { display: flex; flex-direction: column; align-items: center; transform: translateY(-20px); }
.boot-mark { display: grid; grid-template-columns: repeat(2, 40px); gap: 5px; perspective: 500px; }
.boot-mark span {
  height: 40px;
  background: linear-gradient(145deg, #65c5ff, #258bef);
  box-shadow: 0 0 28px #2795f82b;
  animation: boot-tile 850ms cubic-bezier(.16,1,.3,1) both;
}
.boot-mark span:nth-child(2) { animation-delay: 90ms; }
.boot-mark span:nth-child(3) { animation-delay: 180ms; }
.boot-mark span:nth-child(4) { animation-delay: 270ms; }
@keyframes boot-tile { from { opacity: 0; transform: translateY(9px) rotateX(-22deg) scale(.87); } to { opacity: 1; transform: none; } }
.boot-spinner { width: 24px; height: 24px; position: relative; margin-top: 56px; }
.boot-spinner i { position: absolute; inset: 0; animation: boot-orbit 1.65s cubic-bezier(.4,0,.4,1) infinite; }
.boot-spinner i:after { content: ''; position: absolute; left: 10px; top: 0; width: 3px; height: 3px; border-radius: 50%; background: #b7d9ff; }
.boot-spinner i:nth-child(2) { animation-delay: -130ms; }
.boot-spinner i:nth-child(3) { animation-delay: -260ms; }
.boot-spinner i:nth-child(4) { animation-delay: -390ms; }
.boot-spinner i:nth-child(5) { animation-delay: -520ms; }
@keyframes boot-orbit { from { transform: rotate(-30deg); opacity: .35; } 45% { opacity: 1; } to { transform: rotate(330deg); opacity: .35; } }
.site-intro:not([data-phase="boot"]) .boot-spinner i { animation: none; }
.boot-wordmark { margin-top: 27px; font-size: 13px; letter-spacing: .24em; color: #e7f0ff; }
.boot-status { margin-top: 9px; font-size: 11px; color: #93a8c6; letter-spacing: .06em; }
.boot-skip { position: absolute; right: 30px; top: 24px; border: 1px solid #34435a; border-radius: 7px; background: #152030; color: #b4c5df; padding: 8px 13px; font-size: 11px; }
.boot-skip:hover { background: #1e304a; color: #fff; }
.boot-skip span { margin-left: 12px; }
.boot-footer { position: absolute; bottom: 28px; font-size: 8px; letter-spacing: .25em; color: #7d93b3; }
.intro-stage { position: absolute; inset: 0; opacity: 0; transform: scale(1.025); transition: opacity 800ms ease, transform 1000ms cubic-bezier(.16,1,.3,1), --intro-split 650ms cubic-bezier(.22,1,.36,1); }
.site-intro[data-phase="choose"] .intro-stage,
.site-intro[data-phase="leaving"] .intro-stage,
.site-intro[data-phase="done"] .intro-stage { opacity: 1; transform: none; }
.theme-half { position: absolute; inset: 0; overflow: hidden; background: var(--bg); }
.theme-half-light {
  color-scheme: light;
  --bg:#f7f9fc;--surface:#fff;--text:#172237;--muted:#5c697d;--subtle:#66758a;--accent:#155ed9;--border:#e0e6ef;--soft:#edf3fe;--header:#f7f9fcf5;--panel:#f3f6fb;--shadow:0 20px 65px #223d6814;--license:#eef3fb;--preview:#edf3fc;
  color: var(--text);
  clip-path: polygon(0 0, calc(var(--intro-split) + var(--intro-slant)) 0, calc(var(--intro-split) - var(--intro-slant)) 100%, 0 100%);
}
.theme-half-dark {
  color-scheme: dark;
  --bg:#101722;--surface:#192332;--text:#eef3fc;--muted:#aab8cc;--subtle:#99a9bf;--accent:#8bb7ff;--border:#304055;--soft:#243a59;--header:#101722f5;--panel:#142031;--shadow:0 20px 65px #0003;--license:#152134;--preview:#1c2c43;
  color: var(--text);
  clip-path: polygon(calc(var(--intro-split) + var(--intro-slant)) 0, 100% 0, 100% 100%, calc(var(--intro-split) - var(--intro-slant)) 100%);
}
.theme-sheet { position: absolute; inset: 0 auto 0 0; width: var(--intro-page-width, 100%); pointer-events: none; user-select: none; }
.theme-sheet .site-header { position: relative; z-index: 0; }
.theme-sheet .hero-copy, .theme-sheet .hero-visual { animation: none; }
.theme-sheet .hero { padding-top: 88px; }
.theme-sheet .desktop-demo { box-shadow: none; }
.theme-sheet:after { content: ''; position: absolute; inset: 60% 0 0; background: linear-gradient(transparent, var(--bg) 95%); }
.theme-choice { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; touch-action: manipulation; }
.theme-choice:focus-visible { outline: none; }
.choice-caption { position: absolute; bottom: 88px; left: 25%; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; min-width: 210px; padding: 17px 21px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); transition: border-color .25s, transform .35s; }
.theme-half-light .choice-caption { left: calc(var(--intro-split) * .5 - var(--intro-slant) * .4); }
.theme-half-dark .choice-caption { left: calc(50% + var(--intro-split) * .5 - var(--intro-slant) * .4); }
.choice-icon { display: grid; place-items: center; width: 34px; height: 34px; font-size: 29px; font-family: "Segoe UI Symbol",sans-serif; color: var(--accent); }
.moon-icon { font-size: 35px; }
.choice-caption strong, .choice-caption small { display: block; }
.choice-caption strong { font-size: 16px; font-weight: 550; letter-spacing: .12em; }
.choice-caption small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.choice-arrow { font-size: 18px; margin-left: auto; color: var(--accent); }
.theme-choice:hover .choice-caption, .theme-choice:focus-visible .choice-caption { border-color: var(--accent); transform: translate(-50%, -5px); }
.theme-choice:focus-visible .choice-caption { outline: 3px solid var(--accent); outline-offset: 5px; }
.intro-heading { pointer-events: none; position: absolute; top: 112px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 15px; padding: 8px 19px; border-radius: 30px; background: #233147; color: #eff5ff; box-shadow: 0 5px 25px #0208171f; }
.intro-heading h2 { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .14em; white-space: nowrap; }
.intro-heading-line { height: 1px; width: 18px; background: #7690b6; }
.intro-hint { position: absolute; bottom: 27px; left: 50%; transform: translateX(-50%); pointer-events: none; white-space: nowrap; color: #e4edfc; font-size: 11px; letter-spacing: .12em; background: #233147; padding: 7px 18px; border: 1px solid #4c607c; border-radius: 30px; }
.keyboard-hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.touch-hint { display: none; }
.site-intro[data-phase="leaving"] .intro-stage { transition-duration: 850ms; }
.site-intro[data-phase="leaving"] .intro-heading,
.site-intro[data-phase="leaving"] .intro-hint,
.site-intro[data-phase="leaving"] .choice-caption,
.site-intro[data-phase="done"] .intro-heading,
.site-intro[data-phase="done"] .intro-hint,
.site-intro[data-phase="done"] .choice-caption { opacity: 0; transition: opacity 220ms ease; }
.site-intro[data-phase="leaving"] .theme-choice { pointer-events: none; }
.replay-intro { border: 0; background: transparent; padding: 0; color: inherit; font-size: inherit; white-space: nowrap; }
.replay-intro:hover { color: var(--accent); }
@media (pointer: coarse) { .pointer-hint { display: none; } .touch-hint { display: inline; } }
@media (max-width: 850px) {
  .theme-sheet .hero { padding-top: 70px; }
  .intro-heading { top: 90px; }
  .choice-caption { min-width: 174px; gap: 12px; padding: 14px 16px; bottom: 83px; }
}
@media (max-width: 560px) {
  .site-intro { --intro-slant: 13%; }
  .theme-sheet .hero { padding-top: 68px; }
  .intro-heading { top: 116px; padding: 6px 14px; gap: 10px; }
  .intro-heading h2 { font-size: 10px; }
  .intro-heading-line { width: 12px; }
  .choice-caption { min-width: min(126px, 30vw); gap: 7px; padding: 13px 10px; bottom: 78px; }
  .choice-caption strong { font-size: 14px; }
  .choice-caption small { font-size: 9px; }
  .choice-icon { width: 26px; height: 28px; font-size: 23px; }
  .moon-icon { font-size: 29px; }
  .choice-arrow { display: none; }
  .intro-hint { bottom: 24px; font-size: 10px; padding-inline: 12px; letter-spacing: .06em; }
  .boot-mark { grid-template-columns: repeat(2, 34px); gap: 4px; }
  .boot-mark span { height: 34px; }
  .boot-skip { right: 18px; top: 18px; }
}
@media (max-height: 580px) and (min-width: 561px) {
  .intro-heading { top: 92px; }
  .choice-caption { bottom: 64px; padding-block: 10px; }
  .intro-hint { bottom: 14px; }
  .boot-spinner { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-stage, .site-intro, .intro-boot, .choice-caption { transition: none !important; transform: none; }
  .choice-caption, .theme-choice:hover .choice-caption, .theme-choice:focus-visible .choice-caption { transform: translateX(-50%); }
  .boot-mark span, .boot-spinner i { animation: none; }
}
