@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@500;600&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --page: #f8f8f7;
  --surface: #fff;
  --surface-soft: #f2f1ef;
  --ink: #242522;
  --muted: #686963;
  --line: #e9e8e5;
  --accent: #8064bd;
  --accent-soft: #eee9f8;
  --peach: #dc906e;
  --mint: #568c76;
  --shadow: 0 18px 55px rgb(31 30 26 / 9%);
  --dot: rgb(36 37 34 / 18%);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--page);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-position: 0 0;
  background-size: 24px 24px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  transition: background-color 180ms ease, color 180ms ease;
}

html.is-loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background-color: var(--page);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 350ms ease, visibility 0s linear 350ms;
}

html.is-loading .page-loader {
  opacity: 1;
  visibility: visible;
  transition: opacity 200ms ease, visibility 0s;
}

.loader-card {
  width: min(100%, 370px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.loader-heading,
.loader-activity {
  display: flex;
  align-items: center;
}

.loader-heading {
  justify-content: space-between;
  gap: 12px;
}

.loader-brand,
.loader-state,
.loader-command,
.loader-commit {
  font-family: Consolas, "Courier New", monospace;
}

.loader-brand {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.loader-state {
  color: var(--mint);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.loader-command {
  margin: 28px 0 16px;
  color: var(--accent);
  font-size: 14px;
}

.loader-command span {
  color: var(--muted);
}

.loader-activity {
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.loader-spinner {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: loader-spin 800ms linear infinite;
}

.loader-ellipsis {
  display: inline-block;
  overflow: hidden;
  width: 0;
  vertical-align: bottom;
  animation: loader-ellipsis 1.2s steps(4, end) infinite;
}

.loader-track {
  height: 3px;
  overflow: hidden;
  margin-top: 20px;
  border-radius: 3px;
  background: var(--surface-soft);
}

.loader-track span {
  display: block;
  width: 36%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  animation: loader-progress 1.4s ease-in-out infinite alternate;
}

.loader-commit {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 10px;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loader-ellipsis {
  to {
    width: 1.4em;
  }
}

@keyframes loader-progress {
  to {
    transform: translateX(178%);
  }
}

html.dark {
  color-scheme: dark;
  --page: #171817;
  --surface: #202220;
  --surface-soft: #282a28;
  --ink: #f2f1ee;
  --muted: #aaa9a4;
  --line: #343633;
  --accent: #b59be8;
  --accent-soft: #322a40;
  --peach: #e6a384;
  --mint: #82b49c;
  --shadow: 0 18px 55px rgb(0 0 0 / 32%);
  --dot: rgb(255 255 255 / 12%);
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.wrap {
  width: min(100% - 56px, 900px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--ink);
  color: var(--page);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  padding-top: 12px;
}

.top-nav {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
}

.nav-links,
.nav-tools {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 31px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 150ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links .anime-nav-link {
  font-family: "Comic Sans MS", "Trebuchet MS", cursive;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-tools {
  gap: 11px;
}

.tool-button {
  display: inline-flex;
  height: 39px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.search-trigger {
  gap: 8px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  transition: border-color 160ms ease, color 160ms ease;
}

.search-trigger:hover,
.theme-toggle:hover {
  color: var(--ink);
}

.search-trigger:hover {
  border-color: var(--muted);
}

.search-trigger svg,
.theme-toggle svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

kbd {
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.theme-toggle {
  width: 37px;
  border-radius: 50%;
}

.theme-toggle svg {
  width: 19px;
}

.intro {
  padding-top: 67px;
  padding-bottom: 53px;
}

.music-player-section {
  padding-bottom: 32px;
}

.music-player {
  display: grid;
  max-width: 760px;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin-inline: auto;
  padding: 16px 20px;
  border: 1px solid #282929;
  border-radius: 20px;
  background: #0e0f0f;
  color: #f1f0ee;
}

.music-art {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
}

.music-record {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 1px solid #2b2c2c;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #141515 0 2px, #242525 2.5px 3px, #111212 3.5px 5px);
  box-shadow: 0 8px 20px rgb(0 0 0 / 35%);
}

.music-player.is-playing .music-record {
  animation: music-record-spin 4s linear infinite;
}

@keyframes music-record-spin {
  to {
    transform: rotate(360deg);
  }
}

.music-record-label {
  width: 9px;
  height: 9px;
  border: 2px solid #b8b8b5;
  border-radius: 50%;
  background: #e4e3df;
}

.music-tonearm {
  position: absolute;
  top: 5px;
  right: 13px;
  width: 3px;
  height: 46px;
  transform: rotate(31deg);
  transform-origin: top center;
  border-radius: 3px;
  background: #a4a4a2;
}

.music-tonearm::before,
.music-tonearm::after {
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
  border: 1px solid #aaa;
  border-radius: 50%;
  background: #454646;
  content: "";
}

.music-tonearm::before {
  top: -3px;
}

.music-tonearm::after {
  bottom: -3px;
  width: 6px;
  height: 6px;
}

.music-player-main {
  min-width: 0;
}

.music-player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.music-kicker,
.music-artist,
.music-track-copy h2,
.music-status {
  margin: 0;
}

.music-kicker,
.music-artist,
.music-time {
  color: #a4a4a2;
  font-family: Consolas, "Courier New", monospace;
}

.music-kicker {
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.music-track-copy h2 {
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.4;
}

.music-artist {
  margin-top: 6px;
  font-size: 13px;
}

.music-play-toggle {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid #555656;
  border-radius: 50%;
  background: transparent;
  color: #f1f0ee;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.music-play-toggle:hover {
  border-color: #aaa;
  background: #202121;
}

.music-play-toggle svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.music-pause-icon,
.music-player.is-playing .music-play-icon {
  display: none;
}

.music-player.is-playing .music-pause-icon {
  display: block;
}

.music-timeline {
  margin-top: 14px;
}

.music-seek {
  display: block;
  width: 100%;
  height: 18px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.music-seek:disabled {
  cursor: default;
}

.music-seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, #d5d4d1 var(--music-progress, 0%), #383939 var(--music-progress, 0%));
}

.music-seek::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: #383939;
}

.music-seek::-moz-range-progress {
  height: 4px;
  border-radius: 4px;
  background: #d5d4d1;
}

.music-seek::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  margin-top: -3px;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: #f1f0ee;
}

.music-seek::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #f1f0ee;
}

.music-time {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  line-height: 1.4;
}

.music-status {
  color: #e6a384;
  font-size: 11px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 44px;
  min-height: 172px;
  padding-left: 26px;
}

.avatar-trigger {
  display: block;
  flex: 0 0 auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  cursor: zoom-in;
}

.avatar-trigger:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.avatar {
  display: block;
  width: 148px;
  height: 148px;
  border-radius: 10px;
  background: #fff;
  object-fit: cover;
  transition: transform 180ms ease;
}

.avatar-trigger:hover .avatar {
  transform: scale(1.04);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.profile h1,
.section-heading h2 {
  margin: 0;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-weight: 750;
  letter-spacing: -0.045em;
}

.profile h1 {
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.2;
}

.profile-tagline {
  min-height: 24px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 15px;
  opacity: 1;
  transition: opacity 350ms ease;
}

.profile-tagline.is-fading {
  opacity: 0;
}

.visitor-count {
  position: relative;
  display: inline-flex;
  width: max-content;
  height: 20px;
  margin-top: 4px;
  vertical-align: middle;
}

.visitor-count-image {
  display: block;
  height: 20px;
  opacity: 0.75;
}

html:not(.dark) .visitor-count-image {
  filter: invert(1);
}

.visitor-count-eye {
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 2px;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  pointer-events: none;
}

.visitor-count-fallback {
  display: inline-flex;
  align-items: center;
  padding-left: 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 20px;
}

.visitor-count-fallback[hidden] {
  display: none;
}

.role-line {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.role-line span {
  padding-inline: 3px;
  color: #bbb9b3;
}

.role-line a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.role-line a:hover {
  color: var(--accent);
}

.intro-line {
  max-width: 675px;
  margin: 31px 0 20px;
  color: #70716d;
  font-size: 16px;
}

html.dark .intro-line {
  color: var(--muted);
}

.interest-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-row a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.interest-row .resume-download {
  border-color: var(--mint);
  background: var(--surface);
  background-image: linear-gradient(105deg, transparent 42%, rgb(86 140 118 / 20%) 50%, transparent 58%);
  background-size: 250% 100%;
  box-shadow: 0 3px 12px rgb(86 140 118 / 14%);
  color: var(--mint);
  font-weight: 700;
  animation: resume-shine 2.8s ease-in-out infinite;
}

.interest-row a:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.interest-row .resume-download:hover {
  border-color: var(--mint);
  background-color: var(--surface-soft);
}

@keyframes resume-shine {
  to {
    background-position: 100% 50%;
  }
}

.interest-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-lilac {
  background: var(--accent);
}

.dot-peach {
  background: var(--peach);
}

.dot-mint {
  background: var(--mint);
}

.content-section {
  padding: 30px 0 38px;
  border-top: 1px solid var(--line);
}

.contributions-section {
  border-top: 0;
  padding-top: 0;
}

.contributions-section .section-heading {
  max-width: 760px;
  margin-inline: auto;
}

.contributions-link {
  color: var(--muted);
  font-size: 12px;
  transition: color 150ms ease;
}

.contributions-link:hover {
  color: var(--accent);
}

.contributions-card {
  max-width: 760px;
  margin-inline: auto;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.contributions-total {
  min-height: 20px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.contributions-error {
  display: none;
  margin-top: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.contributions-card.has-error .contributions-graph-control,
.contributions-card.has-error .contributions-legend {
  display: none;
}

.contributions-card.has-error .contributions-error {
  display: inline-block;
}

.contributions-graph-control {
  width: 100%;
  max-width: 724px;
  margin-inline: auto;
}

.contributions-scroll {
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: none;
}

.contributions-scroll::-webkit-scrollbar {
  display: none;
}

.contributions-slider {
  display: block;
  width: 100%;
  height: 18px;
  margin: 4px 0 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.contributions-slider:disabled {
  cursor: default;
}

.contributions-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
}

.contributions-slider::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
}

.contributions-slider::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -4px;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
}

.contributions-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
}

.contributions-calendar {
  display: grid;
  width: max-content;
  grid-template-columns: repeat(53, 14px);
  grid-template-rows: 20px 4px repeat(7, 14px);
  column-gap: 4px;
  row-gap: 4px;
}

.contributions-month {
  grid-row: 1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
}

.contribution-day {
  width: 14px;
  height: 14px;
  border: 1px solid rgb(0 0 0 / 4%);
  border-radius: 3px;
  background: var(--surface-soft);
}

.contribution-day.level-1 {
  background: #ace3bb;
}

.contribution-day.level-2 {
  background: #70ce8b;
}

.contribution-day.level-3 {
  background: #35a85b;
}

.contribution-day.level-4 {
  background: #176b36;
}

html.dark .contribution-day {
  border-color: rgb(255 255 255 / 5%);
}

html.dark .contribution-day.level-1 {
  background: #0e4429;
}

html.dark .contribution-day.level-2 {
  background: #006d32;
}

html.dark .contribution-day.level-3 {
  background: #26a641;
}

html.dark .contribution-day.level-4 {
  background: #39d353;
}

.contributions-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 10px;
}

.contributions-legend .contribution-day {
  width: 10px;
  height: 10px;
}

.contributions-legend span:first-child {
  margin-right: 2px;
}

.contributions-legend span:last-child {
  margin-left: 2px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-heading .eyebrow {
  margin-bottom: 4px;
}

.section-heading h2 {
  font-size: 23px;
  line-height: 1.35;
}

.section-count,
.section-link {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
}

.section-count {
  font-variant-numeric: tabular-nums;
}

.section-link {
  padding: 5px 0;
  transition: color 150ms ease;
}

.section-link:hover,
.text-link:hover {
  color: var(--accent);
}

.work-list {
  border-top: 1px solid var(--line);
}

.work-item {
  border-bottom: 1px solid var(--line);
}

.work-company {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 8px 13px 0;
  font-size: 15px;
  font-weight: 650;
}

.work-company-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--muted);
}

.work-item .work-summary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  align-items: start;
  gap: 13px;
  padding: 10px 0 19px 18px;
  list-style: none;
  cursor: pointer;
}

.work-item .work-summary::-webkit-details-marker {
  display: none;
}

.work-marker {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
}

.work-marker svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.marker-lilac {
  background: var(--accent-soft);
  color: var(--accent);
}

.marker-peach {
  background: #f7eee9;
  color: var(--peach);
}

.marker-mint {
  background: #eaf2ee;
  color: var(--mint);
}

html.dark .marker-peach {
  background: #392d28;
}

html.dark .marker-mint {
  background: #29352f;
}

.work-title-group,
.elsewhere-summary > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.work-title {
  font-size: 17px;
  font-weight: 600;
}

.work-subtitle {
  color: var(--muted);
  font-size: 14px;
}

.work-subtitle span {
  padding-inline: 5px;
  color: var(--line);
}

.work-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.work-skills span {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.expand-icon {
  position: relative;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.expand-icon::before,
.expand-icon::after {
  position: absolute;
  top: 8px;
  left: 4px;
  width: 10px;
  height: 1.5px;
  background: currentColor;
  content: "";
  transition: transform 160ms ease;
}

.expand-icon::after {
  transform: rotate(90deg);
}

.work-item[open] .expand-icon::after {
  transform: rotate(180deg);
}

.work-detail {
  max-width: 690px;
  margin: 0 34px 18px 67px;
  padding-top: 13px;
  padding-left: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  animation: reveal 180ms ease both;
}

.work-detail li {
  padding-left: 3px;
}

.work-detail li + li {
  margin-top: 6px;
}

.work-detail li::marker {
  color: var(--accent);
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.text-link {
  display: table;
  margin: 17px auto 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: color 150ms ease;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.notes-grid.has-open-card {
  align-items: start;
}

.anime-page {
  min-height: calc(100vh - 60px);
  max-width: 1040px;
}

.anime-inline-page {
  display: none;
}

body.anime-view main > :not(.music-player-section):not(.anime-inline-page) {
  display: none;
}

body.anime-view .anime-inline-page {
  display: block;
}

body.anime-view .closing-note,
body.anime-view .site-footer {
  display: none;
}

.anime-page .content-section {
  padding-top: 64px;
}

.anime-page .section-heading h1 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.15;
}

.anime-page .section-heading .eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.anime-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.anime-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 32px rgb(31 30 26 / 7%);
  isolation: isolate;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  animation: anime-card-enter 600ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
  transition: border-color 200ms ease, transform 140ms ease-out, box-shadow 200ms ease;
}

.anime-card:nth-child(2) {
  animation-delay: 100ms;
}

.anime-card:nth-child(3) {
  animation-delay: 200ms;
}

.anime-card:nth-child(4) {
  animation-delay: 300ms;
}

.anime-card:nth-child(5) {
  animation-delay: 400ms;
}

.anime-card:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgb(31 30 26 / 15%);
}

.anime-card.is-tilting {
  transform: perspective(900px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x)) translateY(-6px);
}

.anime-poster {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  aspect-ratio: 2 / 3;
  background: var(--surface-soft);
  object-fit: cover;
  transition: transform 400ms ease;
}

.anime-card:hover .anime-poster {
  transform: scale(1.035);
}

.anime-card::after {
  position: absolute;
  z-index: 0;
  inset: 30% 0 0;
  background: linear-gradient(180deg, transparent 12%, rgb(10 10 16 / 78%) 100%);
  content: "";
  pointer-events: none;
}

.anime-title {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 17px;
  left: 18px;
  margin: 0;
  color: #fff;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(20px, 2.8vw, 27px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgb(0 0 0 / 40%);
}

html.dark .anime-card {
  box-shadow: 0 12px 35px rgb(0 0 0 / 25%);
}

@keyframes anime-card-enter {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.note-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  transition: border-color 170ms ease, transform 170ms ease, box-shadow 170ms ease;
}

.note-card:hover {
  transform: translateY(-3px);
  border-color: #d2c9e3;
  box-shadow: 0 9px 25px rgb(40 35 50 / 5%);
}

.note-link {
  display: flex;
  flex-direction: column;
  padding: 11px;
  list-style: none;
  cursor: pointer;
}

.note-link::-webkit-details-marker {
  display: none;
}

.note-link:focus-visible {
  outline-offset: -4px;
}

.note-card .note-expanded {
  margin: 0 11px 12px;
  padding-top: 10px;
  padding-left: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.note-card .note-expanded li + li {
  margin-top: 5px;
}

.note-art {
  position: relative;
  display: grid;
  height: 108px;
  overflow: hidden;
  place-items: center;
  border-radius: 8px;
}

.art-orbit {
  background: #eee9f6;
}

.art-orbit::before {
  width: 62px;
  height: 62px;
  border: 1px solid #b4a1d6;
  border-radius: 50%;
  content: "";
}

.art-orbit::after {
  position: absolute;
  width: 96px;
  height: 31px;
  transform: rotate(-28deg);
  border: 1px solid #967ebd;
  border-radius: 50%;
  content: "";
}

.art-orbit span {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #8a6abe;
  box-shadow: 0 0 0 6px rgb(138 106 190 / 13%);
}

.art-orbit i {
  position: absolute;
  top: 24px;
  right: 33%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e5a37f;
}

.art-sunrise {
  background: #faeee6;
}

.art-sunrise::before {
  position: absolute;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e8ae8a;
  content: "";
}

.art-sunrise::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 35px;
  background: #faeee6;
  content: "";
}

.art-sunrise span,
.art-sunrise i {
  position: absolute;
  z-index: 1;
  right: 19%;
  bottom: 20px;
  left: 19%;
  height: 1px;
  background: #c68160;
}

.art-sunrise i {
  right: 27%;
  bottom: 11px;
  left: 27%;
  opacity: 0.55;
}

.art-checker {
  background-color: #e7eee8;
  background-image: linear-gradient(45deg, #d3e1d7 25%, transparent 25%), linear-gradient(-45deg, #d3e1d7 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #d3e1d7 75%), linear-gradient(-45deg, transparent 75%, #d3e1d7 75%);
  background-position: 0 0, 0 18px, 18px -18px, -18px 0;
  background-size: 36px 36px;
}

.art-checker span {
  width: 66px;
  height: 66px;
  transform: rotate(8deg);
  border: 1px solid #6c9a7f;
  border-radius: 50%;
  background: #e7eee8;
  box-shadow: 0 0 0 8px rgb(91 139 110 / 10%), 0 0 0 17px rgb(91 139 110 / 7%);
}

.note-category {
  margin-top: 14px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.note-card h3 {
  margin: 4px 0 5px;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.note-card h3 a:hover,
.note-footer a:hover {
  color: var(--accent);
}

.note-card h3 a:focus-visible,
.note-footer a:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.note-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.note-expand-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: -10px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
}

.note-expand-open,
.note-card[open] .note-expand-closed {
  display: none;
}

.note-card[open] .note-expand-open {
  display: inline;
}

.note-expand-arrow {
  display: inline-block;
  transition: transform 160ms ease;
}

.note-card[open] .note-expand-arrow {
  transform: rotate(180deg);
}

.note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.note-footer > span {
  color: var(--ink);
}

.elsewhere-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.elsewhere-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.elsewhere-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  transition: border-color 160ms ease, transform 160ms ease;
}

.elsewhere-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.elsewhere-summary {
  display: grid;
  min-height: 76px;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  padding: 13px;
  list-style: none;
  cursor: pointer;
}

.elsewhere-summary::-webkit-details-marker {
  display: none;
}

.elsewhere-summary:focus-visible {
  outline-offset: -4px;
}

.elsewhere-detail {
  margin: 0 13px 13px 64px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.elsewhere-point-list {
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style: none;
  line-height: 1.5;
}

.elsewhere-point-list li {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

.elsewhere-point-list li::before {
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.elsewhere-point-list strong {
  color: var(--ink);
  font-weight: 650;
}

.certification-point-list li::before {
  background: var(--peach);
}

.certification-point-list li > span > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.technical-skills-list {
  margin: 0 13px 13px 64px;
  padding-left: 18px;
  line-height: 1.55;
}

.technical-skills-list li {
  margin-bottom: 5px;
  padding-left: 2px;
}

.technical-skills-list li:last-child {
  margin-bottom: 0;
}

.technical-skills-list strong {
  color: var(--ink);
  font-size: inherit;
  font-weight: 650;
}

.elsewhere-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.elsewhere-icon svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.icon-sparkle {
  background: #f7eee9;
  color: var(--peach);
}

html.dark .icon-sparkle {
  background: #392d28;
}

.elsewhere-card strong {
  font-size: 13px;
  font-weight: 650;
}

.elsewhere-summary > span:nth-child(2) > span {
  color: var(--muted);
  font-size: 11px;
}

.card-arrow {
  color: var(--muted);
  font-size: 14px;
  transition: color 160ms ease, transform 160ms ease;
}

.elsewhere-card:not([open]):hover .card-arrow {
  transform: translateY(2px);
  color: var(--accent);
}

.elsewhere-card[open] .card-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.anchor-target {
  display: block;
  height: 0;
  scroll-margin-top: 95px;
}

.closing-note {
  display: flex;
  max-width: 680px;
  min-height: 116px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 15px;
  margin-bottom: 33px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.signature-mark {
  position: relative;
  display: inline-block;
  padding: 0 6px 7px;
  color: #fff;
  font-family: Caveat, "Segoe Script", cursive;
  font-size: clamp(34px, 6vw, 50px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(181, 155, 232, 0.3);
  transform: rotate(-5deg);
}

.signature-mark::after {
  position: absolute;
  right: 8%;
  bottom: 3px;
  left: 10%;
  height: 6px;
  border-bottom: 2px solid var(--accent);
  border-radius: 50%;
  content: "";
  transform: rotate(-2deg);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  padding-top: 32px;
  padding-bottom: 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 36px;
  padding-bottom: 28px;
}

.footer-name {
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-dot {
  color: var(--accent);
}

.footer-brand p {
  max-width: 220px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-nav {
  display: grid;
  align-content: start;
  gap: 6px;
}

.footer-label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav a,
.copy-note {
  width: fit-content;
  color: var(--ink);
  font-size: 12px;
  transition: color 150ms ease;
}

.footer-nav a:hover,
.copy-note:hover {
  color: var(--accent);
}

.footer-hello {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.copy-note {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.footer-bottom a:hover {
  color: var(--ink);
}

.mascot-button {
  position: fixed;
  z-index: 5;
  right: 24px;
  bottom: 21px;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgb(115 87 163 / 15%);
  border-radius: 18px;
  background: #eee7f8;
  box-shadow: 0 8px 22px rgb(40 31 58 / 12%);
  cursor: pointer;
  transition: transform 180ms ease;
}

.mascot-button:hover {
  transform: translateY(-4px) rotate(-4deg);
}

.mascot-button svg {
  width: 44px;
  height: 44px;
  overflow: visible;
}

.mascot-body {
  fill: #8668bb;
}

.mascot-eyes,
.mascot-mouth {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-width: 2.2;
}

.mascot-rays {
  fill: none;
  stroke: #d48c6c;
  stroke-linecap: round;
  stroke-width: 2.5;
}

.mascot-tooltip {
  position: absolute;
  right: 63px;
  bottom: 11px;
  width: max-content;
  padding: 5px 9px;
  transform: translateX(4px);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.mascot-button:hover .mascot-tooltip,
.mascot-button:focus-visible .mascot-tooltip {
  transform: translateX(0);
  opacity: 1;
}

.mascot-message {
  position: fixed;
  z-index: 6;
  right: 24px;
  bottom: 86px;
  max-width: min(280px, calc(100vw - 48px));
  padding: 11px 14px;
  transform: translateY(6px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.mascot-message.show {
  transform: translateY(0);
  opacity: 1;
}

.search-dialog,
.image-dialog {
  width: min(510px, calc(100% - 32px));
  max-height: min(80vh, 560px);
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.search-dialog::backdrop,
.image-dialog::backdrop {
  background: rgb(30 29 32 / 33%);
  backdrop-filter: blur(3px);
}

.image-dialog {
  position: relative;
  width: fit-content;
  max-width: min(90vw, 820px);
  max-height: 90vh;
  padding: 12px;
  overflow: visible;
  border-radius: 15px;
}

.image-dialog-image {
  display: block;
  max-width: calc(90vw - 24px);
  max-height: calc(90vh - 24px);
  object-fit: contain;
  border-radius: 8px;
}

.image-dialog-close {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.search-form {
  margin: 0;
}

.search-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-dialog-heading h2 {
  margin: 0;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.dialog-close {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page);
}

.search-input-wrap svg {
  width: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.search-input-wrap input {
  width: 100%;
  min-height: 43px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.search-input-wrap:focus-within {
  border-color: var(--accent);
}

.search-input-wrap input:focus-visible {
  outline: 0;
}

.search-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.search-results {
  display: grid;
  gap: 5px;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 13px;
}

.search-result {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 7px;
  transition: background 150ms ease;
}

.search-result:hover,
.search-result:focus-visible {
  background: var(--surface-soft);
}

.search-result strong {
  font-size: 12px;
}

.search-result span,
.search-empty {
  color: var(--muted);
  font-size: 11px;
}

.search-empty {
  margin: 9px 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 680px) {
  .wrap {
    width: min(100% - 36px, 520px);
  }

  .top-nav {
    min-height: 53px;
    gap: 10px;
  }

  .nav-links {
    flex: 1;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    font-size: 13px;
  }

  .search-label {
    display: none;
  }

  .search-trigger {
    width: 39px;
    padding: 0;
    gap: 0;
  }

  .search-trigger kbd {
    display: none;
  }

  .nav-tools {
    gap: 5px;
  }

  .intro {
    padding-top: 48px;
    padding-bottom: 38px;
  }

  .music-player-section {
    padding-bottom: 26px;
  }

  .music-player {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 14px;
    border-radius: 17px;
  }

  .music-art {
    width: 66px;
    height: 66px;
  }

  .music-record {
    width: 60px;
    height: 60px;
  }

  .music-tonearm {
    top: 1px;
    right: 8px;
    height: 31px;
  }

  .music-kicker {
    margin-bottom: 5px;
    font-size: 9px;
  }

  .music-track-copy h2 {
    font-size: 14px;
  }

  .music-artist {
    margin-top: 4px;
    font-size: 11px;
  }

  .music-player-top {
    gap: 8px;
  }

  .music-play-toggle {
    width: 40px;
    height: 40px;
  }

  .music-timeline {
    margin-top: 12px;
  }

  .profile {
    gap: 22px;
    min-height: 0;
    padding-left: 16px;
  }

  .avatar {
    width: 112px;
    height: 112px;
  }

  .profile h1 {
    font-size: clamp(23px, 6vw, 29px);
  }

  .eyebrow {
    font-size: 10px;
  }

  .role-line {
    font-size: 13px;
  }

  .intro-line {
    margin-top: 25px;
    font-size: 15px;
  }

  .content-section {
    padding-block: 26px 30px;
  }

  .section-heading h2 {
    font-size: 21px;
  }

  .anime-page .content-section {
    padding-top: 42px;
  }

  .anime-grid {
    gap: 12px;
    margin-top: 24px;
  }

  .anime-card {
    border-radius: 14px;
  }

  .anime-poster {
    min-height: 200px;
  }

  .anime-title {
    right: 12px;
    bottom: 12px;
    left: 12px;
    font-size: clamp(16px, 4vw, 22px);
  }

  .work-item summary {
    min-height: 74px;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    gap: 10px;
  }

  .work-marker {
    width: 31px;
    height: 31px;
  }

  .work-meta {
    display: none;
  }

  .work-title {
    font-size: 13px;
  }

  .work-subtitle {
    font-size: 11px;
    line-height: 1.4;
  }

  .work-detail {
    margin-left: 44px;
    font-size: 12px;
  }

  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .anime-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .note-card:last-child {
    grid-column: 1 / -1;
  }

  .note-art {
    height: clamp(90px, 26vw, 125px);
  }

  .elsewhere-grid {
    display: flex;
    flex-direction: column;
    gap: 9px;
  }

  .elsewhere-column {
    display: contents;
  }

  .education-card {
    order: 1;
  }

  .technical-skills-card {
    order: 2;
  }

  .certifications-card {
    order: 3;
  }

  .closing-note {
    min-height: 96px;
    gap: 8px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 24px 18px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .mascot-button {
    right: 14px;
    bottom: 13px;
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .mascot-button svg {
    width: 40px;
    height: 40px;
  }

  .mascot-message {
    right: 14px;
    bottom: 70px;
  }
}

@media (max-width: 390px) {
  .wrap {
    width: min(100% - 28px, 520px);
  }

  .nav-links {
    gap: 7px;
  }

  .nav-links a {
    font-size: 11px;
  }

  .anime-grid {
    gap: 9px;
  }

  .anime-poster {
    min-height: 170px;
  }

  .avatar {
    width: 88px;
    height: 88px;
  }

  .profile {
    gap: 13px;
    padding-left: 12px;
  }

  .profile h1 {
    font-size: 22px;
  }

  .role-line {
    font-size: 11px;
  }

  .interest-row {
    gap: 6px;
  }

  .interest-row a {
    padding-inline: 8px;
    font-size: 10px;
  }

  .note-link {
    padding: 8px;
  }

  .note-card h3 {
    font-size: 12px;
  }

  .note-card p {
    font-size: 11px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .music-player.is-playing .music-record {
    animation: none !important;
  }
}
