@font-face { font-family: Inter; src: url("inter.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: Outfit; src: url("outfit.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
:root {
  color-scheme: dark;
  --hero: #07080e;
  --page: #0d0e19;
  --panel: #151626;
  --panel-hover: #1b1c30;
  --text: #f7f7ff;
  --muted: #b0b3c9;
  --line: #2c2e43;
  --accent: #b5a3ff;
  --blue: #6c95ef;
  --name-end: #7da6ff;
  --quick: #111222eb;
  --quick-hover: #211e39;
}
body.light-mode {
  color-scheme: light;
  --hero: #f4f5fb;
  --page: #fafbff;
  --panel: #fff;
  --panel-hover: #f2f1fb;
  --text: #15172c;
  --muted: #4a5069;
  --line: #d6d9e8;
  --accent: #572dc2;
  --blue: #335fc7;
  --name-end: #335fc7;
  --quick: #fbfaffed;
  --quick-hover: #eeebff;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--page); font: 1rem/1.65 Inter, system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .22em; }
button { font: inherit; color: inherit; }
.background-links button[hidden] { display: none; }
:where(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3 { margin: 0; font-family: Outfit, system-ui, sans-serif; line-height: 1.15; }
p { margin: 0; }
.container { width: min(100% - 44px, 1160px); margin-inline: auto; }
.theme-toggle {
  position: absolute; z-index: 2; inset: 18px 20px auto auto; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--panel); cursor: pointer;
}
.theme-toggle:hover { background: var(--panel-hover); }
.hero {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  display: grid; place-items: center;
  min-height: clamp(530px, 69svh, 720px);
  padding: 74px 22px 52px; background: var(--hero);
}
.hero-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-art::before {
  content: ""; position: absolute; inset: 0;
  background: url("mandelbulb.webp") center 44% / auto min(87%, 660px) no-repeat;
  opacity: .56;
}
.hero-art canvas {
  width: min(100%, 1100px); height: 100%; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  opacity: 0; mask-image: radial-gradient(ellipse 67% 70% at 50% 45%, #000 44%, transparent 86%);
}
.hero-art.is-live::before { opacity: 0; }
.hero-art.is-live canvas { opacity: .89; }
.light-mode .hero-art::before { opacity: .16; }
.light-mode .hero-art.is-live::before { opacity: 0; }
.light-mode .hero-art.is-live canvas { opacity: .16; }
.hero-content { width: min(100%, 675px); position: relative; }
.hero-content::before {
  content: ""; position: absolute; z-index: -1; inset: 18% -30px 9%;
  background: radial-gradient(ellipse, var(--hero) 0%, transparent 67%);
  opacity: .5; pointer-events: none;
}
.profile-img {
  display: block; width: clamp(112px, 14vw, 154px); height: auto; aspect-ratio: 1;
  margin: 0 auto 23px; object-fit: cover; border-radius: 50%;
  border: 3px solid var(--line); box-shadow: 0 7px 28px #0005;
}
.name { font-size: clamp(2.5rem, 7vw, 4rem); font-weight: 800; line-height: 1.01; letter-spacing: -.037em; text-wrap: balance; }
@supports (background-clip: text) {
  .name { background: linear-gradient(113deg, var(--text) 14%, var(--name-end) 86%); background-clip: text; color: transparent; }
}
.tagline { margin-top: 10px; color: var(--muted); font-size: clamp(1.06rem, 2.75vw, 1.35rem); font-weight: 500; text-wrap: balance; }
.quick-links {
  display: inline-grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  margin: 24px auto 12px; padding: 4px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--quick);
}
.quick-links a {
  display: grid; place-items: center; min-height: 44px; padding: 6px clamp(10px, 2.5vw, 20px);
  border-radius: 8px; color: var(--text); font-size: .9375rem; font-weight: 600; text-decoration: none;
}
.quick-links a:hover { background: var(--quick-hover); color: var(--accent); }
.quick-links a:focus-visible { outline-offset: -2px; }
.social-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; }
.social-icon {
  display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%;
  color: var(--muted); text-decoration: none;
}
.social-icon:hover { color: var(--text); }
.social-icon img {
  display: block; width: 29px; height: 29px; border-radius: 50%;
  filter: grayscale(1); opacity: .82;
}
.social-icon:hover img, .social-icon:focus-visible img { filter: none; opacity: 1; }
.background-links { display: flex; min-height: 44px; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 16px; color: var(--muted); font-size: .875rem; }
.background-links :is(a, button) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
  font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .22em;
}
.background-links :is(a, button):hover { color: var(--text); text-decoration-color: currentColor; }
section.content { padding-block: clamp(33px, 5vw, 59px); border-top: 1px solid var(--line); scroll-margin-top: 15px; }
.section-title { font-size: clamp(1.8rem, 4.4vw, 2.45rem); padding-bottom: 12px; margin-bottom: 24px; position: relative; letter-spacing: -.015em; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 42px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--blue)); }
.about-text { max-width: 73ch; color: var(--muted); font-size: clamp(1rem, 2vw, 1.085rem); }
.about-text p + p { margin-top: .8em; }
.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  min-width: 0; display: flex; flex-direction: column; align-items: start; gap: 9px; padding: 20px;
  border: 1px solid var(--line); border-radius: 13px;
  background: var(--panel); text-decoration: none;
}
.card:hover { border-color: var(--accent); background: var(--panel-hover); }
.card-icon { font-size: 1.34rem; line-height: 1; }
.card h3 { font-size: 1.28rem; }
.card p { color: var(--muted); }
.card-link { margin-top: auto; padding-top: 5px; color: var(--accent); font-weight: 600; font-size: .9rem; }
.card:hover .card-link { text-decoration: underline; }
footer { border-top: 1px solid var(--line); padding: 26px 0 34px; color: var(--muted); font-size: .9rem; }
.footer-content { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.footer-content a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-content p { margin-right: auto; }
@media (max-width: 820px) { .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .hero { min-height: 0; padding: 76px 16px 26px; }
  .theme-toggle { inset: 12px 14px auto auto; }
  .profile-img { margin-bottom: 18px; }
  .quick-links { margin-top: 18px; }
  .quick-links a { padding-inline: 10px; font-size: .875rem; }
  .hero-art::before { background-size: auto 73%; background-position: center 32%; }
  .hero-art canvas { height: 75%; top: -1%; }
  .container { width: calc(100% - 36px); }
  .grid-cards { grid-template-columns: 1fr; }
  .section-title { margin-bottom: 20px; }
}
@media (max-width: 350px) {
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 245px); }
}
@media (forced-colors: active) { .name { background: none; color: CanvasText; } }
