@font-face {
  font-family: Space Grotesk;
  src: url(fonts/space-grotesk.ttf) format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --ink: #1e163c;
  --light: #f0ecfa;
  --purple: #7945f6;
  --lilac: #b39aff;
  --edge: clamp(22px, 6.7vw, 110px);
  --rim: max(var(--edge), calc((100vw - 1300px) / 2));
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 65px;
}
body {
  margin: 0;
  background: #13121c;
  color: #faf8ff;
  font:
    400 16px/1.48 "Space Grotesk",
    sans-serif;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #aa85ff;
  outline-offset: 3px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h2 {
  text-transform: uppercase;
  letter-spacing: -0.055em;
  font-size: clamp(32px, 3.8vw, 60px);
  line-height: 0.98;
}
h3 {
  line-height: 1.13;
}
header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  transition: background 0.22s;
}
header.scrolled,
header.open {
  background: rgba(17, 15, 29, 0.96);
  box-shadow: 0 1px 0 #ffffff14;
}
nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3.3vw, 60px);
  min-height: 64px;
}
nav a {
  text-transform: uppercase;
  font-size: clamp(10px, 0.95vw, 14px);
  padding: 7px 0;
  border-bottom: 1px solid transparent;
}
nav a[aria-current],
nav a:hover {
  border-color: var(--lilac);
  color: white;
}
#menu {
  display: none;
}
#home {
  overflow: hidden;
  min-height: clamp(560px, 52vw, 900px);
  background: #15141f url(img/back1.png) center/cover;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 18px 35px;
}
.home-sub {
  font-size: clamp(11px, 1.08vw, 17px);
  letter-spacing: 0.36em;
  font-weight: 600;
}
h1 {
  font-size: clamp(56px, 10vw, 168px);
  line-height: 1;
  letter-spacing: -0.064em;
  background: linear-gradient(100deg, #fff 19%, #e0cfff 45%, #7d42ee 77%);
  color: transparent;
  background-clip: text;
}
.home-info {
  font-size: clamp(15px, 1.36vw, 22px);
  max-width: 29em;
  margin: 12px auto 28px;
}
.home-buttons,
.social {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.home-buttons a {
  border: 1px solid #d6c9ef;
  border-radius: 100px;
  padding: 12px 30px;
  font-size: clamp(14px, 1.15vw, 19px);
}
.home-buttons .project-button,
.primary {
  background: var(--purple);
  border-color: transparent;
  box-shadow: 0 4px 24px #7032f530;
}
.home-buttons a,
.filters button,
.project-card,
.social a {
  transition:
    transform 0.18s,
    background 0.18s;
}
.home-buttons a:hover,
.social a:hover,
.project-card:hover {
  transform: translateY(-3px);
}
#about,
.light {
  background: var(--light);
  color: var(--ink);
  color-scheme: light;
}
#about {
  display: grid;
  grid-template-columns: 1fr 1.03fr 1.28fr;
  gap: clamp(25px, 4vw, 86px);
  align-items: center;
  padding: clamp(22px, 2.1vw, 38px) var(--rim);
}
.about-photo img {
  width: 100%;
  aspect-ratio: 0.9;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: 0 6px 21px #30205224;
}
.label,
.section-label,
.about-2 {
  font:
    500 clamp(11px, 0.94vw, 14px) / 1.4 "Space Grotesk",
    sans-serif;
  letter-spacing: 0.16em;
  color: var(--lilac);
  margin-bottom: 18px;
}
.light .label,
.about-2 {
  color: #6344a6;
}
#about h2 {
  margin-bottom: 22px;
}
#about article > p:last-child {
  font-size: clamp(16px, 1.45vw, 22px);
  line-height: 1.4;
}
.band,
#experiences {
  padding: clamp(38px, 4vw, 76px) var(--rim);
}
#experiences {
  background:
    radial-gradient(at right bottom, #2d224e, transparent 58%), #12121c;
}
.experience-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: 7%;
  align-items: center;
}
.timeline {
  margin: 28px 0 0 8px;
  padding-left: clamp(18px, 2vw, 34px);
  border-left: 1px solid #765aa0;
}
.experience {
  position: relative;
  display: grid;
  grid-template-columns: minmax(75px, 0.65fr) 1.6fr;
  gap: 18px;
  margin: 0 0 20px;
}
.experience:last-child {
  margin: 0;
}
.experience:before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(18px, 2vw, 34px) - 6px);
  top: 4px;
  width: 8px;
  height: 8px;
  border: 2px solid #9a6aff;
  border-radius: 100%;
  background: #151220;
}
.experience-date {
  font-size: 12px;
  color: var(--lilac);
  text-transform: uppercase;
}
.experience h3 {
  font-size: 20px;
}
.experience h4 {
  font-weight: 500;
  color: #e5e0ed;
}
.experience ul {
  font-size: 14px;
  color: #c9c4d2;
  padding-left: 17px;
  margin: 5px 0 0;
}
.experience-image {
  position: relative;
  margin-bottom: 24px;
}
.experience-image img {
  width: 100%;
  max-height: 590px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.experience-image p,
.skill-note {
  background: #1c1929ef;
  border: 1px solid #514363;
  border-radius: 8px;
  color: #e2dce9;
  font-size: 14px;
  padding: 16px 20px;
}
.experience-image p {
  position: absolute;
  bottom: -22px;
  left: 6%;
  right: 6%;
  display: flex;
  gap: 12px;
  align-items: center;
}
.experience-image p:before {
  content: "“";
  font-size: 44px;
  color: var(--lilac);
  line-height: 0.8;
}
.project-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.filters button {
  background: #ffffff60;
  border: 1px solid #dad3e8;
  border-radius: 9px;
  color: var(--ink);
  padding: 7px 16px;
  font-size: 14px;
}
.filters button[aria-pressed="true"] {
  color: white;
  background: #7441e5;
  border-color: transparent;
}
#project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.project-card {
  background: linear-gradient(140deg, #14141c, #22202d);
  color: white;
  border-radius: 13px;
  padding: clamp(16px, 1.65vw, 25px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 7px 18px #3e295422;
}
.project-card h3 {
  font-size: clamp(20px, 1.85vw, 30px);
  letter-spacing: -0.04em;
  margin: 17px 0 10px;
}
.project-art {
  height: clamp(110px, 11vw, 175px);
  overflow: hidden;
  border-radius: 6px;
  display: grid;
  place-items: center;
}
.terminal {
  color: #76bc89;
  background: #090e10;
  font: 12px/1.25 monospace;
  white-space: pre;
}
.words {
  background: linear-gradient(135deg, #17151e, #201b30);
  font: 500 clamp(13px, 1.15vw, 18px) / 1.4 monospace;
  white-space: pre;
}
.sunset {
  background: url(img/experience.png) center 38% / cover;
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tags span {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 14px;
  background: #302d40;
  color: #eae5f5;
}
.description {
  margin: 13px 0 17px;
  color: #d9d4e4;
  font-size: clamp(14px, 1.2vw, 18px);
}
.project-card button {
  align-self: start;
  margin-top: auto;
  border: 0;
  background: none;
  color: #bb9cff;
  padding: 5px 0;
}
dialog {
  background: #211b30;
  color: white;
  padding: 36px;
  border: 1px solid #765a9a;
  border-radius: 14px;
  max-width: min(500px, 90vw);
  box-shadow: 0 16px 90px #0006;
}
dialog::backdrop {
  background: #0d0a19ba;
}
dialog h3 {
  font-size: 28px;
  margin: 0 25px 15px 0;
}
.close {
  position: absolute;
  top: 7px;
  right: 10px;
  color: white;
  font-size: 25px;
  border: 0;
  background: none;
}
#skills {
  background:
    linear-gradient(90deg, #12111cf5 0%, #141127e0 55%, #21145477),
    linear-gradient(#29206480, #2117449e),
    url(img/workspace.jpg) right center/auto 115% no-repeat,
    #13121d;
}
.skill-grid {
  max-width: 85%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.skill {
  background: #181622d9;
  border: 1px solid #40384d;
  border-radius: 7px;
  padding: 14px;
}
.skill h3 {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: clamp(14px, 1.13vw, 18px);
  font-weight: 600;
}
.skill h3 span {
  font: bold 20px monospace;
}
.skill p {
  color: #d1c7df;
  font-size: 12px;
  margin: 12px 0 6px;
}
.level {
  height: 5px;
  border-radius: 3px;
  background: repeating-linear-gradient(120deg, #7b609e 0 2px, #393046 2px 6px);
}
.skill-note {
  width: fit-content;
}
#education {
  background:
    linear-gradient(90deg, #f9f6ff 20%, #f3edfcf7 54%, #e8dcf561),
    url(img/books.jpg) right center/cover;
}
.schools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 84%;
  margin-top: 24px;
}
.schools article {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #faf8fff5;
  border-radius: 7px;
  padding: 22px;
  box-shadow: 0 3px 15px #523b711c;
}
.schools img,
.school-mark {
  width: 64px;
  flex: none;
}
.epi {
  filter: brightness(0) saturate(100%) invert(25%) sepia(92%) saturate(2379%)
    hue-rotate(198deg);
}
.school-mark {
  font-size: 26px;
  font-weight: 700;
  color: #443575;
  border: 2px solid;
  text-align: center;
}
.schools small {
  display: inline-block;
  background: #e8dcff;
  color: #542a99;
  border-radius: 18px;
  font-size: 11px;
  padding: 2px 9px;
  margin-bottom: 8px;
}
.schools p {
  font-size: 14px;
  color: #554b68;
}
#contact {
  background:
    linear-gradient(90deg, #151320 25%, #181525ef 55%, #23164644),
    url(img/coast.webp) right 52% / auto 150% no-repeat,
    #151320;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  align-items: center;
}
.contact-layout h2 {
  margin-bottom: 16px;
}
.contact-layout > div > p:not(.label) {
  color: #dfd9e8;
}
.social {
  justify-content: flex-start;
  gap: 10px;
  margin-top: 22px;
}
.social a {
  background: #201c2b;
  border: 1px solid #43394f;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 14px;
}
.social b {
  color: #aa84ff;
}
.social a:nth-child(2) b {
  background: #1775ad;
  color: white;
  padding: 0 3px;
}
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
label {
  font-size: 12px;
  color: #e0d9eb;
}
.wide {
  grid-column: 1/-1;
}
input,
textarea {
  display: block;
  width: 100%;
  padding: 8px;
  border: 1px solid #51465c;
  border-radius: 5px;
  color: white;
  background: #211e2ce8;
}
textarea {
  resize: vertical;
}
.primary {
  color: white;
  border: none;
  padding: 10px;
  border-radius: 7px;
}
#form-message {
  font-size: 14px;
}
footer {
  padding: 18px var(--rim);
  background: #101017;
  color: #c0bac9;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
footer div {
  display: flex;
  gap: 18px;
}
.sr {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 900px) {
  .skill-grid {
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .schools {
    max-width: none;
  }
  .experience-layout {
    gap: 4%;
  }
  .experience {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .project-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 680px) {
  html {
    scroll-padding-top: 55px;
  }
  header {
    min-height: 50px;
    display: grid;
    justify-items: end;
  }
  #menu {
    display: block;
    margin: 8px 18px;
    padding: 6px 13px;
    background: #201b32ed;
    color: white;
    border: 1px solid #6c5987;
    border-radius: 8px;
  }
  nav {
    display: none;
    width: 100%;
    padding: 6px 22px 18px;
  }
  .open nav {
    display: grid;
    gap: 1px;
  }
  nav a {
    font-size: 14px;
  }
  #home {
    min-height: 85svh;
    background-position: 49% center;
  }
  .home-sub {
    font-size: 10px;
  }
  .home-buttons {
    gap: 9px;
  }
  .home-buttons a {
    padding: 11px 17px;
  }
  #about {
    grid-template-columns: 90px 1fr;
    gap: 22px 18px;
    padding-block: 30px;
  }
  .about-photo img {
    aspect-ratio: 0.75;
  }
  .about-past {
    grid-column: 1/-1;
  }
  #about h2 {
    margin-bottom: 10px;
  }
  .label,
  .about-2,
  .section-label {
    margin-bottom: 11px;
  }
  .experience-layout,
  .contact-layout,
  #project-list,
  .schools {
    grid-template-columns: 1fr;
  }
  .experience-layout,
  .contact-layout {
    gap: 26px;
  }
  .experience {
    grid-template-columns: minmax(72px, 0.55fr) 1.3fr;
    gap: 12px;
  }
  .experience-date {
    font-size: 11px;
  }
  .experience-image img {
    max-height: 290px;
  }
  .project-art {
    height: 155px;
  }
  .skill-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .skill {
    padding: 12px;
  }
  .schools article {
    padding: 17px;
  }
  .filters {
    gap: 5px;
  }
  .filters button {
    padding: 6px 11px;
  }
  .project-heading {
    gap: 14px;
  }
  footer {
    flex-wrap: wrap;
    gap: 12px;
  }
  .home-info {
    max-width: 25em;
  }
  .schools {
    max-width: 440px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before {
    transition: none !important;
  }
}

@media (min-width: 681px) {
  h1 {
    transform: scaleX(1.14);
  }
  #home {
    background-size: 100% 100%;
  }
  .about-presentation h2 {
    font-size: clamp(38px, 4.7vw, 72px);
  }
}

.square-art,.tasks-art{white-space:pre;font:500 clamp(13px,1.3vw,20px)/1.45 monospace;background:radial-gradient(at top right,#382650,#171421 78%);color:#bfabff}
.tasks-art{background:linear-gradient(125deg,#151b28,#272033);color:#d8d0f9}
#detail:has(.demo-board),#detail:has(textarea),#detail:has(iframe){width:min(640px,94vw);max-width:94vw;max-height:88dvh;overflow:auto}
#detail-content>p,#detail-content>label{margin-bottom:14px}#detail-content>label{display:block;color:white}
.demo-actions{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
#detail-content button{color:white;background:#382b50;border:1px solid #6f578b;border-radius:6px;padding:7px 12px}
#detail-content button:hover{background:#523776}
.demo-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;max-width:390px}
#detail-content .demo-board button{aspect-ratio:1;padding:0;background:#292431;font:600 16px monospace}
#detail-content .demo-board [aria-pressed=true]{background:#704cb0}
#detail-content .demo-board .highlight{background:var(--island);color:#21132f}
.demo-result{padding:9px 0;color:#e3cfff}
#detail-content iframe{width:100%;height:min(58dvh,590px);border:1px solid #514762;border-radius:8px}
@media(max-width:500px){#detail{padding:26px 15px 16px}.demo-board{gap:3px}}
