:root {
  --ink: #101828;
  --ink-soft: rgba(16, 24, 40, .62);
  --blue: #1466ad;
  --glass: rgba(255, 255, 255, .58);
  --glass-edge: rgba(255, 255, 255, .7);
  --bar: rgba(255, 255, 255, .22);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #6f9fd0 url("img/wallpaper.webp") center / cover no-repeat fixed;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* menu bar, like the portfolio */
.menubar {
  position: fixed; inset: 0 0 auto 0; z-index: 2;
  height: 36px; padding: 0 max(14px, env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bar);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  color: #fff; font-size: 13px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
.menubar__left, .menubar__right { display: flex; align-items: center; gap: 10px; }
.menubar__left strong { font-weight: 600; }
.menubar__avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.menubar__right { gap: 14px; font-weight: 500; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; opacity: .95; }
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: #ffbd2e; box-shadow: 0 0 0 3px rgba(255, 189, 46, .28); }
.clock { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* desktop + window */
.desktop {
  min-height: 100%; padding: 64px 16px 32px;
  display: grid; grid-template-columns: minmax(0, 1fr); place-items: center;
}
.window {
  width: min(620px, 100%);
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(34px) saturate(180%);
  backdrop-filter: blur(34px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 30px 80px -20px rgba(10, 40, 90, .45), 0 10px 24px -12px rgba(10, 40, 90, .3);
  overflow: hidden;
  animation: rise .7s cubic-bezier(.2, .8, .2, 1) both;
}
.window__bar {
  position: relative; height: 44px; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid rgba(16, 24, 40, .07);
}
.lights { position: absolute; left: 16px; display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.lights i:nth-child(1) { background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.window__name { font-size: 13px; font-weight: 600; color: var(--ink-soft); }

.window__body {
  padding: 56px 32px 60px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
}
.me {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .85), 0 12px 28px -8px rgba(10, 40, 90, .45);
  animation: rise .7s .08s cubic-bezier(.2, .8, .2, 1) both;
}
h1 {
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: -.035em; line-height: 1.08;
  font-size: clamp(34px, 7.4vw, 56px);
  display: flex; flex-direction: column; align-items: center;
  animation: rise .7s .16s cubic-bezier(.2, .8, .2, 1) both;
}
.h1__name { display: block; }
.h1__line { display: block; white-space: nowrap; }
.h1__arrow { color: var(--blue); font-weight: 600; display: inline-block; animation: nudge 2.6s 1.2s ease-in-out infinite; }
.h1__what {
  background: linear-gradient(100deg, #1466ad 0%, #3b8fe0 55%, #6aa9ec 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .8);
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  animation: rise .7s .24s cubic-bezier(.2, .8, .2, 1) both;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: #ffbd2e; }

@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

@media (max-width: 520px) {
  .menubar { font-size: 12px; }
  .status { display: none; }
  .window__body { padding: 40px 20px 44px; }
  .clock__date { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .window, .me, h1, .pill, .h1__arrow { animation: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .window { background: rgba(255, 255, 255, .88); }
  .menubar { background: rgba(60, 110, 170, .6); }
}
