@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/space-grotesk-latin.woff2") format("woff2");
}
:root { --header-height: 7.25rem; --footer-height: 5.25rem; color-scheme: dark; font-family: "Space Grotesk", Arial, sans-serif; color: #f5f3fa; background: #08080b; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid #bd9aef; outline-offset: 7px; }
img { display: block; }
::selection { color: white; background: #6521ae; }
.shell { width: min(100% - 7.5rem, 81rem); margin-inline: auto; }
.skip-link { position: absolute; top: -8rem; left: 1rem; z-index: 5; padding: 1rem; background: #f5f3fa; color: #08080b; }
.skip-link:focus { top: 1rem; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: var(--header-height); border-bottom: 1px solid #242129; }
.brand { display: flex; align-items: center; gap: .8rem; }
.brand-mark { width: 3.35rem; height: 3.35rem; }
.brand-name { margin: 0; font-size: 1.27rem; letter-spacing: .15em; font-weight: 600; line-height: 1.05; }
.brand-name span { display: block; margin-top: .45rem; font-size: .72rem; letter-spacing: .41em; }
.contact-link { padding: .85rem 1.3rem; border: 1px solid #49414f; font-size: .875rem; white-space: nowrap; transition: background .3s, border-color .3s; }
.contact-link:hover { border-color: #a17aba; background: #18101e; }
.cosmos { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-width: 0; min-height: 25rem; overflow: clip; isolation: isolate; }
.cosmos:focus { outline: none; }
.planet-scene { position: relative; width: min(100vw, 64rem, calc((100svh - var(--header-height) - var(--footer-height)) * 1.25)); aspect-ratio: 5 / 4; margin: 0; }
.planet-visual { position: absolute; inset: 0; }
.planet-caption { position: absolute; top: 87%; left: 50%; transform: translateX(-50%); width: min(100%, calc(100vw - 3rem)); margin: 0; text-align: center; line-height: 1.7; }
.planet-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.planet-canvas { opacity: 0; }
.planet-ready .planet-canvas { opacity: 1; }
.planet-ready .planet-fallback { visibility: hidden; }
.starfield { position: absolute; inset: 0; pointer-events: none; }
.star { --tint: 230, 233, 255; position: absolute; left: var(--x); top: var(--y); width: var(--size); height: var(--size); border-radius: 50%; background: #f7f6ff; box-shadow: 0 0 3px 1px rgba(var(--tint), .25); opacity: .65; animation: starlight var(--duration) ease-in-out var(--delay) infinite alternate; }
.star::before { content: ""; position: absolute; width: 1.1rem; height: 1.1rem; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(var(--tint), .2), rgba(var(--tint), .055) 24%, rgba(var(--tint), .012) 48%, transparent 72%); }
.star--blue { --tint: 149, 191, 255; }
.star--purple { --tint: 189, 145, 255; }
.star--red { --tint: 255, 140, 161; }
.star-impulse { position: absolute; width: 0; height: 0; pointer-events: none; will-change: transform, opacity; }
.star-impulse::before { content: ""; position: absolute; right: 0; top: -.6px; width: var(--length); height: 1.2px; transform: rotate(var(--angle)); transform-origin: right center; border-radius: 50%; background: linear-gradient(90deg, transparent, rgba(var(--tint), .18) 35%, #f7f6ff); }
.star-impulse::after { content: ""; position: absolute; left: -1px; top: -1px; width: 2px; height: 2px; border-radius: 50%; background: #f7f6ff; box-shadow: 0 0 6px 2px rgba(var(--tint), .35); }
@keyframes starlight { 0%, 18% { opacity: .3; } 65% { opacity: .78; } 100% { opacity: .48; } }
.site-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .7rem 1.5rem; min-height: var(--footer-height); padding-block: 1.25rem; border-top: 1px solid #242129; font-size: .875rem; color: #a7a1b0; }
.footer-contact { display: flex; flex-direction: column; align-items: center; gap: .25rem; min-width: 0; }
.footer-email { color: #bcb4c7; font-size: .75rem; line-height: 1.35; white-space: nowrap; }
.footer-policy { color: #a7a1b0; font-size: .6875rem; line-height: 1.5; text-decoration: underline; text-underline-offset: .2em; }
.footer-email:hover, .footer-policy:hover { color: #f5f3fa; }
.footer-copyright { justify-self: end; text-align: right; }
.footer-brand, .planet-caption { font-size: .8rem; letter-spacing: .1em; color: #dbd5e3; font-weight: 600; }
.policy-content { width: min(100% - 3rem, 48rem); margin-inline: auto; padding-block: clamp(2.5rem, 7vw, 5rem); line-height: 1.8; color: #c7c1ce; }
.policy-content h1 { margin: 0 0 .5rem; color: #f5f3fa; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.2; letter-spacing: -.035em; font-weight: 600; }
.policy-content h2 { margin: 2.25rem 0 .65rem; color: #f5f3fa; font-size: 1.1rem; line-height: 1.4; font-weight: 600; }
.policy-content p { margin: 0 0 1rem; }
.policy-content a { text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.policy-updated { font-size: .8rem; color: #a7a1b0; }
.policy-summary { margin-top: 2rem !important; padding: 1.25rem 1.5rem; border: 1px solid #39313f; border-radius: .4rem; color: #e5dfea; background: transparent; }
.error-page { min-height: 100svh; display: grid; place-content: center; gap: 2rem; text-align: center; padding: 2rem; }
.error-page h1 { margin: 0; font-size: clamp(3rem, 9vw, 6rem); font-weight: 500; letter-spacing: -.05em; }
.error-page p { margin: 0; color: #aaa6b4; line-height: 1.8; }
.error-page a { justify-self: center; }
@media (max-width: 1100px) { .shell { width: calc(100% - 5rem); } }
@media (max-width: 760px) {
  :root { --header-height: 6.25rem; }
  .shell { width: calc(100% - 3rem); }
  .site-header { gap: 1rem; }
  .brand-mark { width: 2.75rem; height: 2.75rem; }
  .brand { gap: .6rem; }
  .brand-name { font-size: 1.05rem; }
  .brand-name span { font-size: .6rem; }
  .planet-scene { width: min(116vw, 44rem, calc((100svh - var(--header-height) - var(--footer-height)) * 1.25)); }
  .site-footer { font-size: .75rem; gap: 1rem; }
  .footer-brand, .planet-caption { font-size: .75rem; }
}
@media (max-width: 600px) {
  :root { --footer-height: 7rem; }
  .site-footer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: .75rem; }
  .footer-contact { grid-column: 1 / -1; grid-row: 2; }
  .footer-copyright { grid-column: 2; grid-row: 1; }
}
@media (max-width: 420px) {
  .shell { width: calc(100% - 2.5rem); }
  .brand-mark { width: 2.5rem; height: 2.5rem; }
  .brand-name { font-size: .95rem; }
  .brand-name span { font-size: .55rem; }
  .contact-link { padding: .8rem .95rem; }
  .footer-copyright { font-size: .6875rem; }
}
@media (max-height: 600px) and (orientation: landscape) {
  :root { --header-height: 5rem; --footer-height: 4rem; }
  .site-footer { padding-block: .75rem; }
  .cosmos { min-height: 0; }
  .planet-scene { width: min(70vw, calc((100svh - var(--header-height) - var(--footer-height)) * 1.25)); }
}
@media (max-width: 600px) and (max-height: 600px) and (orientation: landscape) {
  :root { --footer-height: 6rem; }
  .site-footer { padding-block: .5rem; row-gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) { .star { animation: none; } .star-impulse { display: none; } *, *::before, *::after { transition: none !important; } }
/* Contact and Login always remain separate controls in that order. */
.header-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.login-link { border-color: #80658f; background: #22142d55; }
@media(max-width: 760px) { .site-header { gap: .75rem; } }
@media(max-width: 600px) {
  .site-header { height: auto; min-height: var(--header-height); padding-block: 1.1rem; flex-wrap: wrap; }
  .header-actions { gap: .5rem; margin-left: auto; }
  .header-actions .contact-link { padding: .75rem .65rem; font-size: .75rem; }
}
@media(max-width: 380px) {
  .site-header .brand { gap: .45rem; }
  .site-header .brand-mark { width: 2.25rem; height: 2.25rem; }
  .site-header .brand-name { font-size: .85rem; }
  .site-header .brand-name span { font-size: .5rem; }
}

.contact-link { text-align: center; }
