:root {
  --dock-bottom: max(12px, calc(4px + env(safe-area-inset-bottom, 0px) * 0.6));
  --island: cubic-bezier(0.34, 1.3, 0.64, 1);
  --ink: #171717;
  --ink-soft: #2b313b;
  --muted: #737373;
  --muted-soft: #8d9197;
  --line: rgba(228, 232, 239, 0.97);
  --surface: #f5f5f3;
  --btn-dark: #131922;
  --link: #3271c1;
  --link-dark: #6a9de0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink-soft);
  letter-spacing: -0.02em;
}

strong {
  color: var(--ink);
}

a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: rgba(43, 49, 59, 0.25);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.profile-meta a,
.darkmode--activated .profile-meta a {
  text-decoration-color: transparent;
}

.profile-meta a:hover,
.profile-meta a:focus,
.darkmode--activated .profile-meta a:hover,
.darkmode--activated .profile-meta a:focus {
  text-decoration-color: currentColor;
}

#navigation-menu .nav-link,
#navigation-menu .nav-link * {
  transition: color 0.2s ease;
}

#navigation-menu .nav-link {
  color: var(--muted-soft);
  text-decoration: none;
  outline: none;
}

#navigation-menu .nav-link:hover,
#navigation-menu .nav-link:focus {
  color: var(--ink-soft);
  font-weight: inherit;
}

#navigation-menu .nav-link:focus-visible {
  color: var(--ink-soft);
  text-decoration: underline;
}

#navigation-menu .nav-link.active,
#navigation-menu .nav-link.active:hover {
  color: var(--ink-soft);
  font-weight: 700;
}



header ul.downloads {
  height: auto;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px !important;
  box-shadow: none !important;
  transition: background-color 0.2s ease;
}

header ul.downloads:hover {
  background: var(--surface);
}

header ul.downloads li {
  width: 100%;
  height: auto;
}

header ul.downloads a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  height: auto;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-soft);
  text-decoration: none;
}

header ul.downloads a:hover,
header ul.downloads a:focus {
  font-weight: inherit;
  text-decoration: none;
}

header ul.downloads .btn-icon {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

header ul.downloads a strong {
  display: inline;
  font-size: 14px;
  color: inherit;
}

header ul.downloads.downloads-primary {
  background: var(--btn-dark);
  border-color: var(--btn-dark);
}

header ul.downloads.downloads-primary:hover {
  background: #2b313b;
}

header ul.downloads.downloads-primary a {
  color: #fff;
}

.img-circle {
  box-shadow: 0 0 0 1px var(--line) !important;
}

th,
td {
  border-bottom-color: var(--line);
}

hr {
  border-color: var(--line);
}

.section-divider {
  margin: 8px 0 0;
}

.main-image-wrapper,
.main-special-image-wrapper,
.vdo-image-wrapper,
.poster1-image-wrapper,
.poster2-image-wrapper,
.poster3-image-wrapper {
  border-radius: 12px;
  overflow: hidden;
}

.job-highlights {
  font-size: 12px;
  color: var(--muted-soft);
  text-wrap: pretty;
}

.job-highlights-label {
  font-weight: 400;
  color: var(--ink-soft);
}

.nav-back {
  color: var(--ink-soft);
}

section input[type='text'],
section input[type='email'],
section textarea {
  padding: 8px 12px;
  border: 1px solid #d9dde3;
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

section input[type='text']:focus,
section input[type='email']:focus,
section textarea:focus {
  border-color: var(--ink-soft);
  box-shadow: 0 0 0 3px rgba(43, 49, 59, 0.08);
  outline: none;
}

form .button {
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

form .button:hover,
form .button:focus {
  background: var(--ink-soft);
}

.darkmode--activated a {
  color: #e6e8eb;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.darkmode--activated a:hover,
.darkmode--activated a:focus {
  color: var(--link-dark);
  text-decoration-color: currentColor;
}

.darkmode--activated #navigation-menu .nav-link:hover,
.darkmode--activated #navigation-menu .nav-link:focus-visible,
.darkmode--activated #navigation-menu .nav-link.active,
.darkmode--activated .nav-back {
  color: #fff;
}

.darkmode--activated .job-highlights-label {
  color: #e6e8eb;
}

.darkmode--activated .job-highlights {
  color: #7a7a7a;
}

.darkmode--activated .img-circle {
  box-shadow: 0 0 0 1px #2e2e2e !important;
}

img.img-circle[data-src^='./logo/'] {
  box-shadow: 0 1px 2px rgba(19, 25, 34, 0.04), 0 2px 8px rgba(19, 25, 34, 0.06) !important;
}

.darkmode--activated img.img-circle[data-src^='./logo/'] {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.darkmode--activated hr {
  border-color: #2e2e2e;
}

.darkmode--activated header ul.downloads {
  background: #2a2a2a;
  border-color: #2a2a2a;
}

.darkmode--activated header ul.downloads:hover {
  background: #363636;
}

.darkmode--activated header ul.downloads a {
  color: #e6e8eb;
}

.darkmode--activated header ul.downloads.downloads-primary {
  background: #f5f5f3;
  border-color: #f5f5f3;
}

.darkmode--activated header ul.downloads.downloads-primary:hover {
  background: #fff;
}

.darkmode--activated header ul.downloads.downloads-primary a {
  color: #131922;
}

.darkmode--activated section input[type='text'],
.darkmode--activated section input[type='email'],
.darkmode--activated section textarea {
  background: #222222;
  border-color: #2e2e2e;
  color: #e6e8eb;
}

.darkmode--activated section input[type='text']:focus,
.darkmode--activated section input[type='email']:focus,
.darkmode--activated section textarea:focus {
  border-color: #bbb;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.darkmode--activated form .button {
  background: #f5f5f3;
  color: #131922;
}

.darkmode--activated form .button:hover,
.darkmode--activated form .button:focus {
  background: #fff;
}

.darkmode--activated body {
  background-color: #171717;
  color: #a3a3a3;
}

html,
body,
section {
  overflow-x: clip;
}

.followMeBar,
.darkmode--activated .followMeBar {
  position: sticky;
  top: 0;
  z-index: 2;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.followMeBar {
  padding-bottom: 20px;
  background: #fff;
}

.followMeBar h1,
.followMeBar h2 {
  margin: 0;
  color: var(--ink-soft);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.darkmode--activated .followMeBar h1,
.darkmode--activated .followMeBar h2 {
  color: #fff;
}

.darkmode--activated .followMeBar {
  padding-bottom: 20px;
  background: #171717;
}

.darkmode--activated .main-image-wrapper,
.darkmode--activated .main-special-image-wrapper,
.darkmode--activated .vdo-image-wrapper,
.darkmode--activated .poster1-image-wrapper,
.darkmode--activated .poster2-image-wrapper,
.darkmode--activated .poster3-image-wrapper,
.darkmode--activated .logo-image-wrapper {
  background-color: #222222;
}

.theme-switching,
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
  transition: none !important;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  z-index: 1;
}

::view-transition-new(root) {
  z-index: 2;
}

.theme-to-light::view-transition-old(root) {
  z-index: 2;
}

.theme-to-light::view-transition-new(root) {
  z-index: 1;
}

.theme-toggle {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.theme-toggle:focus {
  outline: none;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--ink-soft);
  outline-offset: 3px;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.darkmode--activated .theme-toggle {
  border-color: #363636;
  background: #2a2a2a;
  color: #e6e8eb;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.darkmode--activated .theme-toggle:focus-visible {
  outline-color: #e6e8eb;
}

@media (max-width: 767px) {
  .theme-toggle {
    right: 16px;
    bottom: 16px;
  }
}

header img.img-circle {
  display: block;
  margin-bottom: 20px;
}

header img.img-circle + br,
header img.img-circle + br + br {
  display: none;
}

@media (min-width: 768px) {
  header img.img-circle {
    margin-top: -8px;
  }

  #about + .followMeBar {
    margin-top: -22px;
  }

  .followMeBar,
  .darkmode--activated .followMeBar {
    top: var(--bar-top, 0px);
  }

  .followMeBar.is-stuck::before {
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: max(0px, var(--bar-top, 0px));
    background: inherit;
    content: '';
  }
}

.about-text {
  margin: 0 0 28px 10px;
  max-width: 460px;
}

.about-greeting {
  margin: 0 0 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.about-greeting:last-child {
  margin-bottom: 0;
}

.darkmode--activated .about-greeting {
  color: #e6e8eb;
}

.about-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.about-item:last-child {
  margin-bottom: 0;
}

.about-item p {
  margin: 0;
  line-height: 1.75;
}

.about-text p {
  text-wrap: pretty;
}

.about-text a {
  white-space: nowrap;
}

.about-icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.nowrap {
  white-space: nowrap;
}

.freelance-intro {
  margin: 0 0 18px;
}

.skill-group-wide {
  grid-column: 1 / -1;
}

.services-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-left: 10px;
}

.freelance-links {
  margin: 0;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--btn-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.pill-btn:hover,
.pill-btn:focus {
  background: #2b313b;
  color: #fff;
  text-decoration: none;
}

.pill-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.darkmode--activated .pill-btn {
  background: #f5f5f3;
  color: #131922;
}

.darkmode--activated .pill-btn:hover,
.darkmode--activated .pill-btn:focus {
  background: #fff;
  color: #131922;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 4px 0 28px 10px;
}

.skill-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  color: var(--ink-soft);
  font-weight: 700;
}

.skill-icon {
  flex: none;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-items {
  padding-left: 23px;
  line-height: 1.6;
  text-wrap: pretty;
}

.darkmode--activated .skill-head {
  color: #e6e8eb;
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

.edu-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(19, 25, 34, 0.04), 0 2px 8px rgba(19, 25, 34, 0.06);
  color: var(--ink-soft);
}

.edu-badge svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.darkmode--activated .edu-badge {
  background: #222;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.3);
  color: #e6e8eb;
}

.activities {
  margin: 4px 0 28px 10px;
}

.activity-year {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.activity-year:last-child {
  border-bottom: 1px solid var(--line);
}

.activity-label {
  color: var(--muted-soft);
  font-style: italic;
  line-height: 1.75;
}

.activity-year ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-year li {
  line-height: 1.75;
}

.activity-at {
  color: var(--muted-soft);
}

.activities sup {
  font-size: 0.7em;
  line-height: 0;
}

.darkmode--activated .activity-year {
  border-color: #2e2e2e;
}

.app-list {
  margin: 0 0 28px 10px;
}

.app-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.app-icon {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 23%;
  box-shadow: 0 1px 2px rgba(19, 25, 34, 0.04), 0 2px 8px rgba(19, 25, 34, 0.06);
  overflow: hidden;
}

.app-icon img {
  width: 100%;
  height: 100%;
}

.app-icon::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 45%);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
  content: '';
}

.darkmode--activated .app-icon {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.darkmode--activated .app-icon::after {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 40%);
  box-shadow: none;
}

.app-bullets {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted-soft);
  font-size: 13px;
  line-height: 1.7;
}

.app-bullets li {
  position: relative;
  padding-left: 14px;
  break-inside: avoid;
}

@media (min-width: 481px) {
  .app-bullets {
    column-count: 2;
    column-gap: 24px;
  }

  .app-bullets.app-bullets-single {
    column-count: 1;
  }
}

.app-bullets li::before {
  position: absolute;
  top: 0.75em;
  left: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: '';
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  margin-top: 4px;
}

.app-row:last-child {
  border-bottom: 1px solid var(--line);
}

.app-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
}

.app-row strong {
  line-height: 1.5;
}

.app-org {
  display: block;
  color: var(--muted-soft);
  font-size: 13px;
  line-height: 1.5;
}

.darkmode--activated .app-row {
  border-color: #2e2e2e;
}

.talks {
  margin: 0 0 28px 10px;
}

.talk:last-child {
  border-bottom: 1px solid var(--line);
}

.talk {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}

.talk-date {
  color: var(--muted-soft);
  font-style: italic;
}

.talk-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 4px;
}

.talk-tag {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  line-height: 20px;
}

.darkmode--activated .talk {
  border-color: #2e2e2e;
}

.darkmode--activated .talk-tag {
  background: #262626;
  color: #a3a3a3;
}

.pr-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 16px;
  margin: 8px 0 28px 10px;
}

.pr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.pr-item:hover,
.pr-item:focus,
.darkmode--activated .pr-item:hover,
.darkmode--activated .pr-item:focus {
  color: inherit;
  text-decoration: none;
}

.pr-item .logo-image-wrapper {
  margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(19, 25, 34, 0.04), 0 2px 8px rgba(19, 25, 34, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pr-item .img-circle {
  box-shadow: none !important;
}

.darkmode--activated .pr-item .logo-image-wrapper {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pr-item:hover .logo-image-wrapper {
  box-shadow: 0 1px 3px rgba(19, 25, 34, 0.06), 0 4px 12px rgba(19, 25, 34, 0.09);
  transform: translateY(-2px);
}

.pr-name {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.pr-role {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.pr-year {
  color: var(--muted-soft);
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
}

.pr-item:hover .pr-name {
  color: var(--link);
}

.darkmode--activated .pr-name {
  color: #e6e8eb;
}

.darkmode--activated .pr-item:hover .pr-name {
  color: var(--link-dark);
}

@media (max-width: 480px) {
  .pr-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.awards li + li {
  margin-top: 10px;
}

.award-desc {
  display: block;
  color: var(--muted-soft);
  font-size: 13px;
}

.awards .activity-label {
  font-style: normal;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted-soft);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer .back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-soft);
  text-decoration: none;
}

.site-footer .back-to-top:hover,
.site-footer .back-to-top:focus {
  color: var(--ink-soft);
  text-decoration: none;
}

.back-to-top svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webring {
  display: flex;
  flex: none;
}

.webring img {
  display: block;
  width: 20px;
  height: 20px;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.webring:hover img,
.webring:focus img {
  opacity: 0.85;
}

.darkmode--activated .site-footer .back-to-top:hover,
.darkmode--activated .site-footer .back-to-top:focus {
  color: #e6e8eb;
}

.darkmode--activated .webring img {
  filter: invert(1);
}

.more-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-soft);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

a.more-link:hover,
a.more-link:focus {
  color: var(--link);
  text-decoration: none;
}

.darkmode--activated a.more-link:hover,
.darkmode--activated a.more-link:focus {
  color: var(--link-dark);
}

.link-sep {
  margin: 0 8px;
  color: var(--muted-soft);
  opacity: 0.6;
}

.more-link:hover .icon-ext {
  transform: translate(1.5px, -1.5px);
}

.more-link:hover .icon-next {
  transform: translateX(2px);
}

.more-link:hover .icon-download {
  transform: translateY(2px);
}


.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.section-head h2 {
  margin-bottom: 20px;
}

.about-text {
  text-align: left;
}

.about-hello {
  display: block;
  margin-bottom: 4px;
}

.name-typer {
  position: relative;
  padding-right: 4px;
  display: inline-flex;
  align-items: baseline;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.name-typer-caret {
  position: absolute;
  top: 0.18em;
  left: 1px;
  width: 1.5px;
  height: 1em;
  transition: transform 0.1s ease-out;
  background: var(--link);
  animation: caret-blink 1.1s ease-in-out infinite;
}

.name-typer.is-typing .name-typer-caret {
  animation: none;
}

@keyframes caret-blink {
  0%,
  20%,
  100% {
    opacity: 1;
  }
  55%,
  75% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .name-typer-caret {
    display: none;
  }
}

.darkmode--activated .name-typer {
  color: #fff;
}

.about-text .about-greeting {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.about-text .about-hello {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.about-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 4px;
}

.about-talk,
.about-talk:hover,
.about-talk:focus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: var(--btn-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.about-talk:hover,
.about-talk:focus {
  background: #2b313b;
  transform: translateY(-1px);
}

.about-talk svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.darkmode--activated .about-talk,
.darkmode--activated .about-talk:hover,
.darkmode--activated .about-talk:focus {
  background: #f5f5f3;
  color: #131922;
}

.darkmode--activated .about-talk:hover,
.darkmode--activated .about-talk:focus {
  background: #fff;
}

.about-text .about-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-soft);
  font-size: 13px;
  text-decoration: none;
}

.about-text .about-cta:hover,
.about-text .about-cta:focus {
  color: var(--link);
  text-decoration: none;
}

.about-cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: cta-nudge 1.8s ease-in-out infinite;
}

@keyframes cta-nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

.darkmode--activated .about-text .about-greeting {
  color: #a3a3a3;
}

.darkmode--activated .about-text .about-hello {
  color: #fff;
}

.darkmode--activated .about-text .about-cta:hover,
.darkmode--activated .about-text .about-cta:focus {
  color: var(--link-dark);
}

@media (prefers-reduced-motion: reduce) {
  .about-cta svg {
    animation: none;
  }
}

body,
button,
input,
select,
textarea {
  font-family: 'Noto Sans', 'Noto Sans Thai', 'Helvetica Neue', Helvetica, Arial,
    sans-serif;
}

.subprojects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  margin: 4px 0 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.subproject {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.6;
}

.subproject-date {
  color: var(--muted-soft);
  font-style: italic;
}

.subproject-title {
  color: var(--ink-soft);
  font-size: 14px;
}

.subproject-desc {
  margin: 2px 0 8px;
  color: var(--muted);
  text-wrap: pretty;
}

.darkmode--activated .subprojects {
  border-color: #2e2e2e;
}

.darkmode--activated .subproject-title {
  color: #e6e8eb;
}

.darkmode--activated .subproject-desc {
  color: #a3a3a3;
}

@media (max-width: 480px) {
  .subprojects {
    grid-template-columns: 1fr;
  }
}

.darkmode--activated .name-typer-caret {
  background: var(--link-dark);
}

.section-head .more-link {
  color: var(--muted-soft);
  text-decoration: none;
  white-space: nowrap;
}

.section-head .more-link:hover,
.section-head .more-link:focus {
  color: var(--link);
  text-decoration: none;
}

.darkmode--activated .section-head .more-link:hover,
.darkmode--activated .section-head .more-link:focus {
  color: var(--link-dark);
}

.name-typer-char {
  animation: char-ink 0.9s ease-out both;
}

@keyframes char-ink {
  from {
    color: var(--link);
  }
  to {
    color: var(--ink);
  }
}

.darkmode--activated .name-typer-char {
  animation-name: char-ink-dark;
}

@keyframes char-ink-dark {
  from {
    color: var(--link-dark);
  }
  to {
    color: #fff;
  }
}

.name-typer:not(.is-ready) .name-typer-caret {
  display: none;
}

.name-typer-text::after {
  content: '\200b';
}

@media (min-width: 768px) {
  div.wrapper {
    display: grid;
    grid-template-columns: 270px minmax(0, 500px);
    justify-content: space-between;
    column-gap: 40px;
    width: auto;
    max-width: 860px;
    margin: 0 auto;
  }

  header {
    position: sticky;
    top: var(--header-top, 50px);
    align-self: start;
    float: none;
    width: auto;
    padding-right: 0;
  }

  section {
    float: none;
    width: auto;
  }
}

@media (min-width: 768px) and (max-width: 960px) {
  body {
    padding: 32px;
  }

  div.wrapper {
    grid-template-columns: 240px minmax(0, 1fr);
    column-gap: 32px;
  }

  header {
    top: var(--header-top, 32px);
    z-index: 600;
  }

  section {
    margin: 0;
    padding: 0 0 50px;
    border: 0;
  }
}

#navigation-menu.flex-column {
  position: relative;
  display: flex !important;
  gap: 2px;
  width: max-content;
  margin: 0 !important;
  padding: 5px !important;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 20px rgba(19, 25, 34, 0.08), inset 0 0 0 1px rgba(19, 25, 34, 0.05);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}

#navigation-menu .nav-link {
  position: relative;
  z-index: 1;
  padding: 8px 14px;
  border-radius: 999px;
  line-height: 20px;
  white-space: nowrap;
  transition: color 0.35s ease, background-color 0.2s ease;
}

#navigation-menu .nav-link-lg,
#navigation-menu .nav-back {
  font-size: 14px;
}

#navigation-menu .nav-link.active,
#navigation-menu .nav-link.active:hover {
  background: var(--btn-dark);
  color: #fff;
  font-weight: inherit;
}

#navigation-menu.has-indicator .nav-link.active,
#navigation-menu.has-indicator .nav-link.active:hover {
  background: transparent;
}

#navigation-menu .nav-link.active .nav-back {
  color: inherit;
}

.nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: var(--btn-dark);
  pointer-events: none;
}

.has-indicator .nav-indicator {
  transition: transform 0.45s var(--island), width 0.45s var(--island), height 0.45s var(--island),
    opacity 0.2s ease;
}

.darkmode--activated #navigation-menu.flex-column {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(38, 38, 38, 0.72);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.darkmode--activated .nav-indicator {
  background: #f5f5f3;
}

.darkmode--activated #navigation-menu .nav-link.active,
.darkmode--activated #navigation-menu .nav-link.active:hover {
  background: #f5f5f3;
  color: #131922;
}

.darkmode--activated #navigation-menu.has-indicator .nav-link.active,
.darkmode--activated #navigation-menu.has-indicator .nav-link.active:hover {
  background: transparent;
}

@media (max-width: 960px) {
  header .row > .col-3,
  header .row > .col-9,
  header .row > .col-10 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  header .row > .col-2 {
    display: none;
  }

  body {
    padding-bottom: calc(80px + var(--dock-bottom));
  }

  #navigation-menu.flex-column {
    position: fixed;
    right: 0;
    bottom: var(--dock-bottom);
    left: 0;
    z-index: 600;
    flex-direction: row !important;
    margin-right: auto !important;
    margin-left: auto !important;
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(19, 25, 34, 0.14), inset 0 0 0 1px rgba(19, 25, 34, 0.05);
  }

  .theme-toggle {
    right: 16px;
    bottom: var(--dock-bottom);
    z-index: 601;
    width: 48px;
    height: 48px;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 28px rgba(19, 25, 34, 0.14), inset 0 0 0 1px rgba(19, 25, 34, 0.05);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    transition: right 0.5s var(--island), bottom 0.5s var(--island), width 0.5s var(--island),
      height 0.5s var(--island), color 0.2s ease, background-color 0.3s ease, border-color 0.3s ease,
      box-shadow 0.3s ease;
  }

  .darkmode--activated .theme-toggle {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(38, 38, 38, 0.72);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  }

  .darkmode--activated #navigation-menu.flex-column {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  }

  #navigation-menu.flex-column {
    max-width: calc(100vw - 16px);
    transition: padding-right 0.5s var(--island);
  }

  .nav-merged #navigation-menu.flex-column {
    padding-right: 43px !important;
  }

  .nav-merged .theme-toggle,
  .darkmode--activated.nav-merged .theme-toggle {
    right: calc(50% - var(--nav-half, 0px) - 13px);
    bottom: calc(var(--dock-bottom) + 6px);
    width: 36px;
    height: 36px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: var(--muted);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav-merged .theme-toggle:hover {
    transform: none;
    background: rgba(19, 25, 34, 0.06);
    color: var(--ink-soft);
  }

  .darkmode--activated.nav-merged .theme-toggle {
    color: #a3a3a3;
  }

  .darkmode--activated.nav-merged .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e6e8eb;
  }

  header img.img-circle {
    margin-top: 0;
  }

  #about + .followMeBar {
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  header {
    padding: 0;
  }

  header img.img-circle {
    float: left;
    width: 72px;
    height: 72px;
    margin: 0 16px 0 0;
  }

  header h1 {
    padding-top: 4px;
    font-size: 26px;
  }

  header .profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    clear: both;
    padding-top: 16px;
  }

  header .profile-meta.contact-list {
    padding-top: 0;
  }

  header ul.downloads {
    display: inline-block;
    width: calc(50% - 6px);
    margin: 0 !important;
    vertical-align: top;
  }

  header ul.downloads + ul.downloads {
    margin-left: 8px !important;
  }

  section {
    margin: 0;
    padding: 0 0 40px;
    border: 0;
  }

  header p.text-xs {
    margin-top: 10px;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  body {
    padding: 32px 24px;
  }
}

@media (max-width: 374px) {
  header ul.downloads {
    display: block;
    width: 100%;
  }

  header ul.downloads + ul.downloads {
    margin: 8px 0 0 !important;
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  #navigation-menu.flex-column {
    background: rgba(255, 255, 255, 0.96);
  }

  .darkmode--activated #navigation-menu.flex-column {
    background: rgba(38, 38, 38, 0.96);
  }
}

@media (max-width: 480px) {
  .layout-grid {
    overflow-wrap: normal;
    font-size: 13px;
  }

  .site-footer {
    flex-wrap: wrap;
  }

  .site-footer .back-to-top {
    white-space: nowrap;
  }
}

@media (max-width: 374px) {
  .nav-merged #navigation-menu .nav-link {
    padding: 8px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle,
  .nav-indicator,
  #navigation-menu.flex-column {
    transition: none !important;
  }
}

@media (min-width: 961px) {
  #navigation-menu.flex-column,
  .darkmode--activated #navigation-menu.flex-column {
    flex-direction: column !important;
    align-items: flex-start;
    padding: 0 !important;
    margin-top: 13px !important;
    border: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.modal-open {
  overflow: hidden;
}

.contact-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(440px, calc(100vw - 32px));
  height: fit-content;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: var(--ink-soft);
  box-shadow: 0 24px 64px rgba(19, 25, 34, 0.18);
  overflow: auto;
}

.contact-modal::backdrop {
  background: rgba(19, 25, 34, 0.32);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.contact-modal[open] {
  animation: modal-in 0.28s var(--island);
}

.contact-modal[open]::backdrop {
  animation: backdrop-in 0.2s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
}

.contact-modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 28px;
}

.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-modal-close:hover {
  background: var(--surface);
  color: var(--ink-soft);
}

.modal-icon {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-modal-close .modal-icon {
  width: 18px;
  height: 18px;
}

.contact-modal-title {
  margin: 0;
  padding-right: 40px;
  font-size: 21px;
  color: var(--ink);
}

.contact-modal-lead {
  margin: -6px 0 4px;
  color: var(--muted);
  font-size: 14px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9dde3;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field textarea {
  min-height: 104px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--ink-soft);
  box-shadow: 0 0 0 3px rgba(43, 49, 59, 0.08);
  outline: none;
}

.contact-modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 4px;
}

.contact-modal-actions .pill-btn {
  border: 0;
  cursor: pointer;
}

.contact-modal-alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.contact-modal-alt a,
.contact-copy {
  color: var(--ink-soft);
}

.contact-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.contact-copy .modal-icon {
  width: 13px;
  height: 13px;
}

.contact-copy:hover,
.contact-copy.is-copied {
  color: var(--link);
}

.darkmode--activated .contact-modal {
  background: #222;
  color: #e6e8eb;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.darkmode--activated .contact-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.darkmode--activated .contact-modal-title {
  color: #fff;
}

.darkmode--activated .contact-modal-lead,
.darkmode--activated .contact-modal-alt {
  color: #a3a3a3;
}

.darkmode--activated .contact-field,
.darkmode--activated .contact-modal-alt a,
.darkmode--activated .contact-copy {
  color: #e6e8eb;
}

.darkmode--activated .contact-field input,
.darkmode--activated .contact-field select,
.darkmode--activated .contact-field textarea {
  border-color: #3a3a3a;
  background: #2a2a2a;
  color: #fff;
}

.darkmode--activated .contact-field input:focus,
.darkmode--activated .contact-field select:focus,
.darkmode--activated .contact-field textarea:focus {
  border-color: #a3a3a3;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.darkmode--activated .contact-modal-close:hover {
  background: #2f2f2f;
  color: #fff;
}

.darkmode--activated .contact-modal-alt {
  border-top-color: #333;
}

.darkmode--activated .contact-copy:hover,
.darkmode--activated .contact-copy.is-copied {
  color: var(--link-dark);
}

@media (max-width: 480px) {
  .contact-modal-card {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-modal[open],
  .contact-modal[open]::backdrop {
    animation: none;
  }
}

@media (min-width: 768px) {
  .sidebar-compact header .contact-list,
  .sidebar-compact-more header .profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 14px;
  }

  .sidebar-compact-more header img.img-circle {
    width: 72px;
    height: 72px;
  }

}

@media (max-width: 960px) {
  #navigation-menu.flex-column,
  .darkmode--activated #navigation-menu.flex-column {
    background: transparent;
    box-shadow: 0 2px 12px rgba(19, 25, 34, 0.12);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  #navigation-menu.flex-column::before {
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(19, 25, 34, 0.05);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    content: '';
  }

  .darkmode--activated #navigation-menu.flex-column {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  }

  .darkmode--activated #navigation-menu.flex-column::before {
    background: rgba(38, 38, 38, 0.72);
    box-shadow: none;
  }

  .theme-toggle {
    box-shadow: 0 2px 12px rgba(19, 25, 34, 0.12), inset 0 0 0 1px rgba(19, 25, 34, 0.05);
  }

  .darkmode--activated .theme-toggle {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  }

  .nav-merged .theme-toggle,
  .darkmode--activated.nav-merged .theme-toggle {
    box-shadow: none;
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  #navigation-menu.flex-column::before {
    background: rgba(255, 255, 255, 0.96);
  }

  .darkmode--activated #navigation-menu.flex-column::before {
    background: rgba(38, 38, 38, 0.96);
  }
}

header .contact-list > :first-child {
  flex-basis: 100%;
}

@media (min-width: 768px) and (max-width: 960px) {
  .sidebar-compact-most header ul.downloads {
    display: inline-block;
    width: calc(50% - 6px);
    margin: 0 !important;
    vertical-align: top;
  }

  .sidebar-compact-most header ul.downloads + ul.downloads {
    margin-left: 8px !important;
  }

  .sidebar-compact-most header ul.downloads a {
    padding-right: 8px;
    padding-left: 8px;
  }

  .sidebar-compact-most header ul.downloads .btn-icon {
    display: none;
  }

  .sidebar-compact-most header p.text-xs {
    margin-top: 12px;
  }
}

@media (min-width: 961px) {
  .sidebar-compact-most header p.text-xs {
    display: none;
  }
}

.contact-field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 16px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.darkmode--activated .contact-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 16px;
}

* {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke,
    opacity, box-shadow;
}

.contact-modal:focus {
  outline: none;
}
