:root {
  --bg: #ececec;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --sage: #3f5c47;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  cursor: none;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
}

a {
  color: inherit;
  text-decoration: none;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 60;
  background: var(--sage);
}

#webgl {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cursor {
  position: fixed;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 50;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.laptop {
  width: min(780px, 88vw);
  transform-origin: 50% 40%;
}

.laptop-lid {
  position: relative;
  background: #1d1d1f;
  border-radius: 16px 16px 2px 2px;
  padding: 14px 11px 11px;
  box-shadow: 0 24px 60px rgba(29, 29, 31, 0.2);
}

.laptop-camera {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4a4a4c, #111 70%);
  transform: translateX(-50%);
}

.laptop-screen {
  position: relative;
  aspect-ratio: 16 / 10.15;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  container-type: size;
}

.laptop-base {
  height: 12px;
  background: linear-gradient(#f0f0f2, #c4c4c8);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 10px 24px rgba(29, 29, 31, 0.12);
}

.laptop-notch {
  display: block;
  width: 16%;
  height: 6px;
  margin: 0 auto;
  background: #1d1d1f;
  border-radius: 0 0 5px 5px;
}

.loader-grid {
  position: absolute;
  inset: -40% 0;
  background-image:
    linear-gradient(rgba(29, 29, 31, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 29, 31, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(900px) rotateX(58deg);
  transform-origin: center 40%;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 42%, #000 10%, transparent 72%);
  pointer-events: none;
}

.loader-corners span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--sage);
  border-style: solid;
}

.loader-corners span:nth-child(1) {
  top: 0.85rem;
  left: 0.85rem;
  border-width: 1.5px 0 0 1.5px;
}

.loader-corners span:nth-child(2) {
  top: 0.85rem;
  right: 0.85rem;
  border-width: 1.5px 1.5px 0 0;
}

.loader-corners span:nth-child(3) {
  bottom: 0.85rem;
  left: 0.85rem;
  border-width: 0 0 1.5px 1.5px;
}

.loader-corners span:nth-child(4) {
  bottom: 0.85rem;
  right: 0.85rem;
  border-width: 0 1.5px 1.5px 0;
}

.loader-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.2rem;
}

.loader-kicker {
  font-size: clamp(9px, 2.2cqw, 12px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}

.loader-name {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.045em;
  font-size: clamp(1.6rem, 12cqw, 3.6rem);
  line-height: 0.92;
  text-align: center;
}

.loader-line {
  display: block;
  overflow: hidden;
}

.loader-line span {
  display: block;
}

.loader-progress {
  display: grid;
  grid-template-columns: 2rem 1fr;
  align-items: center;
  gap: 0.7rem;
  width: min(220px, 48%);
}

.loader-pct {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.loader-bar {
  height: 2px;
  background: var(--line);
  overflow: hidden;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--sage);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  padding: 1.1rem 6vw;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  border-bottom: 1px solid var(--line);
  background: rgba(236, 236, 236, 0.72);
  backdrop-filter: blur(10px);
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem 1.75rem;
}

.topbar a {
  color: var(--ink);
}

.topbar a:hover {
  color: var(--sage);
}

main {
  position: relative;
  z-index: 2;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5vw;
  padding: 7rem 6vw 5rem;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  justify-self: end;
}

.hero-photo {
  margin: 0;
  width: 280px;
  height: 360px;
  border-radius: 22px;
  overflow: hidden;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  filter: grayscale(0.12);
}

.hero-socials {
  display: flex;
  gap: 0.7rem;
}

.hero-socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.hero-socials a:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

.hero-socials svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero-socials a.social-reveal {
  display: flex;
  width: auto;
  min-width: 40px;
  padding: 0 12px;
  overflow: hidden;
  border-radius: 999px;
}

.chip-extra {
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

.chip-extra-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding-left: 8px;
  opacity: 0;
  transform: translateX(-8px);
}

.social-reveal.is-open .chip-extra {
  pointer-events: auto;
}

.chip-value {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.copy-chip,
.copy-phone {
  display: none;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
}

.social-reveal .copy-chip {
  display: inline-flex;
}

.social-reveal.is-open:hover .copy-chip {
  border-color: #fff;
  color: #fff;
}

.kicker {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 0.7rem;
  color: var(--muted);
  letter-spacing: -0.02em;
}

.hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3.4rem, 8vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line span {
  display: inline-block;
}

.circled {
  display: inline-flex !important;
  width: 0.82em;
  height: 0.82em;
  border: 3px solid var(--ink);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 0.72em;
  transform: translateY(-0.04em);
}

.hero-lead {
  max-width: 34rem;
  margin-top: 1.35rem;
  font-size: 21px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.011em;
}

.pills {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 2.2rem;
}

.bloom {
  position: absolute;
  width: 72px;
  height: 72px;
  left: -18px;
  top: -22px;
  z-index: 0;
}

.pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 46px;
  padding: 0 1.4rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
}

.pill-fill {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
  min-width: 200px;
}

section {
  position: relative;
  z-index: 2;
  padding: 6.5rem 6vw;
  max-width: 1440px;
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 3rem 6vw;
  align-items: start;
}

.section-head {
  position: sticky;
  top: 5.5rem;
  margin-bottom: 0;
}

.section-head h2 {
  max-width: 12ch;
}

.index {
  font-family: var(--display);
  font-size: clamp(2.1rem, 3.4vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.subhead {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--muted);
  max-width: 18ch;
}

h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.lede {
  margin-top: 0.9rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.47;
}

.skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.skill-grid article {
  display: block;
  padding: 1.4rem 1.5rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.skill-grid h3 {
  margin-bottom: 0.45rem;
}

.pr-list,
.edu-list {
  border-top: 1px solid var(--ink);
}

.pr,
.edu-list article,
.job {
  border-bottom: 1px solid var(--line);
}

.skill-grid p,
.job-body ul,
.pr p,
.project p,
.edu-list p {
  color: #424245;
  font-size: 17px;
  line-height: 1.47;
}

.job {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

.job:first-of-type {
  border-top: 1px solid var(--ink);
}

.job-role {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
}

.job-dates,
.place {
  color: var(--muted);
  font-size: 14px;
  margin-top: 0.35rem;
}

.job-body h3,
.project h3,
.edu-list h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.job-body h3 span {
  display: block;
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  color: var(--muted);
  margin-top: 0.4rem;
  letter-spacing: 0;
}

.job-body h3 a:hover,
.edu-list a:hover {
  color: var(--sage);
}

.job-body ul {
  margin: 1rem 0 0.8rem 1rem;
  display: grid;
  gap: 0.55rem;
}

.text-link,
.oss-links a {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--sage);
  font-size: 15px;
  letter-spacing: -0.01em;
  text-transform: none;
}

.oss-links {
  display: flex;
  gap: 1.4rem;
}

.skill-grid h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.pr-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
}

.pr {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
}

.pr-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  color: var(--sage);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  border-top: none;
}

.project {
  position: relative;
  padding: 1.6rem 1.7rem;
  border: 1px solid var(--ink);
  min-height: 100%;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.project:hover {
  background: #fff;
  border-color: var(--sage);
}

.project-install {
  margin-top: 1rem;
  width: fit-content;
  max-width: 100%;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.55rem 0.85rem;
}

.project-install code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.project-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--sage);
  margin-bottom: 0.8rem;
}

.project-links {
  display: flex;
  gap: 1.6rem;
  margin-top: 1rem;
}

.project-links a {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.project-links a:hover {
  color: var(--sage);
}

.project-links a:not(.project-live) {
  position: relative;
  z-index: 1;
}

.project-live::after {
  content: "";
  position: absolute;
  inset: 0;
}

.edu-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
}

.edu-list article {
  display: block;
  padding: 1.3rem 0;
}

.edu-list span {
  display: block;
  margin-top: 0.45rem;
}

.edu-list span {
  font-size: 15px;
  color: var(--muted);
}

.soft-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 2.2rem;
  margin-top: 0;
  align-content: start;
}

.soft-list li {
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  border: none;
  border-radius: 0;
  padding: 0;
  background: none;
}

.soft-list h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.soft-list p {
  color: #424245;
  font-size: 16px;
  line-height: 1.5;
}

.contact {
  min-height: 70vh;
  align-items: end;
}

.contact-title {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 16ch;
  color: var(--muted);
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.6rem;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.contact-list a:hover {
  color: var(--sage);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: #fff;
}

.contact-icon svg {
  width: 16px;
  height: 16px;
}

.contact-phone .copy-phone {
  display: inline-flex;
}

footer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 1.2rem 6vw 1.8rem;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}

footer p:nth-child(2) {
  text-align: center;
}

footer p:nth-child(3) {
  text-align: right;
}

@media (max-width: 900px) {
  body {
    cursor: auto;
  }

  .cursor {
    display: none;
  }

  .laptop {
    width: min(640px, 94vw);
  }

  .split,
  .pr-list,
  .edu-list,
  .skill-grid,
  .soft-list,
  .hero {
    grid-template-columns: 1fr;
  }

  .section-head {
    position: static;
  }

  .section-head h2 {
    max-width: none;
  }

  .hero {
    padding: 6.5rem 1.2rem 3rem;
  }

  .hero-photo {
    order: -1;
    width: 180px;
    height: 230px;
    justify-self: start;
  }

  .hero-title {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  section,
  .topbar,
  footer {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .skill-grid article,
  .job,
  .project-grid,
  .edu-list article,
  footer {
    grid-template-columns: 1fr;
  }

  footer p {
    text-align: left !important;
  }

  .pr {
    grid-template-columns: 1fr;
  }
}
