:root {
  color-scheme: dark;
  --background: #101012;
  --text: #eeedf1;
  --muted: #96929f;
  --lavender: #b8a9ee;
  --line: #2b2832;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { background: var(--background); }
body { margin: 0; color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: var(--lavender); color: #17121f; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--lavender); outline-offset: 6px; }
h1, h2, p, figure { margin: 0; }
.page { width: min(1080px, calc(100% - 88px)); min-height: 100vh; min-height: 100svh; margin: auto; display: flex; flex-direction: column; }
.header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 500; letter-spacing: -.65px; }
.wordmark em { font-style: normal; font-weight: 400; color: var(--muted); }
.brand-symbol { width: 26px; height: 26px; color: var(--lavender); }
.navigation { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.navigation a { color: var(--muted); transition: color .2s; position: relative; }
.navigation a::after { content: ''; height: 1px; background: var(--lavender); position: absolute; inset: auto 0 -5px; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.navigation a:hover::after, .navigation a:focus-visible::after { transform: scaleX(1); }
.navigation a:hover, .navigation [aria-current="page"] { color: var(--text); }
.home-main { flex: 1; display: flex; align-items: center; justify-content: center; }
.hero { width: 820px; max-width: 100%; margin-inline: auto; text-align: center; padding: 25px 0 55px; }
.orbit-window { width: 100%; height: 440px; margin: 0 auto 38px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #35303e; border-radius: 12px; background: #111113; isolation: isolate; transition: border-color .6s, box-shadow .6s; }
.orbit-window::before { content: ''; position: absolute; inset: 1px; border-radius: inherit; background: radial-gradient(ellipse at var(--light-x, 50%) var(--light-y, 50%), #b9a2ef10, transparent 70%); opacity: .55; pointer-events: none; transition: opacity .7s; }
.orbit-window:hover, .orbit-window:focus-within { border-color: #5d4d75; box-shadow: 0 0 40px #b9a2ef06; }
.orbit-window:hover::before, .orbit-window:focus-within::before { opacity: 1; }
.orbit-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: inherit; cursor: grab; touch-action: pan-y; }
.orbit-canvas[hidden], .ascii-art[hidden], .motion-toggle[hidden] { display: none; }
.orbit-canvas:focus-visible { outline: 1px solid var(--lavender); outline-offset: 5px; }
.is-dragging .orbit-canvas { cursor: grabbing; }
.motion-toggle { position: absolute; z-index: 2; right: 5px; bottom: 5px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; border-radius: 6px; color: #a99abf; cursor: pointer; opacity: 0; transition: opacity .3s, color .3s; }
.orbit-window:hover .motion-toggle, .orbit-window:focus-within .motion-toggle, .is-paused .motion-toggle { opacity: 1; }
.motion-toggle:hover { color: #e0d3f6; }
.motion-toggle:focus-visible { outline: 1px solid var(--lavender); outline-offset: -5px; }
.motion-toggle .play-icon, .is-paused .motion-toggle .pause-icon { display: none; }
.is-paused .motion-toggle .play-icon { display: block; }
.window-dots { pointer-events: none; z-index: 1; }
.window-dots { position: absolute; top: 15px; left: 15px; display: flex; gap: 6px; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #635875; }
.window-dots i:first-child { background: #a798cb; }
.window-dots i:nth-child(2) { background: #827197; }
.ascii-art { margin: 10px 0 0; font: 10.8px/1.08 var(--mono); letter-spacing: 1.4px; color: #beafe0; user-select: none; white-space: pre; }
.hero h1 { width: fit-content; max-width: 100%; margin-inline: auto; font-size: clamp(38px, 4.5vw, 56px); line-height: 1.14; font-weight: 400; letter-spacing: -2.1px; }
.hero h1 span { white-space: nowrap; }
.hero p { max-width: 485px; margin: 19px auto 0; font-size: 16px; line-height: 1.8; color: var(--muted); text-wrap: balance; }
.project-button { display: inline-flex; align-items: center; justify-content: center; gap: 26px; margin-top: 29px; min-height: 45px; padding: 10px 23px; border: 1px solid #5b4b7d; border-radius: 6px; font-size: 14px; transition: border-color .3s, background .3s, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.project-button span { color: var(--lavender); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.project-button:hover, .project-button:focus-visible { border-color: #a591cf; background: #1a1622; transform: translateY(-2px); box-shadow: 0 5px 24px #b9a2ef08; }
.project-button:hover span, .project-button:focus-visible span { transform: translate(3px, -3px); }
.project-button:active { transform: translateY(0); }
.brand-symbol { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.wordmark:hover .brand-symbol, .wordmark:focus-visible .brand-symbol { transform: rotate(35deg); }
.footer { padding: 20px 0 25px; color: #77727e; font-size: 12px; }
.home-footer { text-align: center; }
.skip-link { position: absolute; top: -80px; left: 20px; z-index: 5; background: var(--lavender); color: #17121f; padding: 10px 16px; }
.skip-link:focus { top: 15px; }

/* Projects is a separate, deliberately small page. */
.projects-main { width: min(820px, 100%); margin: 80px auto 100px; flex: 1; }
.projects-heading h1 { font-size: 52px; font-weight: 400; line-height: 1.1; letter-spacing: -1.9px; }
.projects-heading p { margin-top: 18px; color: var(--muted); font-size: 17px; }
.project-list { margin-top: 65px; border-top: 1px solid var(--line); }
.project-entry { display: grid; grid-template-columns: 1fr 1.35fr auto; align-items: start; gap: 35px; padding: 35px 0 38px; border-bottom: 1px solid var(--line); }
.project-entry h2 { font-size: 27px; font-weight: 400; letter-spacing: -.8px; }
.project-entry p { max-width: 380px; font-size: 16px; line-height: 1.8; color: var(--muted); }
.project-entry .visit { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--lavender); }
.project-entry .visit:hover { color: var(--text); }
.project-entry .visit span:last-child { font-size: 20px; }
.project-entry { transition: border-color .4s; }
.project-entry:hover, .project-entry:focus-within { border-bottom-color: #66547e; }
.project-entry .visit span:last-child { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.project-entry .visit:hover span:last-child, .project-entry .visit:focus-visible span:last-child { transform: translate(3px, -3px); }

/* A single, quiet entrance; readable content never depends on JavaScript. */
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.header { animation: arrive .8s cubic-bezier(.2,.7,.2,1) both; }
.orbit-window { animation: arrive 1.1s cubic-bezier(.2,.7,.2,1) .08s both; }
.hero h1 { animation: arrive 1s cubic-bezier(.2,.7,.2,1) .19s both; }
.hero p { animation: arrive 1s cubic-bezier(.2,.7,.2,1) .28s both; }
.project-button { animation: arrive 1s cubic-bezier(.2,.7,.2,1) .36s backwards; }
.footer { animation: arrive 1s cubic-bezier(.2,.7,.2,1) .4s both; }
.projects-heading { animation: arrive .9s cubic-bezier(.2,.7,.2,1) .1s both; }
.project-entry { animation: arrive .9s cubic-bezier(.2,.7,.2,1) .2s both; }
@media (hover: none) { .motion-toggle { opacity: .75; } }

@media (min-width: 701px) and (max-height: 740px) {
  .header { min-height: 80px; }
  .hero { padding: 12px 0 30px; }
  .orbit-window { height: 400px; margin-bottom: 29px; }
  .ascii-art { font-size: 9.5px; }
  .hero h1 { font-size: 52px; }
  .hero p { margin-top: 16px; font-size: 15px; }
  .project-button { margin-top: 24px; }
  .footer { padding: 15px 0 22px; }
}
@media (max-width: 700px) {
  .page { width: calc(100% - 40px); }
  .header { min-height: 78px; }
  .wordmark { font-size: 19px; gap: 9px; }
  .brand-symbol { width: 24px; height: 24px; }
  .navigation { font-size: 14px; gap: 24px; }
  .hero { width: 100%; padding: 20px 0 38px; }
  .orbit-window { height: clamp(300px, 70vw, 390px); margin-bottom: 31px; }
  .motion-toggle { right: 7px; top: 2px; bottom: auto; }
  .ascii-art { font-size: clamp(5.5px, 1.7vw, 7px); letter-spacing: .7px; }
  .hero h1 { max-width: 340px; margin: auto; font-size: 40px; line-height: 1.13; letter-spacing: -1.5px; }
  .hero h1 span { display: block; }
  .hero p { max-width: 330px; margin-top: 19px; font-size: 15px; line-height: 1.8; }
  .project-button { margin-top: 25px; }
  .footer { padding: 17px 0 23px; font-size: 12px; }
  .projects-main { margin: 55px auto 70px; }
  .projects-heading h1 { font-size: 43px; }
  .projects-heading p { max-width: 310px; font-size: 16px; }
  .project-list { margin-top: 45px; }
  .project-entry { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .project-entry h2 { font-size: 28px; }
  .project-entry p { font-size: 15px; max-width: 340px; }
  .project-entry .visit { margin-top: 2px; justify-self: start; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .project-button:hover, .project-button:focus-visible, .project-button:hover span, .project-button:focus-visible span, .wordmark:hover .brand-symbol, .wordmark:focus-visible .brand-symbol, .project-entry .visit:hover span:last-child, .project-entry .visit:focus-visible span:last-child { transform: none; }
}
