@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');
/* Design tokens and base styles */
:root {
  --bg: #09080c;
  --surface: #111016;
  --ink: #f3effb;
  --muted: #aaa5b6;
  --accent: #bb92fa;
  --line: #2c2635;
  --sans: 'DM Sans', sans-serif;
  --display: 'Space Grotesk', sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  overflow-x: clip;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent);
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
p {
  margin-bottom: 20px;
}
.wrap {
  width: min(1320px, calc(100% - 96px));
  margin: auto;
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 99;
  background: var(--bg);
  padding: 10px;
}
.skip:focus {
  top: 12px;
}
/* Navigation */
.navigation {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  z-index: 4;
}
.wordmark {
  font: 700 25px var(--display);
  letter-spacing: -0.08em;
}
.wordmark span {
  color: var(--accent);
}
nav {
  display: flex;
  gap: 35px;
}
nav a {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 0;
}
/* Hero and character */
.hero {
  min-height: 690px;
  height: calc(100svh - 92px);
  max-height: 920px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 75%, #7032b34a 0, transparent 45%),
    radial-gradient(ellipse at 93% 47%, #713da324, transparent 25%);
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1.22fr 1fr;
  align-items: center;
  min-height: 540px;
  flex: 1;
  position: relative;
}
.hero-intro {
  z-index: 2;
  padding-bottom: 50px;
}
.hello {
  color: var(--accent);
  font: 400 26px var(--display);
  margin-bottom: 14px;
}
.hero h1 {
  font: 600 clamp(32px, 3.6vw, 57px) / 1.1 var(--display);
  letter-spacing: -0.04em;
}
.hero h1 span {
  color: var(--accent);
}
.intro-meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 24px;
  line-height: 1.7;
}
.hero-character {
  align-self: end;
  position: relative;
  width: 145%;
  margin-left: -22.5%;
  height: 100%;
  max-height: 760px;
  display: flex;
  align-items: end;
  justify-content: center;
  z-index: 1;
  transform: translate3d(var(--portrait-x, 0px), var(--portrait-y, 0px), 0)
    rotate(var(--portrait-tilt, 0deg));
  transform-origin: 50% 95%;
  transition: transform 0.7s ease-out;
  pointer-events: none;
}

/* The image and eye overlays breathe together inside this SVG. */
.hero-character .character-art {
  height: 100%;
  width: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 45px #9a52ef22);
  mask-image: linear-gradient(#000 84%, transparent 100%);
  transform-origin: 50% 90%;
  animation: character-breathe 5s ease-in-out infinite;
  will-change: transform;
}
.character-floor {
  position: absolute;
  bottom: 8px;
  left: 15%;
  width: 70%;
  height: 25px;
  animation: character-shadow 5s ease-in-out infinite;
  background: #7938ae4a;
  filter: blur(24px);
  border-radius: 50%;
}
.hero-role {
  z-index: 2;
  padding-left: 15px;
  padding-top: 130px;
}
.hero-role > p:first-child {
  font: 400 24px var(--display);
  color: var(--accent);
  margin-bottom: 10px;
}
.role-lines {
  font: 700 clamp(34px, 4.3vw, 70px) / 1.05 var(--display);
  letter-spacing: -0.035em;
}
.role-lines span {
  display: block;
}
.role-lines > span:first-child {
  color: var(--accent);
  text-shadow: 0 0 30px #a572d62b;
}
.outline {
  color: transparent;
  -webkit-text-stroke: 1px #c1b1d6;
}
.role-caption {
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-top: 23px;
}
.hero-cta {
  font-size: 14px;
  border-bottom: 1px solid #695479;
  display: inline-flex;
  gap: 32px;
  padding-bottom: 7px;
}
.hero-bottom {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 85px;
  gap: 25px;
}
.hero-socials {
  display: flex;
  align-items: center;
  gap: 22px;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.social-link svg {
  width: 22px;
  height: 22px;
}
.scroll-cue {
  font-size: 11px;
  letter-spacing: 0.16em;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--muted);
}
.scroll-line {
  width: 1px;
  height: 27px;
  background: linear-gradient(transparent, var(--accent));
  animation: scrollPulse 2s ease-in-out infinite;
}
.resume-hero {
  font-size: 12px;
  letter-spacing: 0.15em;
}
.resume-hero span {
  margin-left: 15px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}
.motion-control {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid #443450;
  border-radius: 20px;
  color: #c3b6d0;
  padding: 8px 12px;
  font: 12px var(--sans);
  cursor: pointer;
  min-height: 36px;
}
.motion-control:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.motion-control:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation-play-state: paused !important;
}

/* Projects */
.work-section {
  padding: 115px 0 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 35px;
  margin-bottom: 65px;
}
.section-head h2,
.about h2,
.contact h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.05em;
}
.section-head h2 {
  font-size: clamp(46px, 6vw, 84px);
  line-height: 1.1;
}
.section-head p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 8px;
}
em {
  font-style: normal;
  color: var(--accent);
}
.project {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 85px;
  align-items: center;
  margin-bottom: 75px;
  padding-bottom: 75px;
  border-bottom: 1px solid var(--line);
}
.work-section .project:last-child {
  margin-bottom: 0;
}
.project-index {
  font:
    12px ui-monospace,
    monospace;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 18px;
}
.project h3 {
  font: 500 46px/1.1 var(--display);
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.project-intro {
  font-size: 23px;
  line-height: 1.4;
}
.project-copy > p:not(.project-intro) {
  color: var(--muted);
}
.skills {
  list-style: none;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  padding: 0;
  margin: 25px 0;
}
.skills li {
  font:
    12px ui-monospace,
    monospace;
  padding: 7px 13px;
  border: 1px solid #3c304c;
  border-radius: 4px;
  background: #19131f;
  color: #d1bbec;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 5px 0;
  border-bottom: 1px solid #685277;
  font-size: 14px;
}
.text-link span {
  transition: transform 0.25s;
}
.text-link:hover span {
  transform: translate(3px, -3px);
}
.visual {
  min-width: 0;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.project:hover .visual {
  transform: translateY(-7px);
  box-shadow: 0 15px 65px #9d4eed12;
}
.terminal {
  border: 1px solid #3a2b49;
  border-radius: 10px;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 90% 0, #59297820, transparent 70%), #100e15;
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 20px;
  border-bottom: 1px solid #2e2339;
}
.terminal-bar > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #674582;
}
.terminal-bar > span:first-child {
  background: #b481ce;
}
.terminal-bar p {
  margin: 0 0 0 15px;
  font-size: 12px;
  color: var(--muted);
}
.terminal-content {
  font:
    14px/1.8 ui-monospace,
    monospace;
  padding: 40px 25px;
  overflow-wrap: anywhere;
}
.prompt {
  color: #caa4fc;
}
.terminal-content p {
  margin-bottom: 17px;
}
.terminal-muted {
  color: #8e7c9e;
  margin: 33px 0 !important;
}
.cursor {
  display: inline-block;
  width: 8px;
  height: 17px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1.5s step-end infinite;
}
.terminal-caption {
  margin-top: auto;
  border-top: 1px solid #2e2339;
  padding: 17px 25px;
  color: var(--muted);
  font-size: 13px;
}
details {
  margin-top: 27px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 13px 0;
}
summary::-webkit-details-marker {
  display: none;
}
details[open] summary span {
  transform: rotate(45deg);
}
details p {
  color: var(--muted);
  margin: 0;
}
.more-work {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.more-work h3 {
  font: 500 22px var(--display);
}
.more-work > div {
  display: flex;
  gap: 27px;
  flex-wrap: wrap;
}
.more-work a {
  border-bottom: 1px solid #483650;
  font-size: 15px;
  padding-bottom: 5px;
}
.more-work span {
  margin-left: 12px;
}
/* About and education */
.about {
  padding: 90px 0 125px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 85px;
  border-top: 1px solid var(--line);
}
.eyebrow {
  font:
    12px ui-monospace,
    monospace;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.about h2 {
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.25;
  margin-top: 25px;
}
.about-content > p {
  font-size: 18px;
  color: var(--muted);
}
.education {
  margin: 35px 0;
}
.education > div {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.education span {
  font:
    12px ui-monospace,
    monospace;
  color: var(--accent);
}
.education h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 8px 0;
}
.education p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}
.toolbox {
  margin-bottom: 30px;
}
.toolbox h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
}
.toolbox p {
  font-size: 15px;
  margin-bottom: 8px;
}
.languages {
  color: var(--muted);
}
/* Contact and footer */
.contact {
  padding-top: 105px;
  background: radial-gradient(ellipse at 80% 100%, #4a1b762e, transparent 70%);
  border-top: 1px solid var(--line);
}
.contact h2 {
  font-size: clamp(55px, 8.5vw, 126px);
  line-height: 1.05;
  margin: 30px 0 35px;
}
.contact > div > p {
  color: var(--muted);
}
.email {
  display: inline-block;
  border-bottom: 1px solid #7b588f;
  padding-bottom: 8px;
  overflow-wrap: anywhere;
}
footer {
  display: flex;
  gap: 30px;
  border-top: 1px solid var(--line);
  margin-top: 95px;
  padding: 28px 0;
  font-size: 13px;
  color: var(--muted);
}
footer > span {
  margin-right: auto;
}
/* Scroll reveals */
.reveal-ready {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.revealed {
  opacity: 1;
  transform: none;
}
/* Animations */
@keyframes character-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1) rotate(-0.25deg);
  }
  50% {
    transform: translateY(-7px) scale(1.012, 1.018) rotate(0.3deg);
  }
}
@keyframes character-shadow {
  0%,
  100% {
    opacity: 0.6;
    transform: scaleX(1);
  }
  50% {
    opacity: 0.85;
    transform: scaleX(1.09);
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes scrollPulse {
  50% {
    transform: translateY(6px);
    opacity: 0.4;
  }
}
/* Responsive layouts */
@media (min-width: 1500px) {
  .hero h1 {
    font-size: 57px;
  }
  .role-lines {
    font-size: 70px;
  }
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .hero {
    min-height: 620px;
  }
  .hero-layout {
    grid-template-columns: 1fr 1.1fr 1fr;
    min-height: 450px;
  }
  .hero h1 {
    font-size: clamp(28px, 4vw, 42px);
  }
  .hello {
    font-size: 22px;
  }
  .hero-role {
    padding-left: 0;
    padding-top: 130px;
  }
  .role-lines {
    font-size: clamp(30px, 4.4vw, 46px);
  }
  .hero-character {
    width: 155%;
    margin-left: -27.5%;
  }
  .intro-meta {
    font-size: 13px;
  }
  .role-caption {
    max-width: 180px;
  }
  .project,
  .about {
    gap: 45px;
  }
  .project h3 {
    font-size: 38px;
  }
  .project-intro {
    font-size: 21px;
  }
}
@media (max-width: 760px) {
  .hero-actions {
    gap: 12px;
  }
  .motion-control {
    padding: 7px 9px;
  }
  .motion-label {
    display: none;
  }

  .wrap {
    width: calc(100% - 40px);
  }
  .navigation {
    height: 78px;
  }
  nav {
    gap: 20px;
  }
  nav a {
    font-size: 12px;
  }
  .hero {
    height: auto;
    min-height: 790px;
  }
  .hero-layout {
    display: block;
    min-height: 690px;
  }
  .hero-intro {
    position: relative;
    padding-top: 45px;
    padding-bottom: 0;
    z-index: 3;
  }
  .hello {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .hero h1 {
    font-size: clamp(34px, 7vw, 52px);
  }
  .intro-meta {
    margin-top: 15px;
    max-width: 250px;
  }
  .hero-character {
    position: absolute;
    bottom: 0;
    left: 50%;
    margin: 0;
    width: 115%;
    height: 510px;
    max-width: 600px;
    transform: translateX(-50%)
      translate3d(var(--portrait-x, 0px), var(--portrait-y, 0px), 0)
      rotate(var(--portrait-tilt, 0deg));
  }
  .hero-role {
    position: absolute;
    right: 0;
    bottom: 48px;
    padding: 0;
    max-width: 55%;
    text-align: right;
    z-index: 3;
  }
  .role-lines {
    font-size: clamp(34px, 7.5vw, 56px);
  }
  .hero-role > p:first-child {
    font-size: 18px;
  }
  .role-caption {
    font-size: 12px;
    max-width: 210px;
    display: block;
    margin-top: 15px;
    margin-left: auto;
  }
  .hero-cta {
    background: #0d0914bb;
    padding: 7px 12px;
    border-radius: 3px;
    gap: 20px;
  }
  .hero-socials {
    gap: 12px;
  }
  .hero-bottom {
    gap: 14px;
    min-height: 80px;
  }
  .scroll-cue {
    font-size: 9px;
    letter-spacing: 0.02em;
    gap: 8px;
  }
  .social-link span {
    display: none;
  }
  .resume-hero {
    font-size: 10px;
  }
  .resume-hero span {
    margin-left: 5px;
  }
  .work-section {
    padding: 70px 0 0;
  }
  .section-head {
    display: block;
    margin-bottom: 45px;
  }
  .section-head h2 {
    font-size: 58px;
  }
  .section-head p {
    margin-top: 15px;
  }
  .project,
  .about {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .project {
    margin-bottom: 45px;
    padding-bottom: 45px;
  }
  .project h3 {
    font-size: 40px;
  }
  .terminal {
    min-height: 340px;
  }
  .terminal-content {
    font-size: 13px;
  }
  .more-work {
    display: block;
  }
  .more-work > div {
    margin-top: 20px;
    gap: 23px;
  }
  .about {
    padding: 65px 0;
    gap: 35px;
  }
  .about h2 {
    font-size: 34px;
  }
  .about-content > p {
    font-size: 17px;
  }
  .contact {
    padding-top: 65px;
  }
  .contact h2 {
    font-size: clamp(54px, 11vw, 84px);
  }
  footer {
    margin-top: 65px;
    gap: 20px;
    font-size: 12px;
    flex-wrap: wrap;
  }
  footer > span {
    width: 100%;
  }
}
@media (max-width: 380px) {
  nav {
    gap: 13px;
  }
  .hero-role {
    max-width: 60%;
  }
  .role-lines {
    font-size: 31px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .scroll-cue {
    font-size: 9px;
  }
  .terminal-content {
    padding: 28px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal-ready {
    opacity: 1;
    transform: none;
  }
  .hero-character {
    --portrait-x: 0px !important;
    --portrait-y: 0px !important;
    --portrait-tilt: 0deg !important;
  }

  .hero-character .character-art {
    will-change: auto;
  }
  .motion-control {
    display: none;
  }
}
