:root {
  --ink: #17131d;
  --muted: #51485f;
  --paper: #ddd0f7;
  --paper-2: #cdb8f0;
  --lavender: #c4b5fd;
  --lavender-dark: #8b5cf6;
  --line: rgba(23, 19, 29, .16);
  --white: #f0e7ff;
  --shadow: 0 25px 70px rgba(55, 35, 90, .16);
  --radius: 26px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 8%, rgba(196,181,253,.45), transparent 28rem),
    linear-gradient(135deg, #d7c4f5 0%, #e6daf9 48%, #d4c0f2 100%);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--lavender); color: var(--ink); }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), var(--max));
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 14px 11px 18px;
  background: rgba(231, 220, 252, .96);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  box-shadow: 0 20px 50px rgba(16,21,18,.2);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--lavender);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: rgba(23,19,29,.72);
  font-size: 13px;
  transition: .25s ease;
}
.nav a:hover, .nav a.active { color: var(--ink); background: var(--lavender); }
.menu-toggle {
  display: none;
  border: 0;
  background: var(--lavender);
  color: var(--ink);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 130px 0;
}
.hero {
  min-height: 100vh;
  padding-top: 160px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 70px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .24em;
  font-weight: 700;
}
.eyebrow span {
  width: 28px; height: 1px;
  background: currentColor;
}
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; line-height: 1.03; }
h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(54px, 7vw, 92px);
  letter-spacing: -.065em;
}
h1 em, h2 em { color: #7c3aed; font-style: normal; }
.hero-text {
  max-width: 610px;
  margin: 28px 0 30px;
  color: var(--muted);
  font-size: 17px;
}
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 13px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(16,21,18,.12); }
.btn-primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-primary:hover { background: #26302a; }
.btn-ghost { background: transparent; }

.mini-stats {
  display: flex;
  gap: 36px;
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 580px;
}
.mini-stats div { display: flex; flex-direction: column; }
.mini-stats strong { font-family: "Space Grotesk"; font-size: 25px; }
.mini-stats span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }

.hero-visual { position: relative; min-height: 620px; display: grid; place-items: center; }
.photo-card {
  position: relative;
  width: min(430px, 85%);
  padding: 14px;
  background: var(--ink);
  color: var(--ink);
  border-radius: 34px;
  transform: rotate(3deg);
  box-shadow: var(--shadow);
  z-index: 2;
}
.photo-top {
  display: flex; justify-content: space-between;
  padding: 6px 7px 12px;
  color: rgba(23,19,29,.58);
  font-size: 9px; letter-spacing: .16em;
}
.photo-card img {
  width: 100%;
  aspect-ratio: .82;
  object-fit: cover;
  display: block;
  border-radius: 22px;
  filter: saturate(.92) contrast(1.02);
}
.photo-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 8px 7px;
}
.photo-caption strong, .photo-caption span { display: block; }
.photo-caption strong { font-family: "Space Grotesk"; font-size: 14px; }
.photo-caption span { color: rgba(255,255,255,.55); font-size: 11px; }
.photo-caption .arrow { color: var(--lavender); font-size: 20px; }
.orbit {
  position: absolute;
  border: 1px solid rgba(16,21,18,.12);
  border-radius: 50%;
}
.orbit-one { width: 560px; height: 560px; }
.orbit-two { width: 680px; height: 680px; border-style: dashed; }
.floating-tag {
  position: absolute;
  z-index: 3;
  padding: 10px 13px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--lavender);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  box-shadow: 0 12px 30px rgba(16,21,18,.15);
}
.tag-one { top: 18%; right: 1%; transform: rotate(8deg); }
.tag-two { bottom: 16%; left: 1%; transform: rotate(-7deg); background: #eadfff; }
.tag-three { top:42%; left: 1%; transform: rotate(6deg); }
.tag-four { bottom: 35%; left: 1%; transform: rotate(-6deg); background: #eadfff; }
.tag-five { bottom: 5%; right: 12%; transform: rotate(5deg); } 

.section-head { margin-bottom: 65px; }
.section-head h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(44px, 6vw, 74px);
  letter-spacing: -.055em;
}

.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.about-copy { color: var(--muted); font-size: 16px; }
.about-copy .lead { color: var(--ink); font-size: 22px; line-height: 1.45; }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact-card {
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(246,240,255,.38);
}
.fact-card.accent { background: var(--lavender); border-color: var(--lavender); }
.fact-card span, .skill-card span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .18em;
  font-weight: 800;
}
.fact-card h3 { margin: 35px 0 6px; font-size: 21px; }
.fact-card p { margin: 0; color: var(--muted); font-size: 13px; }

.projects { border-top: 1px solid var(--line); }
.project-list { border-top: 1px solid var(--line); }
.project {
  display: grid;
  grid-template-columns: 70px 1fr 60px;
  gap: 25px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .3s ease, background .3s ease;
}
.project:hover { padding-left: 20px; padding-right: 20px; background: rgba(246,240,255,.48); }
.project-number { color: var(--muted); font-family: "Space Grotesk"; font-size: 13px; }
.project-type { margin: 0 0 8px; color: var(--muted); font-size: 10px; letter-spacing: .2em; font-weight: 800; }
.project h3 { margin: 0 0 10px; font-size: clamp(27px, 3vw, 40px); letter-spacing: -.04em; }
.project p { max-width: 700px; margin: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.chips span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
}
.project-link {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: .25s;
}
.project:hover .project-link { background: var(--lavender); border-color: var(--lavender); transform: rotate(8deg); }

.skills { border-top: 1px solid var(--line); }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.skill-card {
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(246,240,255,.36);
  transition: transform .25s, background .25s;
}
.skill-card:hover { transform: translateY(-5px); background: #eadfff; }
.skill-card h3 { margin: 65px 0 12px; font-size: 24px; }
.skill-card p { color: var(--muted); font-size: 14px; margin: 0; }


.cv-section { border-top: 1px solid var(--line); }
.cv-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: #eadfff;
  box-shadow: var(--shadow);
}
.cv-copy { max-width: 680px; }
.cv-badge {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}
.cv-card h3 { margin: 22px 0 10px; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.05em; }
.cv-card p { margin: 0; color: var(--muted); max-width: 600px; }
.cv-highlights { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.cv-highlights span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; }
.cv-actions { display: flex; flex-direction: column; gap: 10px; min-width: 170px; }
.cv-actions .btn { width: 100%; }
.btn-light { background: var(--paper); }

.credentials { border-top: 1px solid var(--line); }
.credential-wrap {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 50px;
  padding: 40px;
  border-radius: 34px;
  background: #d6c2f3;
  color: var(--ink);
}
.credential-intro p { max-width: 330px; color: rgba(23,19,29,.72); }
.progress-line { width: 100%; height: 3px; margin: 80px 0 15px; background: rgba(23,19,29,.15); }
.progress-line span { display: block; width: 72%; height: 100%; background: var(--lavender); }
.credential-intro small { color: var(--lavender); letter-spacing: .14em; font-size: 9px; font-weight: 800; }
.credential-list { display: grid; gap: 10px; }
.credential {
  display: grid;
  grid-template-columns: 45px 1fr 30px;
  gap: 15px;
  align-items: center;
  padding: 21px 0;
  border-bottom: 1px solid rgba(23,19,29,.14);
}
.credential-year { color: var(--lavender); font-size: 10px; letter-spacing: .1em; }
.credential strong { font-family: "Space Grotesk"; font-size: 17px; }
.credential p { margin: 3px 0 0; color: rgba(23,19,29,.62); font-size: 12px; }
.credential-icon { color: var(--lavender); font-size: 20px; }

.contact { padding-bottom: 90px; }
.contact-box {
  padding: 70px;
  border-radius: 40px;
  background: var(--lavender);
  text-align: center;
}
.contact-box .eyebrow { justify-content: center; color: rgba(36,28,47,.55); }
.contact-box h2 { margin: 0 auto; max-width: 850px; font-size: clamp(50px, 7vw, 88px); letter-spacing: -.06em; }
.contact-box > p:not(.eyebrow):not(.edit-note) { max-width: 650px; margin: 24px auto 30px; color: rgba(36,28,47,.65); }
.contact-actions { justify-content: center; }
.contact-box .btn-primary { background: var(--ink); }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 25px; margin-top: 45px; }
.socials a { font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--ink); }
.edit-note { margin: 35px 0 0; color: rgba(36,28,47,.55); font-size: 11px; }
code { background: rgba(16,21,18,.1); padding: 2px 5px; border-radius: 4px; }

footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 25px 0 35px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .04em;
}

.reveal { opacity: 0; transform: translateY(25px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header { top: 10px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    display: none;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    background: #e4d5fa;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.1);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 16px; }
  .hero { grid-template-columns: 1fr; padding-top: 145px; gap: 30px; }
  .hero-visual { min-height: 560px; }
  .about-grid, .credential-wrap { grid-template-columns: 1fr; }
  .cv-card { align-items: flex-start; flex-direction: column; }
  .cv-actions { flex-direction: row; width: 100%; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .progress-line { margin-top: 35px; }
}

@media (max-width: 620px) {
  .section { width: min(calc(100% - 28px), var(--max)); padding: 90px 0; }
  .site-header { width: calc(100% - 20px); }
  .brand > span:last-child { display: none; }
  h1 { font-size: 55px; }
  .hero-visual { min-height: 470px; }
  .photo-card { width: 82%; }
  .orbit-one { width: 400px; height: 400px; }
  .orbit-two { width: 470px; height: 470px; }
  .tag-one { right: -2%; }
  .tag-two { left: -2%; }
  .mini-stats { gap: 18px; }
  .about-grid, .fact-grid, .skills-grid { grid-template-columns: 1fr; }
  .fact-card { min-height: 155px; }
  .project { grid-template-columns: 35px 1fr 42px; gap: 10px; }
  .project:hover { padding-left: 10px; padding-right: 10px; }
  .project-link { width: 38px; height: 38px; }
  .credential-wrap { padding: 28px; }
  .cv-card { padding: 28px; }
  .cv-actions { flex-direction: column; }
  .contact-box { padding: 45px 22px; border-radius: 28px; }
  .contact-box h2 { font-size: 48px; }
  footer { flex-direction: column; gap: 7px; }
}


.credential-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.credential-link:hover {
  transform: translateX(6px);
}
