:root {
  --bg: #14282d;
  --surface: #1c353b;
  --surface-hover: #27464d;
  --ink: #f2f7f6;
  --muted: #b6c7c8;
  --accent: #50d3b5;
  --accent-2: #8ae6cf;
  --legacy-ground: #c0c0c0;
  --paper: #fff;
  --paper-ink: #223a40;
  --legacy-blue: #14282d;
  --legacy-green: #50d3b5;
  --legacy-tint: #ededf4;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box }
[hidden] { display: none !important }
html, body { min-height: 100%; margin: 0; background: var(--bg); color: var(--ink) }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased }
button, input, textarea { font: inherit }
button, a { -webkit-tap-highlight-color: transparent }
button { cursor: pointer }
a { color: inherit }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px }
body.sx-section { overflow: hidden }

#orb { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; transition: transform .95s var(--ease), opacity .95s var(--ease) }
.headline { position: fixed; top: clamp(24px, 4vh, 48px); left: 50%; transform: translateX(-50%); width: min(1080px, calc(100% - 48px)); text-align: center; z-index: 3; opacity: 0; transition: opacity .7s var(--ease), transform .7s var(--ease) }
body.sx-ready .headline { opacity: 1 }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 650 }
.brand img { display: block; width: 220px; height: auto }
.headline h1 { margin: 0; font-size: clamp(40px, 4.7vw, 68px); line-height: 1.02; letter-spacing: -.045em; font-weight: 650; text-wrap: balance }
.sub { max-width: 620px; margin: 30px auto 22px; color: var(--ink); font-size: 18px; line-height: 1.5; text-wrap: balance }
.home-cta, .cta { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 22px; border: 0; border-radius: 0; background: var(--accent); color: var(--bg); font-size: 16px; font-weight: 650; text-decoration: none; transition: transform .18s var(--ease), background .18s }
.home-cta:hover, .cta:hover { background: var(--accent-2); transform: translateY(-2px) }
.home-cta:active, .cta:active { transform: translateY(1px) }
.home-controls { position: fixed; bottom: 24px; left: 24px; right: 24px; z-index: 4; display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted) }
.home-controls a { padding: 12px 0; text-underline-offset: 5px }
.home-controls p { margin: 0 }
.graphics-notice { position: relative; max-width: 760px; margin: 0 auto 24px; padding: 16px 24px; color: var(--ink); background: var(--surface); line-height: 1.5 }

.static-nav { position: fixed; left: 50%; bottom: 72px; transform: translateX(-50%); width: min(760px, calc(100% - 48px)); z-index: 5; opacity: 0; pointer-events: none; clip-path: inset(50%) }
.static-nav:focus-within { opacity: 1; pointer-events: auto; clip-path: none }
.static-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 62px; padding: 16px 20px; margin-top: 6px; background: var(--surface); border: 0; color: var(--ink); font-size: 18px; font-weight: 600; text-align: left; cursor: pointer; transition: background .18s, transform .18s var(--ease) }
.static-link:hover, .static-link:focus-visible { background: var(--surface-hover); transform: translateX(3px) }
.static-link .detail { font-size: 14px; font-weight: 400; color: var(--muted); text-align: right }
.static-link.is-accent { background: var(--accent); color: var(--bg) }
.static-link.is-accent .detail { color: var(--bg) }
html.sx-domnav .static-nav { opacity: 1; pointer-events: auto; clip-path: none; max-height: 48svh; overflow-y: auto; overscroll-behavior: contain }
html.sx-domnav .home-controls p { display: none }
body.sx-section .static-nav, body.sx-section .home-controls { opacity: 0; pointer-events: none }
body.sx-open #orb { transform: scale(.86) translateY(-5%); opacity: .1 }
body.sx-open .headline { opacity: 0; transform: translateX(-50%) translateY(-14px) }
body.sx-dim #orb { opacity: .25 }
body.sx-dim .headline { opacity: 0 }
body.sx-fast #orb, body.sx-fast .headline { transition: none }

html.sx-static #orb, html.sx-static .home-controls { display: none }
html.sx-static .headline { position: static; transform: none; margin: 0 auto; padding: 56px 0 40px; opacity: 1 }
html.sx-static .static-nav { position: relative; left: auto; bottom: auto; transform: none; margin: 0 auto; padding: 0 0 60px; opacity: 1; pointer-events: auto; clip-path: none; max-height: none }
html.sx-static .headline h1 { max-width: 850px; margin: auto }

.pi-shell { display: none; position: fixed; inset: 0; z-index: 1000; isolation: isolate; overscroll-behavior: none }
html.sx-preintro .pi-shell, .pi-shell.is-active { display: block }
.pi-page { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px 24px 160px; background: var(--legacy-ground); color: var(--paper-ink); font-family: "Times New Roman", Times, serif; font-size: 17px; line-height: 1.4; overflow: hidden }
.pi-page.is-textured { opacity: 0; pointer-events: none }
.pi-window { width: min(980px, 100%); background: var(--paper); border: 2px solid var(--paper-ink) }
.pi-topline { display: flex; justify-content: space-between; gap: 16px; padding: 7px 18px; background: var(--paper-ink); color: var(--legacy-green); font-size: 16px }
.pi-head { padding: 22px 20px 24px; text-align: center; background: var(--legacy-blue); color: var(--paper) }
.pi-head h1 { margin: 0; font-family: inherit; font-size: 58px; line-height: 1; font-weight: 700; letter-spacing: -.035em }
.pi-head h1 img { display: block; width: min(380px, 100%); height: auto; margin: auto }
.pi-head p { margin: 14px 0 0; font-size: 18px; line-height: 1.4 }
.pi-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 28px; padding: 12px 20px; background: var(--legacy-tint); color: var(--legacy-blue) }
.pi-nav [aria-disabled] { min-height: 28px; display: inline-flex; align-items: center; cursor: default; color: var(--paper-ink) }
.pi-grid { display: grid; grid-template-columns: 1.03fr 1fr; gap: 32px; padding: 24px }
.pi-grid h2 { margin: 0 0 12px; font-size: 25px; line-height: 1.1 }
.pi-grid h3 { margin: 20px 0 8px; font-size: 21px; line-height: 1.2 }
.pi-grid p { margin: 0 0 14px }
.pi-grid section > :last-child { margin-bottom: 0 }
.pi-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; text-align: left; line-height: 1.35 }
.pi-table caption { padding: 0 0 10px; text-align: left; font-size: 16px }
.pi-table th, .pi-table td { padding: 11px 12px; border-bottom: 1px solid var(--legacy-ground); vertical-align: top }
.pi-table th { width: 43%; font-weight: 700; background: var(--legacy-tint) }
.pi-footer { padding: 14px 24px; background: var(--legacy-tint); text-align: center; font-size: 16px }
.pi-effect { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1 }
.pi-controls { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: max(22px, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 24px; color: var(--paper-ink); font-size: 16px }
.pi-controls p { flex-basis: 100%; margin: 0 0 8px; text-align: center; font-size: 21px; line-height: 1.4; font-weight: 600 }
.pi-controls button { min-height: 46px; padding: 12px 20px; border: 0; border-radius: 0; background: var(--legacy-blue); color: var(--paper); font-size: 16px; font-weight: 600; transition: transform .16s var(--ease) }
.pi-controls button:hover { transform: translateY(-2px) }
.pi-controls button:active { transform: translateY(1px) }
.pi-controls #pi-enter { min-height: 64px; min-width: 380px; padding: 18px 28px; font-size: 21px; background: var(--accent); color: var(--bg) }
.pi-controls #pi-enter span { display: inline-block; margin-left: 12px; animation: entry-arrow 1.8s ease-in-out infinite }
@keyframes entry-arrow { 50% { transform: translateY(4px) } }
.pi-controls #pi-skip { padding: 12px; background: var(--legacy-ground); color: var(--paper-ink); text-decoration: underline; text-underline-offset: 4px }
.pi-shell[data-phase="burn"] .pi-controls p, .pi-shell[data-phase="reveal"] .pi-controls p { color: var(--paper); background: var(--bg); flex-basis: auto; padding: 6px 10px }
body.sx-intro-run #orb, body.sx-intro-run .headline { transition: none }
body.sx-intro-run .static-nav, body.sx-intro-run .home-controls { visibility: hidden }

@media (max-width: 900px) {
  .pi-grid { gap: 22px; padding: 22px }
  .pi-head h1 { font-size: 50px }
  .pi-topline { font-size: 15px }
  .pi-nav { gap: 6px 20px }
}
@media (max-width: 700px) {
  .headline { top: 22px; width: calc(100% - 36px) }
  .headline h1 { font-size: 42px }
  .brand { margin-bottom: 18px }
  .sub { margin-top: 24px; font-size: 16px; max-width: 370px }
  .static-nav { width: calc(100% - 36px); bottom: 62px }
  .static-link { min-height: 54px; padding: 13px 16px; font-size: 16px }
  .static-link .detail { max-width: 46%; font-size: 13px }
  .home-controls { left: 18px; right: 18px; bottom: 10px }
  .pi-page { padding: 14px 16px 158px; font-size: 16px }
  .pi-head { padding: 18px 14px }
  .pi-head h1 { font-size: 44px }
  .pi-head h1 img { width: 260px }
  .pi-head p { margin-top: 12px; font-size: 16px }
  .pi-topline { justify-content: center; font-size: 15px; padding: 6px 12px }
  .pi-topline span:last-child { display: none }
  .pi-nav { padding: 8px 12px; gap: 0 18px; font-size: 16px }
  .pi-nav [aria-disabled] { min-height: 28px }
  .pi-grid { grid-template-columns: 1fr; gap: 18px; padding: 18px }
  .pi-grid h2 { font-size: 22px; margin-bottom: 10px }
  .pi-extra, .pi-footer { display: none }
  .pi-grid p { margin-bottom: 0 }
  .pi-table th, .pi-table td { padding: 9px }
  .pi-table th { width: 42% }
  .pi-controls { left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); gap: 8px 12px }
  .pi-controls p { font-size: 18px }
  .pi-controls button { padding: 12px; font-size: 15px }
  .pi-controls #pi-enter { min-width: 0; flex: 1; min-height: 60px; padding: 16px 12px; font-size: 17px }
  .pi-controls #pi-enter span { margin-left: 5px }
}
@media (max-height: 760px) and (min-width: 701px) {
  .pi-page { padding-top: 12px; padding-bottom: 150px }
  .pi-head { padding: 14px }
  .pi-head h1 { font-size: 44px }
  .pi-head p { margin-top: 8px }
  .pi-grid { padding-top: 16px; padding-bottom: 16px }
  .pi-extra h3, .pi-extra h3 + p { display: none }
  .pi-controls { bottom: 14px }
}
@media (max-height: 740px) and (max-width: 700px) {
  .pi-intro-copy { display: none }
  .pi-page { padding-bottom: 154px }
  .pi-grid { padding: 14px }
  .headline h1 { font-size: 36px }
  .headline .brand { margin-bottom: 14px }
  .headline .sub { margin-top: 18px; margin-bottom: 16px }
  html.sx-domnav .static-nav { max-height: 43svh }
}
@media (max-height: 880px) and (max-width: 700px) {
  .pi-head { padding: 12px 14px }
  .pi-head h1 img { width: 240px }
  .pi-grid { gap: 14px; padding: 14px }
  .pi-table th, .pi-table td { padding: 8px }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important }
}
